text: // source: cs3/sharing/collaboration/v1beta1/collaboration_api.proto
  /**
   * @fileoverview
   * @enhanceable
   * @suppress {messageConventions} JS Compiler reports an error if a variable or
   *     field starts with 'MSG_' and isn't a translatable message.
   * @public
   */
  // GENERATED CODE -- DO NOT EDIT!
  
  var jspb = require('google-protobuf');
  var goog = jspb;
  var global = Function('return this')();
  
  var cs3_rpc_v1beta1_status_pb = require('../../../../cs3/rpc/v1beta1/status_pb.js');
  goog.object.extend(proto, cs3_rpc_v1beta1_status_pb);
  var cs3_sharing_collaboration_v1beta1_resources_pb = require('../../../../cs3/sharing/collaboration/v1beta1/resources_pb.js');
  goog.object.extend(proto, cs3_sharing_collaboration_v1beta1_resources_pb);
  var cs3_storage_provider_v1beta1_resources_pb = require('../../../../cs3/storage/provider/v1beta1/resources_pb.js');
  goog.object.extend(proto, cs3_storage_provider_v1beta1_resources_pb);
  var cs3_types_v1beta1_types_pb = require('../../../../cs3/types/v1beta1/types_pb.js');
  goog.object.extend(proto, cs3_types_v1beta1_types_pb);
  var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js');
  goog.object.extend(proto, google_protobuf_field_mask_pb);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.GetShareRequest', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.GetShareResponse', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.FieldCase', null, global);
  goog.exportSymbol('proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse', null, global);
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.displayName = 'proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.displayName = 'proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.displayName = 'proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.oneofGroups_);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.displayName = 'proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.displayName = 'proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.repeatedFields_, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.displayName = 'proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.repeatedFields_, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.displayName = 'proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.displayName = 'proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.displayName = 'proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.GetShareRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.displayName = 'proto.cs3.sharing.collaboration.v1beta1.GetShareRequest';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.GetShareResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.displayName = 'proto.cs3.sharing.collaboration.v1beta1.GetShareResponse';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.repeatedFields_, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.displayName = 'proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.repeatedFields_, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.displayName = 'proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.displayName = 'proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.displayName = 'proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.displayName = 'proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest';
  }
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    /**
     * @public
     * @override
     */
    proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.displayName = 'proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse';
  }
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      resourceInfo: (f = msg.getResourceInfo()) && cs3_storage_provider_v1beta1_resources_pb.ResourceInfo.toObject(includeInstance, f),
      grant: (f = msg.getGrant()) && cs3_sharing_collaboration_v1beta1_resources_pb.ShareGrant.toObject(includeInstance, f)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest;
    return proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 2:
        var value = new cs3_storage_provider_v1beta1_resources_pb.ResourceInfo;
        reader.readMessage(value,cs3_storage_provider_v1beta1_resources_pb.ResourceInfo.deserializeBinaryFromReader);
        msg.setResourceInfo(value);
        break;
      case 3:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.ShareGrant;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.ShareGrant.deserializeBinaryFromReader);
        msg.setGrant(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getResourceInfo();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_storage_provider_v1beta1_resources_pb.ResourceInfo.serializeBinaryToWriter
      );
    }
    f = message.getGrant();
    if (f != null) {
      writer.writeMessage(
        3,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.ShareGrant.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 1;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 1));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional cs3.storage.provider.v1beta1.ResourceInfo resource_info = 2;
   * @return {?proto.cs3.storage.provider.v1beta1.ResourceInfo}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.prototype.getResourceInfo = function() {
    return /** @type{?proto.cs3.storage.provider.v1beta1.ResourceInfo} */ (
      jspb.Message.getWrapperField(this, cs3_storage_provider_v1beta1_resources_pb.ResourceInfo, 2));
  };
  
  
  /** @param {?proto.cs3.storage.provider.v1beta1.ResourceInfo|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.prototype.setResourceInfo = function(value) {
    jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.prototype.clearResourceInfo = function() {
    this.setResourceInfo(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.prototype.hasResourceInfo = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  /**
   * optional ShareGrant grant = 3;
   * @return {?proto.cs3.sharing.collaboration.v1beta1.ShareGrant}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.prototype.getGrant = function() {
    return /** @type{?proto.cs3.sharing.collaboration.v1beta1.ShareGrant} */ (
      jspb.Message.getWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.ShareGrant, 3));
  };
  
  
  /** @param {?proto.cs3.sharing.collaboration.v1beta1.ShareGrant|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.prototype.setGrant = function(value) {
    jspb.Message.setWrapperField(this, 3, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.prototype.clearGrant = function() {
    this.setGrant(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareRequest.prototype.hasGrant = function() {
    return jspb.Message.getField(this, 3) != null;
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      status: (f = msg.getStatus()) && cs3_rpc_v1beta1_status_pb.Status.toObject(includeInstance, f),
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      share: (f = msg.getShare()) && cs3_sharing_collaboration_v1beta1_resources_pb.Share.toObject(includeInstance, f)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse;
    return proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_rpc_v1beta1_status_pb.Status;
        reader.readMessage(value,cs3_rpc_v1beta1_status_pb.Status.deserializeBinaryFromReader);
        msg.setStatus(value);
        break;
      case 2:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 3:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.Share;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.Share.deserializeBinaryFromReader);
        msg.setShare(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getStatus();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_rpc_v1beta1_status_pb.Status.serializeBinaryToWriter
      );
    }
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getShare();
    if (f != null) {
      writer.writeMessage(
        3,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.Share.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.rpc.v1beta1.Status status = 1;
   * @return {?proto.cs3.rpc.v1beta1.Status}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.prototype.getStatus = function() {
    return /** @type{?proto.cs3.rpc.v1beta1.Status} */ (
      jspb.Message.getWrapperField(this, cs3_rpc_v1beta1_status_pb.Status, 1));
  };
  
  
  /** @param {?proto.cs3.rpc.v1beta1.Status|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.prototype.setStatus = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.prototype.clearStatus = function() {
    this.setStatus(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.prototype.hasStatus = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 2;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 2));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  /**
   * optional Share share = 3;
   * @return {?proto.cs3.sharing.collaboration.v1beta1.Share}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.prototype.getShare = function() {
    return /** @type{?proto.cs3.sharing.collaboration.v1beta1.Share} */ (
      jspb.Message.getWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.Share, 3));
  };
  
  
  /** @param {?proto.cs3.sharing.collaboration.v1beta1.Share|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.prototype.setShare = function(value) {
    jspb.Message.setWrapperField(this, 3, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.prototype.clearShare = function() {
    this.setShare(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.CreateShareResponse.prototype.hasShare = function() {
    return jspb.Message.getField(this, 3) != null;
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      ref: (f = msg.getRef()) && cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference.toObject(includeInstance, f),
      field: (f = msg.getField()) && proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.toObject(includeInstance, f)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest;
    return proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 2:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference.deserializeBinaryFromReader);
        msg.setRef(value);
        break;
      case 3:
        var value = new proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField;
        reader.readMessage(value,proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.deserializeBinaryFromReader);
        msg.setField(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getRef();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference.serializeBinaryToWriter
      );
    }
    f = message.getField();
    if (f != null) {
      writer.writeMessage(
        3,
        f,
        proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.serializeBinaryToWriter
      );
    }
  };
  
  
  
  /**
   * Oneof group definitions for this message. Each group defines the field
   * numbers belonging to that group. When of these fields' value is set, all
   * other fields in the group are cleared. During deserialization, if multiple
   * fields are encountered for a group, only the last value seen will be kept.
   * @private {!Array<!Array<number>>}
   * @const
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.oneofGroups_ = [[2,3]];
  
  /**
   * @enum {number}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.FieldCase = {
    FIELD_NOT_SET: 0,
    PERMISSIONS: 2,
    DISPLAY_NAME: 3
  };
  
  /**
   * @return {proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.FieldCase}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.prototype.getFieldCase = function() {
    return /** @type {proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.FieldCase} */(jspb.Message.computeOneofCase(this, proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.oneofGroups_[0]));
  };
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.toObject = function(includeInstance, msg) {
    var f, obj = {
      permissions: (f = msg.getPermissions()) && cs3_sharing_collaboration_v1beta1_resources_pb.SharePermissions.toObject(includeInstance, f),
      displayName: jspb.Message.getFieldWithDefault(msg, 3, "")
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField;
    return proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 2:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.SharePermissions;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.SharePermissions.deserializeBinaryFromReader);
        msg.setPermissions(value);
        break;
      case 3:
        var value = /** @type {string} */ (reader.readString());
        msg.setDisplayName(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getPermissions();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.SharePermissions.serializeBinaryToWriter
      );
    }
    f = /** @type {string} */ (jspb.Message.getField(message, 3));
    if (f != null) {
      writer.writeString(
        3,
        f
      );
    }
  };
  
  
  /**
   * optional SharePermissions permissions = 2;
   * @return {?proto.cs3.sharing.collaboration.v1beta1.SharePermissions}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.prototype.getPermissions = function() {
    return /** @type{?proto.cs3.sharing.collaboration.v1beta1.SharePermissions} */ (
      jspb.Message.getWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.SharePermissions, 2));
  };
  
  
  /** @param {?proto.cs3.sharing.collaboration.v1beta1.SharePermissions|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.prototype.setPermissions = function(value) {
    jspb.Message.setOneofWrapperField(this, 2, proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.oneofGroups_[0], value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.prototype.clearPermissions = function() {
    this.setPermissions(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.prototype.hasPermissions = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  /**
   * optional string display_name = 3;
   * @return {string}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.prototype.getDisplayName = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  };
  
  
  /** @param {string} value */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.prototype.setDisplayName = function(value) {
    jspb.Message.setOneofField(this, 3, proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.oneofGroups_[0], value);
  };
  
  
  /**
   * Clears the field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.prototype.clearDisplayName = function() {
    jspb.Message.setOneofField(this, 3, proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.oneofGroups_[0], undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField.prototype.hasDisplayName = function() {
    return jspb.Message.getField(this, 3) != null;
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 1;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 1));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional ShareReference ref = 2;
   * @return {?proto.cs3.sharing.collaboration.v1beta1.ShareReference}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.prototype.getRef = function() {
    return /** @type{?proto.cs3.sharing.collaboration.v1beta1.ShareReference} */ (
      jspb.Message.getWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference, 2));
  };
  
  
  /** @param {?proto.cs3.sharing.collaboration.v1beta1.ShareReference|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.prototype.setRef = function(value) {
    jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.prototype.clearRef = function() {
    this.setRef(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.prototype.hasRef = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  /**
   * optional UpdateField field = 3;
   * @return {?proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.prototype.getField = function() {
    return /** @type{?proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField} */ (
      jspb.Message.getWrapperField(this, proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField, 3));
  };
  
  
  /** @param {?proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.UpdateField|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.prototype.setField = function(value) {
    jspb.Message.setWrapperField(this, 3, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.prototype.clearField = function() {
    this.setField(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareRequest.prototype.hasField = function() {
    return jspb.Message.getField(this, 3) != null;
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      status: (f = msg.getStatus()) && cs3_rpc_v1beta1_status_pb.Status.toObject(includeInstance, f),
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      share: (f = msg.getShare()) && cs3_sharing_collaboration_v1beta1_resources_pb.Share.toObject(includeInstance, f)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse;
    return proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_rpc_v1beta1_status_pb.Status;
        reader.readMessage(value,cs3_rpc_v1beta1_status_pb.Status.deserializeBinaryFromReader);
        msg.setStatus(value);
        break;
      case 2:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 3:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.Share;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.Share.deserializeBinaryFromReader);
        msg.setShare(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getStatus();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_rpc_v1beta1_status_pb.Status.serializeBinaryToWriter
      );
    }
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getShare();
    if (f != null) {
      writer.writeMessage(
        3,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.Share.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.rpc.v1beta1.Status status = 1;
   * @return {?proto.cs3.rpc.v1beta1.Status}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.prototype.getStatus = function() {
    return /** @type{?proto.cs3.rpc.v1beta1.Status} */ (
      jspb.Message.getWrapperField(this, cs3_rpc_v1beta1_status_pb.Status, 1));
  };
  
  
  /** @param {?proto.cs3.rpc.v1beta1.Status|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.prototype.setStatus = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.prototype.clearStatus = function() {
    this.setStatus(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.prototype.hasStatus = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 2;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 2));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  /**
   * optional Share share = 3;
   * @return {?proto.cs3.sharing.collaboration.v1beta1.Share}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.prototype.getShare = function() {
    return /** @type{?proto.cs3.sharing.collaboration.v1beta1.Share} */ (
      jspb.Message.getWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.Share, 3));
  };
  
  
  /** @param {?proto.cs3.sharing.collaboration.v1beta1.Share|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.prototype.setShare = function(value) {
    jspb.Message.setWrapperField(this, 3, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.prototype.clearShare = function() {
    this.setShare(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateShareResponse.prototype.hasShare = function() {
    return jspb.Message.getField(this, 3) != null;
  };
  
  
  
  /**
   * List of repeated fields within this message type.
   * @private {!Array<number>}
   * @const
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.repeatedFields_ = [2];
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      filtersList: jspb.Message.toObjectList(msg.getFiltersList(),
      cs3_sharing_collaboration_v1beta1_resources_pb.Filter.toObject, includeInstance)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest;
    return proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 2:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.Filter;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.Filter.deserializeBinaryFromReader);
        msg.addFilters(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getFiltersList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        2,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.Filter.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 1;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 1));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * repeated Filter filters = 2;
   * @return {!Array<!proto.cs3.sharing.collaboration.v1beta1.Filter>}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.prototype.getFiltersList = function() {
    return /** @type{!Array<!proto.cs3.sharing.collaboration.v1beta1.Filter>} */ (
      jspb.Message.getRepeatedWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.Filter, 2));
  };
  
  
  /** @param {!Array<!proto.cs3.sharing.collaboration.v1beta1.Filter>} value */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.prototype.setFiltersList = function(value) {
    jspb.Message.setRepeatedWrapperField(this, 2, value);
  };
  
  
  /**
   * @param {!proto.cs3.sharing.collaboration.v1beta1.Filter=} opt_value
   * @param {number=} opt_index
   * @return {!proto.cs3.sharing.collaboration.v1beta1.Filter}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.prototype.addFilters = function(opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cs3.sharing.collaboration.v1beta1.Filter, opt_index);
  };
  
  
  /**
   * Clears the list making it empty but non-null.
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesRequest.prototype.clearFiltersList = function() {
    this.setFiltersList([]);
  };
  
  
  
  /**
   * List of repeated fields within this message type.
   * @private {!Array<number>}
   * @const
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.repeatedFields_ = [3];
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      status: (f = msg.getStatus()) && cs3_rpc_v1beta1_status_pb.Status.toObject(includeInstance, f),
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      sharesList: jspb.Message.toObjectList(msg.getSharesList(),
      cs3_sharing_collaboration_v1beta1_resources_pb.Share.toObject, includeInstance)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse;
    return proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_rpc_v1beta1_status_pb.Status;
        reader.readMessage(value,cs3_rpc_v1beta1_status_pb.Status.deserializeBinaryFromReader);
        msg.setStatus(value);
        break;
      case 2:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 3:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.Share;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.Share.deserializeBinaryFromReader);
        msg.addShares(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getStatus();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_rpc_v1beta1_status_pb.Status.serializeBinaryToWriter
      );
    }
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getSharesList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        3,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.Share.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.rpc.v1beta1.Status status = 1;
   * @return {?proto.cs3.rpc.v1beta1.Status}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.prototype.getStatus = function() {
    return /** @type{?proto.cs3.rpc.v1beta1.Status} */ (
      jspb.Message.getWrapperField(this, cs3_rpc_v1beta1_status_pb.Status, 1));
  };
  
  
  /** @param {?proto.cs3.rpc.v1beta1.Status|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.prototype.setStatus = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.prototype.clearStatus = function() {
    this.setStatus(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.prototype.hasStatus = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 2;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 2));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  /**
   * repeated Share shares = 3;
   * @return {!Array<!proto.cs3.sharing.collaboration.v1beta1.Share>}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.prototype.getSharesList = function() {
    return /** @type{!Array<!proto.cs3.sharing.collaboration.v1beta1.Share>} */ (
      jspb.Message.getRepeatedWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.Share, 3));
  };
  
  
  /** @param {!Array<!proto.cs3.sharing.collaboration.v1beta1.Share>} value */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.prototype.setSharesList = function(value) {
    jspb.Message.setRepeatedWrapperField(this, 3, value);
  };
  
  
  /**
   * @param {!proto.cs3.sharing.collaboration.v1beta1.Share=} opt_value
   * @param {number=} opt_index
   * @return {!proto.cs3.sharing.collaboration.v1beta1.Share}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.prototype.addShares = function(opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.cs3.sharing.collaboration.v1beta1.Share, opt_index);
  };
  
  
  /**
   * Clears the list making it empty but non-null.
   */
  proto.cs3.sharing.collaboration.v1beta1.ListSharesResponse.prototype.clearSharesList = function() {
    this.setSharesList([]);
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      ref: (f = msg.getRef()) && cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference.toObject(includeInstance, f)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest;
    return proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 2:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference.deserializeBinaryFromReader);
        msg.setRef(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getRef();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 1;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 1));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional ShareReference ref = 2;
   * @return {?proto.cs3.sharing.collaboration.v1beta1.ShareReference}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.prototype.getRef = function() {
    return /** @type{?proto.cs3.sharing.collaboration.v1beta1.ShareReference} */ (
      jspb.Message.getWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference, 2));
  };
  
  
  /** @param {?proto.cs3.sharing.collaboration.v1beta1.ShareReference|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.prototype.setRef = function(value) {
    jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.prototype.clearRef = function() {
    this.setRef(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareRequest.prototype.hasRef = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      status: (f = msg.getStatus()) && cs3_rpc_v1beta1_status_pb.Status.toObject(includeInstance, f),
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse;
    return proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_rpc_v1beta1_status_pb.Status;
        reader.readMessage(value,cs3_rpc_v1beta1_status_pb.Status.deserializeBinaryFromReader);
        msg.setStatus(value);
        break;
      case 2:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getStatus();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_rpc_v1beta1_status_pb.Status.serializeBinaryToWriter
      );
    }
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.rpc.v1beta1.Status status = 1;
   * @return {?proto.cs3.rpc.v1beta1.Status}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.prototype.getStatus = function() {
    return /** @type{?proto.cs3.rpc.v1beta1.Status} */ (
      jspb.Message.getWrapperField(this, cs3_rpc_v1beta1_status_pb.Status, 1));
  };
  
  
  /** @param {?proto.cs3.rpc.v1beta1.Status|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.prototype.setStatus = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.prototype.clearStatus = function() {
    this.setStatus(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.prototype.hasStatus = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 2;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 2));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.RemoveShareResponse.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.GetShareRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      ref: (f = msg.getRef()) && cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference.toObject(includeInstance, f)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.GetShareRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.GetShareRequest;
    return proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.GetShareRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.GetShareRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 2:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference.deserializeBinaryFromReader);
        msg.setRef(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.GetShareRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getRef();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 1;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 1));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional ShareReference ref = 2;
   * @return {?proto.cs3.sharing.collaboration.v1beta1.ShareReference}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.prototype.getRef = function() {
    return /** @type{?proto.cs3.sharing.collaboration.v1beta1.ShareReference} */ (
      jspb.Message.getWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference, 2));
  };
  
  
  /** @param {?proto.cs3.sharing.collaboration.v1beta1.ShareReference|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.prototype.setRef = function(value) {
    jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.prototype.clearRef = function() {
    this.setRef(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareRequest.prototype.hasRef = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.GetShareResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      status: (f = msg.getStatus()) && cs3_rpc_v1beta1_status_pb.Status.toObject(includeInstance, f),
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      share: (f = msg.getShare()) && cs3_sharing_collaboration_v1beta1_resources_pb.Share.toObject(includeInstance, f)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.GetShareResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.GetShareResponse;
    return proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.GetShareResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.GetShareResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_rpc_v1beta1_status_pb.Status;
        reader.readMessage(value,cs3_rpc_v1beta1_status_pb.Status.deserializeBinaryFromReader);
        msg.setStatus(value);
        break;
      case 2:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 3:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.Share;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.Share.deserializeBinaryFromReader);
        msg.setShare(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.GetShareResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getStatus();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_rpc_v1beta1_status_pb.Status.serializeBinaryToWriter
      );
    }
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getShare();
    if (f != null) {
      writer.writeMessage(
        3,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.Share.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.rpc.v1beta1.Status status = 1;
   * @return {?proto.cs3.rpc.v1beta1.Status}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.prototype.getStatus = function() {
    return /** @type{?proto.cs3.rpc.v1beta1.Status} */ (
      jspb.Message.getWrapperField(this, cs3_rpc_v1beta1_status_pb.Status, 1));
  };
  
  
  /** @param {?proto.cs3.rpc.v1beta1.Status|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.prototype.setStatus = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.prototype.clearStatus = function() {
    this.setStatus(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.prototype.hasStatus = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 2;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 2));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  /**
   * optional Share share = 3;
   * @return {?proto.cs3.sharing.collaboration.v1beta1.Share}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.prototype.getShare = function() {
    return /** @type{?proto.cs3.sharing.collaboration.v1beta1.Share} */ (
      jspb.Message.getWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.Share, 3));
  };
  
  
  /** @param {?proto.cs3.sharing.collaboration.v1beta1.Share|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.prototype.setShare = function(value) {
    jspb.Message.setWrapperField(this, 3, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.prototype.clearShare = function() {
    this.setShare(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetShareResponse.prototype.hasShare = function() {
    return jspb.Message.getField(this, 3) != null;
  };
  
  
  
  /**
   * List of repeated fields within this message type.
   * @private {!Array<number>}
   * @const
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.repeatedFields_ = [3];
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      filtersList: jspb.Message.toObjectList(msg.getFiltersList(),
      cs3_sharing_collaboration_v1beta1_resources_pb.Filter.toObject, includeInstance)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest;
    return proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 3:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.Filter;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.Filter.deserializeBinaryFromReader);
        msg.addFilters(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getFiltersList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        3,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.Filter.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 1;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 1));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * repeated Filter filters = 3;
   * @return {!Array<!proto.cs3.sharing.collaboration.v1beta1.Filter>}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.prototype.getFiltersList = function() {
    return /** @type{!Array<!proto.cs3.sharing.collaboration.v1beta1.Filter>} */ (
      jspb.Message.getRepeatedWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.Filter, 3));
  };
  
  
  /** @param {!Array<!proto.cs3.sharing.collaboration.v1beta1.Filter>} value */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.prototype.setFiltersList = function(value) {
    jspb.Message.setRepeatedWrapperField(this, 3, value);
  };
  
  
  /**
   * @param {!proto.cs3.sharing.collaboration.v1beta1.Filter=} opt_value
   * @param {number=} opt_index
   * @return {!proto.cs3.sharing.collaboration.v1beta1.Filter}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.prototype.addFilters = function(opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.cs3.sharing.collaboration.v1beta1.Filter, opt_index);
  };
  
  
  /**
   * Clears the list making it empty but non-null.
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesRequest.prototype.clearFiltersList = function() {
    this.setFiltersList([]);
  };
  
  
  
  /**
   * List of repeated fields within this message type.
   * @private {!Array<number>}
   * @const
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.repeatedFields_ = [3];
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      status: (f = msg.getStatus()) && cs3_rpc_v1beta1_status_pb.Status.toObject(includeInstance, f),
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      sharesList: jspb.Message.toObjectList(msg.getSharesList(),
      cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare.toObject, includeInstance)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse;
    return proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_rpc_v1beta1_status_pb.Status;
        reader.readMessage(value,cs3_rpc_v1beta1_status_pb.Status.deserializeBinaryFromReader);
        msg.setStatus(value);
        break;
      case 2:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 3:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare.deserializeBinaryFromReader);
        msg.addShares(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getStatus();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_rpc_v1beta1_status_pb.Status.serializeBinaryToWriter
      );
    }
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getSharesList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        3,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.rpc.v1beta1.Status status = 1;
   * @return {?proto.cs3.rpc.v1beta1.Status}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.prototype.getStatus = function() {
    return /** @type{?proto.cs3.rpc.v1beta1.Status} */ (
      jspb.Message.getWrapperField(this, cs3_rpc_v1beta1_status_pb.Status, 1));
  };
  
  
  /** @param {?proto.cs3.rpc.v1beta1.Status|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.prototype.setStatus = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.prototype.clearStatus = function() {
    this.setStatus(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.prototype.hasStatus = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 2;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 2));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  /**
   * repeated ReceivedShare shares = 3;
   * @return {!Array<!proto.cs3.sharing.collaboration.v1beta1.ReceivedShare>}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.prototype.getSharesList = function() {
    return /** @type{!Array<!proto.cs3.sharing.collaboration.v1beta1.ReceivedShare>} */ (
      jspb.Message.getRepeatedWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare, 3));
  };
  
  
  /** @param {!Array<!proto.cs3.sharing.collaboration.v1beta1.ReceivedShare>} value */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.prototype.setSharesList = function(value) {
    jspb.Message.setRepeatedWrapperField(this, 3, value);
  };
  
  
  /**
   * @param {!proto.cs3.sharing.collaboration.v1beta1.ReceivedShare=} opt_value
   * @param {number=} opt_index
   * @return {!proto.cs3.sharing.collaboration.v1beta1.ReceivedShare}
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.prototype.addShares = function(opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.cs3.sharing.collaboration.v1beta1.ReceivedShare, opt_index);
  };
  
  
  /**
   * Clears the list making it empty but non-null.
   */
  proto.cs3.sharing.collaboration.v1beta1.ListReceivedSharesResponse.prototype.clearSharesList = function() {
    this.setSharesList([]);
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      share: (f = msg.getShare()) && cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare.toObject(includeInstance, f),
      updateMask: (f = msg.getUpdateMask()) && google_protobuf_field_mask_pb.FieldMask.toObject(includeInstance, f)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest;
    return proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 2:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare.deserializeBinaryFromReader);
        msg.setShare(value);
        break;
      case 3:
        var value = new google_protobuf_field_mask_pb.FieldMask;
        reader.readMessage(value,google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader);
        msg.setUpdateMask(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getShare();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare.serializeBinaryToWriter
      );
    }
    f = message.getUpdateMask();
    if (f != null) {
      writer.writeMessage(
        3,
        f,
        google_protobuf_field_mask_pb.FieldMask.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 1;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 1));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional ReceivedShare share = 2;
   * @return {?proto.cs3.sharing.collaboration.v1beta1.ReceivedShare}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.prototype.getShare = function() {
    return /** @type{?proto.cs3.sharing.collaboration.v1beta1.ReceivedShare} */ (
      jspb.Message.getWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare, 2));
  };
  
  
  /** @param {?proto.cs3.sharing.collaboration.v1beta1.ReceivedShare|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.prototype.setShare = function(value) {
    jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.prototype.clearShare = function() {
    this.setShare(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.prototype.hasShare = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  /**
   * optional google.protobuf.FieldMask update_mask = 3;
   * @return {?proto.google.protobuf.FieldMask}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.prototype.getUpdateMask = function() {
    return /** @type{?proto.google.protobuf.FieldMask} */ (
      jspb.Message.getWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 3));
  };
  
  
  /** @param {?proto.google.protobuf.FieldMask|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.prototype.setUpdateMask = function(value) {
    jspb.Message.setWrapperField(this, 3, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.prototype.clearUpdateMask = function() {
    this.setUpdateMask(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareRequest.prototype.hasUpdateMask = function() {
    return jspb.Message.getField(this, 3) != null;
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      status: (f = msg.getStatus()) && cs3_rpc_v1beta1_status_pb.Status.toObject(includeInstance, f),
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      share: (f = msg.getShare()) && cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare.toObject(includeInstance, f)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse;
    return proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_rpc_v1beta1_status_pb.Status;
        reader.readMessage(value,cs3_rpc_v1beta1_status_pb.Status.deserializeBinaryFromReader);
        msg.setStatus(value);
        break;
      case 2:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 3:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare.deserializeBinaryFromReader);
        msg.setShare(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getStatus();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_rpc_v1beta1_status_pb.Status.serializeBinaryToWriter
      );
    }
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getShare();
    if (f != null) {
      writer.writeMessage(
        3,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.rpc.v1beta1.Status status = 1;
   * @return {?proto.cs3.rpc.v1beta1.Status}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.prototype.getStatus = function() {
    return /** @type{?proto.cs3.rpc.v1beta1.Status} */ (
      jspb.Message.getWrapperField(this, cs3_rpc_v1beta1_status_pb.Status, 1));
  };
  
  
  /** @param {?proto.cs3.rpc.v1beta1.Status|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.prototype.setStatus = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.prototype.clearStatus = function() {
    this.setStatus(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.prototype.hasStatus = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 2;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 2));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  /**
   * optional ReceivedShare share = 3;
   * @return {?proto.cs3.sharing.collaboration.v1beta1.ReceivedShare}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.prototype.getShare = function() {
    return /** @type{?proto.cs3.sharing.collaboration.v1beta1.ReceivedShare} */ (
      jspb.Message.getWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare, 3));
  };
  
  
  /** @param {?proto.cs3.sharing.collaboration.v1beta1.ReceivedShare|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.prototype.setShare = function(value) {
    jspb.Message.setWrapperField(this, 3, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.prototype.clearShare = function() {
    this.setShare(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.UpdateReceivedShareResponse.prototype.hasShare = function() {
    return jspb.Message.getField(this, 3) != null;
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.toObject = function(includeInstance, msg) {
    var f, obj = {
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      ref: (f = msg.getRef()) && cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference.toObject(includeInstance, f)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest;
    return proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 2:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference.deserializeBinaryFromReader);
        msg.setRef(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getRef();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 1;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 1));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional ShareReference ref = 2;
   * @return {?proto.cs3.sharing.collaboration.v1beta1.ShareReference}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.prototype.getRef = function() {
    return /** @type{?proto.cs3.sharing.collaboration.v1beta1.ShareReference} */ (
      jspb.Message.getWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.ShareReference, 2));
  };
  
  
  /** @param {?proto.cs3.sharing.collaboration.v1beta1.ShareReference|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.prototype.setRef = function(value) {
    jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.prototype.clearRef = function() {
    this.setRef(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareRequest.prototype.hasRef = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.prototype.toObject = function(opt_includeInstance) {
    return proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   *     the JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.toObject = function(includeInstance, msg) {
    var f, obj = {
      status: (f = msg.getStatus()) && cs3_rpc_v1beta1_status_pb.Status.toObject(includeInstance, f),
      opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
      share: (f = msg.getShare()) && cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare.toObject(includeInstance, f)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse;
    return proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = new cs3_rpc_v1beta1_status_pb.Status;
        reader.readMessage(value,cs3_rpc_v1beta1_status_pb.Status.deserializeBinaryFromReader);
        msg.setStatus(value);
        break;
      case 2:
        var value = new cs3_types_v1beta1_types_pb.Opaque;
        reader.readMessage(value,cs3_types_v1beta1_types_pb.Opaque.deserializeBinaryFromReader);
        msg.setOpaque(value);
        break;
      case 3:
        var value = new cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare;
        reader.readMessage(value,cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare.deserializeBinaryFromReader);
        msg.setShare(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getStatus();
    if (f != null) {
      writer.writeMessage(
        1,
        f,
        cs3_rpc_v1beta1_status_pb.Status.serializeBinaryToWriter
      );
    }
    f = message.getOpaque();
    if (f != null) {
      writer.writeMessage(
        2,
        f,
        cs3_types_v1beta1_types_pb.Opaque.serializeBinaryToWriter
      );
    }
    f = message.getShare();
    if (f != null) {
      writer.writeMessage(
        3,
        f,
        cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional cs3.rpc.v1beta1.Status status = 1;
   * @return {?proto.cs3.rpc.v1beta1.Status}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.prototype.getStatus = function() {
    return /** @type{?proto.cs3.rpc.v1beta1.Status} */ (
      jspb.Message.getWrapperField(this, cs3_rpc_v1beta1_status_pb.Status, 1));
  };
  
  
  /** @param {?proto.cs3.rpc.v1beta1.Status|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.prototype.setStatus = function(value) {
    jspb.Message.setWrapperField(this, 1, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.prototype.clearStatus = function() {
    this.setStatus(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.prototype.hasStatus = function() {
    return jspb.Message.getField(this, 1) != null;
  };
  
  
  /**
   * optional cs3.types.v1beta1.Opaque opaque = 2;
   * @return {?proto.cs3.types.v1beta1.Opaque}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.prototype.getOpaque = function() {
    return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
      jspb.Message.getWrapperField(this, cs3_types_v1beta1_types_pb.Opaque, 2));
  };
  
  
  /** @param {?proto.cs3.types.v1beta1.Opaque|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.prototype.setOpaque = function(value) {
    jspb.Message.setWrapperField(this, 2, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.prototype.clearOpaque = function() {
    this.setOpaque(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.prototype.hasOpaque = function() {
    return jspb.Message.getField(this, 2) != null;
  };
  
  
  /**
   * optional ReceivedShare share = 3;
   * @return {?proto.cs3.sharing.collaboration.v1beta1.ReceivedShare}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.prototype.getShare = function() {
    return /** @type{?proto.cs3.sharing.collaboration.v1beta1.ReceivedShare} */ (
      jspb.Message.getWrapperField(this, cs3_sharing_collaboration_v1beta1_resources_pb.ReceivedShare, 3));
  };
  
  
  /** @param {?proto.cs3.sharing.collaboration.v1beta1.ReceivedShare|undefined} value */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.prototype.setShare = function(value) {
    jspb.Message.setWrapperField(this, 3, value);
  };
  
  
  /**
   * Clears the message field making it undefined.
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.prototype.clearShare = function() {
    this.setShare(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.cs3.sharing.collaboration.v1beta1.GetReceivedShareResponse.prototype.hasShare = function() {
    return jspb.Message.getField(this, 3) != null;
  };
  
  
  goog.object.extend(exports, proto.cs3.sharing.collaboration.v1beta1);
  