Class BidiWriteObjectRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRequest.Builder>
com.google.storage.v2.BidiWriteObjectRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BidiWriteObjectRequestOrBuilder, Cloneable
Enclosing class:
BidiWriteObjectRequest

public static final class BidiWriteObjectRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRequest.Builder> implements BidiWriteObjectRequestOrBuilder
 Request message for BidiWriteObject.
 
Protobuf type google.storage.v2.BidiWriteObjectRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRequest.Builder>
    • getDefaultInstanceForType

      public BidiWriteObjectRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public BidiWriteObjectRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BidiWriteObjectRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRequest.Builder>
    • setField

      public BidiWriteObjectRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRequest.Builder>
    • clearField

      public BidiWriteObjectRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRequest.Builder>
    • clearOneof

      public BidiWriteObjectRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRequest.Builder>
    • setRepeatedField

      public BidiWriteObjectRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRequest.Builder>
    • addRepeatedField

      public BidiWriteObjectRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRequest.Builder>
    • mergeFrom

      public BidiWriteObjectRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BidiWriteObjectRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRequest.Builder>
    • mergeFrom

      public BidiWriteObjectRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BidiWriteObjectRequest.Builder>
      Throws:
      IOException
    • getFirstMessageCase

      public BidiWriteObjectRequest.FirstMessageCase getFirstMessageCase()
      Specified by:
      getFirstMessageCase in interface BidiWriteObjectRequestOrBuilder
    • clearFirstMessage

      public BidiWriteObjectRequest.Builder clearFirstMessage()
    • getDataCase

      public BidiWriteObjectRequest.DataCase getDataCase()
      Specified by:
      getDataCase in interface BidiWriteObjectRequestOrBuilder
    • clearData

      public BidiWriteObjectRequest.Builder clearData()
    • hasUploadId

      public boolean hasUploadId()
       For resumable uploads. This should be the `upload_id` returned from a
       call to `StartResumableWriteResponse`.
       
      string upload_id = 1;
      Specified by:
      hasUploadId in interface BidiWriteObjectRequestOrBuilder
      Returns:
      Whether the uploadId field is set.
    • getUploadId

      public String getUploadId()
       For resumable uploads. This should be the `upload_id` returned from a
       call to `StartResumableWriteResponse`.
       
      string upload_id = 1;
      Specified by:
      getUploadId in interface BidiWriteObjectRequestOrBuilder
      Returns:
      The uploadId.
    • getUploadIdBytes

      public com.google.protobuf.ByteString getUploadIdBytes()
       For resumable uploads. This should be the `upload_id` returned from a
       call to `StartResumableWriteResponse`.
       
      string upload_id = 1;
      Specified by:
      getUploadIdBytes in interface BidiWriteObjectRequestOrBuilder
      Returns:
      The bytes for uploadId.
    • setUploadId

      public BidiWriteObjectRequest.Builder setUploadId(String value)
       For resumable uploads. This should be the `upload_id` returned from a
       call to `StartResumableWriteResponse`.
       
      string upload_id = 1;
      Parameters:
      value - The uploadId to set.
      Returns:
      This builder for chaining.
    • clearUploadId

      public BidiWriteObjectRequest.Builder clearUploadId()
       For resumable uploads. This should be the `upload_id` returned from a
       call to `StartResumableWriteResponse`.
       
      string upload_id = 1;
      Returns:
      This builder for chaining.
    • setUploadIdBytes

      public BidiWriteObjectRequest.Builder setUploadIdBytes(com.google.protobuf.ByteString value)
       For resumable uploads. This should be the `upload_id` returned from a
       call to `StartResumableWriteResponse`.
       
      string upload_id = 1;
      Parameters:
      value - The bytes for uploadId to set.
      Returns:
      This builder for chaining.
    • hasWriteObjectSpec

      public boolean hasWriteObjectSpec()
       For non-resumable uploads. Describes the overall upload, including the
       destination bucket and object name, preconditions, etc.
       
      .google.storage.v2.WriteObjectSpec write_object_spec = 2;
      Specified by:
      hasWriteObjectSpec in interface BidiWriteObjectRequestOrBuilder
      Returns:
      Whether the writeObjectSpec field is set.
    • getWriteObjectSpec

      public WriteObjectSpec getWriteObjectSpec()
       For non-resumable uploads. Describes the overall upload, including the
       destination bucket and object name, preconditions, etc.
       
      .google.storage.v2.WriteObjectSpec write_object_spec = 2;
      Specified by:
      getWriteObjectSpec in interface BidiWriteObjectRequestOrBuilder
      Returns:
      The writeObjectSpec.
    • setWriteObjectSpec

      public BidiWriteObjectRequest.Builder setWriteObjectSpec(WriteObjectSpec value)
       For non-resumable uploads. Describes the overall upload, including the
       destination bucket and object name, preconditions, etc.
       
      .google.storage.v2.WriteObjectSpec write_object_spec = 2;
    • setWriteObjectSpec

      public BidiWriteObjectRequest.Builder setWriteObjectSpec(WriteObjectSpec.Builder builderForValue)
       For non-resumable uploads. Describes the overall upload, including the
       destination bucket and object name, preconditions, etc.
       
      .google.storage.v2.WriteObjectSpec write_object_spec = 2;
    • mergeWriteObjectSpec

      public BidiWriteObjectRequest.Builder mergeWriteObjectSpec(WriteObjectSpec value)
       For non-resumable uploads. Describes the overall upload, including the
       destination bucket and object name, preconditions, etc.
       
      .google.storage.v2.WriteObjectSpec write_object_spec = 2;
    • clearWriteObjectSpec

      public BidiWriteObjectRequest.Builder clearWriteObjectSpec()
       For non-resumable uploads. Describes the overall upload, including the
       destination bucket and object name, preconditions, etc.
       
      .google.storage.v2.WriteObjectSpec write_object_spec = 2;
    • getWriteObjectSpecBuilder

      public WriteObjectSpec.Builder getWriteObjectSpecBuilder()
       For non-resumable uploads. Describes the overall upload, including the
       destination bucket and object name, preconditions, etc.
       
      .google.storage.v2.WriteObjectSpec write_object_spec = 2;
    • getWriteObjectSpecOrBuilder

      public WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder()
       For non-resumable uploads. Describes the overall upload, including the
       destination bucket and object name, preconditions, etc.
       
      .google.storage.v2.WriteObjectSpec write_object_spec = 2;
      Specified by:
      getWriteObjectSpecOrBuilder in interface BidiWriteObjectRequestOrBuilder
    • hasAppendObjectSpec

      public boolean hasAppendObjectSpec()
       For appendable uploads. Describes the object to append to.
       
      .google.storage.v2.AppendObjectSpec append_object_spec = 11;
      Specified by:
      hasAppendObjectSpec in interface BidiWriteObjectRequestOrBuilder
      Returns:
      Whether the appendObjectSpec field is set.
    • getAppendObjectSpec

      public AppendObjectSpec getAppendObjectSpec()
       For appendable uploads. Describes the object to append to.
       
      .google.storage.v2.AppendObjectSpec append_object_spec = 11;
      Specified by:
      getAppendObjectSpec in interface BidiWriteObjectRequestOrBuilder
      Returns:
      The appendObjectSpec.
    • setAppendObjectSpec

      public BidiWriteObjectRequest.Builder setAppendObjectSpec(AppendObjectSpec value)
       For appendable uploads. Describes the object to append to.
       
      .google.storage.v2.AppendObjectSpec append_object_spec = 11;
    • setAppendObjectSpec

      public BidiWriteObjectRequest.Builder setAppendObjectSpec(AppendObjectSpec.Builder builderForValue)
       For appendable uploads. Describes the object to append to.
       
      .google.storage.v2.AppendObjectSpec append_object_spec = 11;
    • mergeAppendObjectSpec

      public BidiWriteObjectRequest.Builder mergeAppendObjectSpec(AppendObjectSpec value)
       For appendable uploads. Describes the object to append to.
       
      .google.storage.v2.AppendObjectSpec append_object_spec = 11;
    • clearAppendObjectSpec

      public BidiWriteObjectRequest.Builder clearAppendObjectSpec()
       For appendable uploads. Describes the object to append to.
       
      .google.storage.v2.AppendObjectSpec append_object_spec = 11;
    • getAppendObjectSpecBuilder

      public AppendObjectSpec.Builder getAppendObjectSpecBuilder()
       For appendable uploads. Describes the object to append to.
       
      .google.storage.v2.AppendObjectSpec append_object_spec = 11;
    • getAppendObjectSpecOrBuilder

      public AppendObjectSpecOrBuilder getAppendObjectSpecOrBuilder()
       For appendable uploads. Describes the object to append to.
       
      .google.storage.v2.AppendObjectSpec append_object_spec = 11;
      Specified by:
      getAppendObjectSpecOrBuilder in interface BidiWriteObjectRequestOrBuilder
    • getWriteOffset

      public long getWriteOffset()
       Required. The offset from the beginning of the object at which the data
       should be written.
      
       In the first `WriteObjectRequest` of a `WriteObject()` action, it
       indicates the initial offset for the `Write()` call. The value **must** be
       equal to the `persisted_size` that a call to `QueryWriteStatus()` would
       return (0 if this is the first write to the object).
      
       On subsequent calls, this value **must** be no larger than the sum of the
       first `write_offset` and the sizes of all `data` chunks sent previously on
       this stream.
      
       An invalid value will cause an error.
       
      int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWriteOffset in interface BidiWriteObjectRequestOrBuilder
      Returns:
      The writeOffset.
    • setWriteOffset

      public BidiWriteObjectRequest.Builder setWriteOffset(long value)
       Required. The offset from the beginning of the object at which the data
       should be written.
      
       In the first `WriteObjectRequest` of a `WriteObject()` action, it
       indicates the initial offset for the `Write()` call. The value **must** be
       equal to the `persisted_size` that a call to `QueryWriteStatus()` would
       return (0 if this is the first write to the object).
      
       On subsequent calls, this value **must** be no larger than the sum of the
       first `write_offset` and the sizes of all `data` chunks sent previously on
       this stream.
      
       An invalid value will cause an error.
       
      int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The writeOffset to set.
      Returns:
      This builder for chaining.
    • clearWriteOffset

      public BidiWriteObjectRequest.Builder clearWriteOffset()
       Required. The offset from the beginning of the object at which the data
       should be written.
      
       In the first `WriteObjectRequest` of a `WriteObject()` action, it
       indicates the initial offset for the `Write()` call. The value **must** be
       equal to the `persisted_size` that a call to `QueryWriteStatus()` would
       return (0 if this is the first write to the object).
      
       On subsequent calls, this value **must** be no larger than the sum of the
       first `write_offset` and the sizes of all `data` chunks sent previously on
       this stream.
      
       An invalid value will cause an error.
       
      int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasChecksummedData

      public boolean hasChecksummedData()
       The data to insert. If a crc32c checksum is provided that doesn't match
       the checksum computed by the service, the request will fail.
       
      .google.storage.v2.ChecksummedData checksummed_data = 4;
      Specified by:
      hasChecksummedData in interface BidiWriteObjectRequestOrBuilder
      Returns:
      Whether the checksummedData field is set.
    • getChecksummedData

      public ChecksummedData getChecksummedData()
       The data to insert. If a crc32c checksum is provided that doesn't match
       the checksum computed by the service, the request will fail.
       
      .google.storage.v2.ChecksummedData checksummed_data = 4;
      Specified by:
      getChecksummedData in interface BidiWriteObjectRequestOrBuilder
      Returns:
      The checksummedData.
    • setChecksummedData

      public BidiWriteObjectRequest.Builder setChecksummedData(ChecksummedData value)
       The data to insert. If a crc32c checksum is provided that doesn't match
       the checksum computed by the service, the request will fail.
       
      .google.storage.v2.ChecksummedData checksummed_data = 4;
    • setChecksummedData

      public BidiWriteObjectRequest.Builder setChecksummedData(ChecksummedData.Builder builderForValue)
       The data to insert. If a crc32c checksum is provided that doesn't match
       the checksum computed by the service, the request will fail.
       
      .google.storage.v2.ChecksummedData checksummed_data = 4;
    • mergeChecksummedData

      public BidiWriteObjectRequest.Builder mergeChecksummedData(ChecksummedData value)
       The data to insert. If a crc32c checksum is provided that doesn't match
       the checksum computed by the service, the request will fail.
       
      .google.storage.v2.ChecksummedData checksummed_data = 4;
    • clearChecksummedData

      public BidiWriteObjectRequest.Builder clearChecksummedData()
       The data to insert. If a crc32c checksum is provided that doesn't match
       the checksum computed by the service, the request will fail.
       
      .google.storage.v2.ChecksummedData checksummed_data = 4;
    • getChecksummedDataBuilder

      public ChecksummedData.Builder getChecksummedDataBuilder()
       The data to insert. If a crc32c checksum is provided that doesn't match
       the checksum computed by the service, the request will fail.
       
      .google.storage.v2.ChecksummedData checksummed_data = 4;
    • getChecksummedDataOrBuilder

      public ChecksummedDataOrBuilder getChecksummedDataOrBuilder()
       The data to insert. If a crc32c checksum is provided that doesn't match
       the checksum computed by the service, the request will fail.
       
      .google.storage.v2.ChecksummedData checksummed_data = 4;
      Specified by:
      getChecksummedDataOrBuilder in interface BidiWriteObjectRequestOrBuilder
    • hasObjectChecksums

      public boolean hasObjectChecksums()
       Optional. Checksums for the complete object. If the checksums computed by
       the service don't match the specified checksums the call will fail. May
       only be provided in the first request or the last request (with
       finish_write set).
       
      .google.storage.v2.ObjectChecksums object_checksums = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasObjectChecksums in interface BidiWriteObjectRequestOrBuilder
      Returns:
      Whether the objectChecksums field is set.
    • getObjectChecksums

      public ObjectChecksums getObjectChecksums()
       Optional. Checksums for the complete object. If the checksums computed by
       the service don't match the specified checksums the call will fail. May
       only be provided in the first request or the last request (with
       finish_write set).
       
      .google.storage.v2.ObjectChecksums object_checksums = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getObjectChecksums in interface BidiWriteObjectRequestOrBuilder
      Returns:
      The objectChecksums.
    • setObjectChecksums

      public BidiWriteObjectRequest.Builder setObjectChecksums(ObjectChecksums value)
       Optional. Checksums for the complete object. If the checksums computed by
       the service don't match the specified checksums the call will fail. May
       only be provided in the first request or the last request (with
       finish_write set).
       
      .google.storage.v2.ObjectChecksums object_checksums = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setObjectChecksums

      public BidiWriteObjectRequest.Builder setObjectChecksums(ObjectChecksums.Builder builderForValue)
       Optional. Checksums for the complete object. If the checksums computed by
       the service don't match the specified checksums the call will fail. May
       only be provided in the first request or the last request (with
       finish_write set).
       
      .google.storage.v2.ObjectChecksums object_checksums = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergeObjectChecksums

      public BidiWriteObjectRequest.Builder mergeObjectChecksums(ObjectChecksums value)
       Optional. Checksums for the complete object. If the checksums computed by
       the service don't match the specified checksums the call will fail. May
       only be provided in the first request or the last request (with
       finish_write set).
       
      .google.storage.v2.ObjectChecksums object_checksums = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearObjectChecksums

      public BidiWriteObjectRequest.Builder clearObjectChecksums()
       Optional. Checksums for the complete object. If the checksums computed by
       the service don't match the specified checksums the call will fail. May
       only be provided in the first request or the last request (with
       finish_write set).
       
      .google.storage.v2.ObjectChecksums object_checksums = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getObjectChecksumsBuilder

      public ObjectChecksums.Builder getObjectChecksumsBuilder()
       Optional. Checksums for the complete object. If the checksums computed by
       the service don't match the specified checksums the call will fail. May
       only be provided in the first request or the last request (with
       finish_write set).
       
      .google.storage.v2.ObjectChecksums object_checksums = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getObjectChecksumsOrBuilder

      public ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder()
       Optional. Checksums for the complete object. If the checksums computed by
       the service don't match the specified checksums the call will fail. May
       only be provided in the first request or the last request (with
       finish_write set).
       
      .google.storage.v2.ObjectChecksums object_checksums = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getObjectChecksumsOrBuilder in interface BidiWriteObjectRequestOrBuilder
    • getStateLookup

      public boolean getStateLookup()
       Optional. For each BidiWriteObjectRequest where state_lookup is `true` or
       the client closes the stream, the service will send a
       BidiWriteObjectResponse containing the current persisted size. The
       persisted size sent in responses covers all the bytes the server has
       persisted thus far and can be used to decide what data is safe for the
       client to drop. Note that the object's current size reported by the
       BidiWriteObjectResponse may lag behind the number of bytes written by the
       client. This field is ignored if `finish_write` is set to true.
       
      bool state_lookup = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStateLookup in interface BidiWriteObjectRequestOrBuilder
      Returns:
      The stateLookup.
    • setStateLookup

      public BidiWriteObjectRequest.Builder setStateLookup(boolean value)
       Optional. For each BidiWriteObjectRequest where state_lookup is `true` or
       the client closes the stream, the service will send a
       BidiWriteObjectResponse containing the current persisted size. The
       persisted size sent in responses covers all the bytes the server has
       persisted thus far and can be used to decide what data is safe for the
       client to drop. Note that the object's current size reported by the
       BidiWriteObjectResponse may lag behind the number of bytes written by the
       client. This field is ignored if `finish_write` is set to true.
       
      bool state_lookup = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The stateLookup to set.
      Returns:
      This builder for chaining.
    • clearStateLookup

      public BidiWriteObjectRequest.Builder clearStateLookup()
       Optional. For each BidiWriteObjectRequest where state_lookup is `true` or
       the client closes the stream, the service will send a
       BidiWriteObjectResponse containing the current persisted size. The
       persisted size sent in responses covers all the bytes the server has
       persisted thus far and can be used to decide what data is safe for the
       client to drop. Note that the object's current size reported by the
       BidiWriteObjectResponse may lag behind the number of bytes written by the
       client. This field is ignored if `finish_write` is set to true.
       
      bool state_lookup = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getFlush

      public boolean getFlush()
       Optional. Persists data written on the stream, up to and including the
       current message, to permanent storage. This option should be used sparingly
       as it may reduce performance. Ongoing writes will periodically be persisted
       on the server even when `flush` is not set. This field is ignored if
       `finish_write` is set to true since there's no need to checkpoint or flush
       if this message completes the write.
       
      bool flush = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFlush in interface BidiWriteObjectRequestOrBuilder
      Returns:
      The flush.
    • setFlush

      public BidiWriteObjectRequest.Builder setFlush(boolean value)
       Optional. Persists data written on the stream, up to and including the
       current message, to permanent storage. This option should be used sparingly
       as it may reduce performance. Ongoing writes will periodically be persisted
       on the server even when `flush` is not set. This field is ignored if
       `finish_write` is set to true since there's no need to checkpoint or flush
       if this message completes the write.
       
      bool flush = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The flush to set.
      Returns:
      This builder for chaining.
    • clearFlush

      public BidiWriteObjectRequest.Builder clearFlush()
       Optional. Persists data written on the stream, up to and including the
       current message, to permanent storage. This option should be used sparingly
       as it may reduce performance. Ongoing writes will periodically be persisted
       on the server even when `flush` is not set. This field is ignored if
       `finish_write` is set to true since there's no need to checkpoint or flush
       if this message completes the write.
       
      bool flush = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getFinishWrite

      public boolean getFinishWrite()
       Optional. If `true`, this indicates that the write is complete. Sending any
       `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
       will cause an error.
       For a non-resumable write (where the upload_id was not set in the first
       message), it is an error not to set this field in the final message of the
       stream.
       
      bool finish_write = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFinishWrite in interface BidiWriteObjectRequestOrBuilder
      Returns:
      The finishWrite.
    • setFinishWrite

      public BidiWriteObjectRequest.Builder setFinishWrite(boolean value)
       Optional. If `true`, this indicates that the write is complete. Sending any
       `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
       will cause an error.
       For a non-resumable write (where the upload_id was not set in the first
       message), it is an error not to set this field in the final message of the
       stream.
       
      bool finish_write = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The finishWrite to set.
      Returns:
      This builder for chaining.
    • clearFinishWrite

      public BidiWriteObjectRequest.Builder clearFinishWrite()
       Optional. If `true`, this indicates that the write is complete. Sending any
       `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
       will cause an error.
       For a non-resumable write (where the upload_id was not set in the first
       message), it is an error not to set this field in the final message of the
       stream.
       
      bool finish_write = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasCommonObjectRequestParams

      public boolean hasCommonObjectRequestParams()
       Optional. A set of parameters common to Storage API requests concerning an
       object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCommonObjectRequestParams in interface BidiWriteObjectRequestOrBuilder
      Returns:
      Whether the commonObjectRequestParams field is set.
    • getCommonObjectRequestParams

      public CommonObjectRequestParams getCommonObjectRequestParams()
       Optional. A set of parameters common to Storage API requests concerning an
       object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCommonObjectRequestParams in interface BidiWriteObjectRequestOrBuilder
      Returns:
      The commonObjectRequestParams.
    • setCommonObjectRequestParams

      public BidiWriteObjectRequest.Builder setCommonObjectRequestParams(CommonObjectRequestParams value)
       Optional. A set of parameters common to Storage API requests concerning an
       object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10 [(.google.api.field_behavior) = OPTIONAL];
    • setCommonObjectRequestParams

      public BidiWriteObjectRequest.Builder setCommonObjectRequestParams(CommonObjectRequestParams.Builder builderForValue)
       Optional. A set of parameters common to Storage API requests concerning an
       object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCommonObjectRequestParams

      public BidiWriteObjectRequest.Builder mergeCommonObjectRequestParams(CommonObjectRequestParams value)
       Optional. A set of parameters common to Storage API requests concerning an
       object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10 [(.google.api.field_behavior) = OPTIONAL];
    • clearCommonObjectRequestParams

      public BidiWriteObjectRequest.Builder clearCommonObjectRequestParams()
       Optional. A set of parameters common to Storage API requests concerning an
       object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getCommonObjectRequestParamsBuilder

      public CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder()
       Optional. A set of parameters common to Storage API requests concerning an
       object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getCommonObjectRequestParamsOrBuilder

      public CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder()
       Optional. A set of parameters common to Storage API requests concerning an
       object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCommonObjectRequestParamsOrBuilder in interface BidiWriteObjectRequestOrBuilder
    • setUnknownFields

      public final BidiWriteObjectRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRequest.Builder>
    • mergeUnknownFields

      public final BidiWriteObjectRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BidiWriteObjectRequest.Builder>