Class CommonObjectRequestParams.Builder

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

public static final class CommonObjectRequestParams.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommonObjectRequestParams.Builder> implements CommonObjectRequestParamsOrBuilder
 Parameters that can be passed to any object request.
 
Protobuf type google.storage.v2.CommonObjectRequestParams
  • 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<CommonObjectRequestParams.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<CommonObjectRequestParams.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<CommonObjectRequestParams.Builder>
    • getDefaultInstanceForType

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

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

      public CommonObjectRequestParams 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<CommonObjectRequestParams.Builder>
    • setField

      public CommonObjectRequestParams.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<CommonObjectRequestParams.Builder>
    • clearField

      public CommonObjectRequestParams.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<CommonObjectRequestParams.Builder>
    • clearOneof

      public CommonObjectRequestParams.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<CommonObjectRequestParams.Builder>
    • setRepeatedField

      public CommonObjectRequestParams.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<CommonObjectRequestParams.Builder>
    • addRepeatedField

      public CommonObjectRequestParams.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<CommonObjectRequestParams.Builder>
    • mergeFrom

      public CommonObjectRequestParams.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<CommonObjectRequestParams.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<CommonObjectRequestParams.Builder>
    • mergeFrom

      public CommonObjectRequestParams.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<CommonObjectRequestParams.Builder>
      Throws:
      IOException
    • getEncryptionAlgorithm

      public String getEncryptionAlgorithm()
       Optional. Encryption algorithm used with the Customer-Supplied Encryption
       Keys feature.
       
      string encryption_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncryptionAlgorithm in interface CommonObjectRequestParamsOrBuilder
      Returns:
      The encryptionAlgorithm.
    • getEncryptionAlgorithmBytes

      public com.google.protobuf.ByteString getEncryptionAlgorithmBytes()
       Optional. Encryption algorithm used with the Customer-Supplied Encryption
       Keys feature.
       
      string encryption_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncryptionAlgorithmBytes in interface CommonObjectRequestParamsOrBuilder
      Returns:
      The bytes for encryptionAlgorithm.
    • setEncryptionAlgorithm

      public CommonObjectRequestParams.Builder setEncryptionAlgorithm(String value)
       Optional. Encryption algorithm used with the Customer-Supplied Encryption
       Keys feature.
       
      string encryption_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The encryptionAlgorithm to set.
      Returns:
      This builder for chaining.
    • clearEncryptionAlgorithm

      public CommonObjectRequestParams.Builder clearEncryptionAlgorithm()
       Optional. Encryption algorithm used with the Customer-Supplied Encryption
       Keys feature.
       
      string encryption_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEncryptionAlgorithmBytes

      public CommonObjectRequestParams.Builder setEncryptionAlgorithmBytes(com.google.protobuf.ByteString value)
       Optional. Encryption algorithm used with the Customer-Supplied Encryption
       Keys feature.
       
      string encryption_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for encryptionAlgorithm to set.
      Returns:
      This builder for chaining.
    • getEncryptionKeyBytes

      public com.google.protobuf.ByteString getEncryptionKeyBytes()
       Optional. Encryption key used with the Customer-Supplied Encryption Keys
       feature. In raw bytes format (not base64-encoded).
       
      bytes encryption_key_bytes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncryptionKeyBytes in interface CommonObjectRequestParamsOrBuilder
      Returns:
      The encryptionKeyBytes.
    • setEncryptionKeyBytes

      public CommonObjectRequestParams.Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value)
       Optional. Encryption key used with the Customer-Supplied Encryption Keys
       feature. In raw bytes format (not base64-encoded).
       
      bytes encryption_key_bytes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The encryptionKeyBytes to set.
      Returns:
      This builder for chaining.
    • clearEncryptionKeyBytes

      public CommonObjectRequestParams.Builder clearEncryptionKeyBytes()
       Optional. Encryption key used with the Customer-Supplied Encryption Keys
       feature. In raw bytes format (not base64-encoded).
       
      bytes encryption_key_bytes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getEncryptionKeySha256Bytes

      public com.google.protobuf.ByteString getEncryptionKeySha256Bytes()
       Optional. SHA256 hash of encryption key used with the Customer-Supplied
       Encryption Keys feature.
       
      bytes encryption_key_sha256_bytes = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncryptionKeySha256Bytes in interface CommonObjectRequestParamsOrBuilder
      Returns:
      The encryptionKeySha256Bytes.
    • setEncryptionKeySha256Bytes

      public CommonObjectRequestParams.Builder setEncryptionKeySha256Bytes(com.google.protobuf.ByteString value)
       Optional. SHA256 hash of encryption key used with the Customer-Supplied
       Encryption Keys feature.
       
      bytes encryption_key_sha256_bytes = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The encryptionKeySha256Bytes to set.
      Returns:
      This builder for chaining.
    • clearEncryptionKeySha256Bytes

      public CommonObjectRequestParams.Builder clearEncryptionKeySha256Bytes()
       Optional. SHA256 hash of encryption key used with the Customer-Supplied
       Encryption Keys feature.
       
      bytes encryption_key_sha256_bytes = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final CommonObjectRequestParams.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<CommonObjectRequestParams.Builder>
    • mergeUnknownFields

      public final CommonObjectRequestParams.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<CommonObjectRequestParams.Builder>