Class TransferTypes.S3CompatibleMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransferTypes.S3CompatibleMetadata.Builder>
com.google.storagetransfer.v1.proto.TransferTypes.S3CompatibleMetadata.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TransferTypes.S3CompatibleMetadataOrBuilder, Cloneable
Enclosing class:
TransferTypes.S3CompatibleMetadata

public static final class TransferTypes.S3CompatibleMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<TransferTypes.S3CompatibleMetadata.Builder> implements TransferTypes.S3CompatibleMetadataOrBuilder
 S3CompatibleMetadata contains the metadata fields that apply to the basic
 types of S3-compatible data providers.
 
Protobuf type google.storagetransfer.v1.S3CompatibleMetadata
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TransferTypes.S3CompatibleMetadata.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.GeneratedMessage.Builder<TransferTypes.S3CompatibleMetadata.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.GeneratedMessage.Builder<TransferTypes.S3CompatibleMetadata.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TransferTypes.S3CompatibleMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

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

      public TransferTypes.S3CompatibleMetadata.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<TransferTypes.S3CompatibleMetadata.Builder>
      Throws:
      IOException
    • getAuthMethodValue

      public int getAuthMethodValue()
       Specifies the authentication and authorization method used by the storage
       service. When not specified, Transfer Service will attempt to determine
       right auth method to use.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod auth_method = 1;
      Specified by:
      getAuthMethodValue in interface TransferTypes.S3CompatibleMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for authMethod.
    • setAuthMethodValue

      public TransferTypes.S3CompatibleMetadata.Builder setAuthMethodValue(int value)
       Specifies the authentication and authorization method used by the storage
       service. When not specified, Transfer Service will attempt to determine
       right auth method to use.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod auth_method = 1;
      Parameters:
      value - The enum numeric value on the wire for authMethod to set.
      Returns:
      This builder for chaining.
    • getAuthMethod

       Specifies the authentication and authorization method used by the storage
       service. When not specified, Transfer Service will attempt to determine
       right auth method to use.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod auth_method = 1;
      Specified by:
      getAuthMethod in interface TransferTypes.S3CompatibleMetadataOrBuilder
      Returns:
      The authMethod.
    • setAuthMethod

       Specifies the authentication and authorization method used by the storage
       service. When not specified, Transfer Service will attempt to determine
       right auth method to use.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod auth_method = 1;
      Parameters:
      value - The authMethod to set.
      Returns:
      This builder for chaining.
    • clearAuthMethod

       Specifies the authentication and authorization method used by the storage
       service. When not specified, Transfer Service will attempt to determine
       right auth method to use.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod auth_method = 1;
      Returns:
      This builder for chaining.
    • getRequestModelValue

      public int getRequestModelValue()
       Specifies the API request model used to call the storage service. When not
       specified, the default value of RequestModel
       REQUEST_MODEL_VIRTUAL_HOSTED_STYLE is used.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.RequestModel request_model = 2;
      Specified by:
      getRequestModelValue in interface TransferTypes.S3CompatibleMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for requestModel.
    • setRequestModelValue

      public TransferTypes.S3CompatibleMetadata.Builder setRequestModelValue(int value)
       Specifies the API request model used to call the storage service. When not
       specified, the default value of RequestModel
       REQUEST_MODEL_VIRTUAL_HOSTED_STYLE is used.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.RequestModel request_model = 2;
      Parameters:
      value - The enum numeric value on the wire for requestModel to set.
      Returns:
      This builder for chaining.
    • getRequestModel

       Specifies the API request model used to call the storage service. When not
       specified, the default value of RequestModel
       REQUEST_MODEL_VIRTUAL_HOSTED_STYLE is used.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.RequestModel request_model = 2;
      Specified by:
      getRequestModel in interface TransferTypes.S3CompatibleMetadataOrBuilder
      Returns:
      The requestModel.
    • setRequestModel

       Specifies the API request model used to call the storage service. When not
       specified, the default value of RequestModel
       REQUEST_MODEL_VIRTUAL_HOSTED_STYLE is used.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.RequestModel request_model = 2;
      Parameters:
      value - The requestModel to set.
      Returns:
      This builder for chaining.
    • clearRequestModel

      public TransferTypes.S3CompatibleMetadata.Builder clearRequestModel()
       Specifies the API request model used to call the storage service. When not
       specified, the default value of RequestModel
       REQUEST_MODEL_VIRTUAL_HOSTED_STYLE is used.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.RequestModel request_model = 2;
      Returns:
      This builder for chaining.
    • getProtocolValue

      public int getProtocolValue()
       Specifies the network protocol of the agent. When not specified, the
       default value of NetworkProtocol NETWORK_PROTOCOL_HTTPS is used.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.NetworkProtocol protocol = 3;
      Specified by:
      getProtocolValue in interface TransferTypes.S3CompatibleMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for protocol.
    • setProtocolValue

      public TransferTypes.S3CompatibleMetadata.Builder setProtocolValue(int value)
       Specifies the network protocol of the agent. When not specified, the
       default value of NetworkProtocol NETWORK_PROTOCOL_HTTPS is used.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.NetworkProtocol protocol = 3;
      Parameters:
      value - The enum numeric value on the wire for protocol to set.
      Returns:
      This builder for chaining.
    • getProtocol

       Specifies the network protocol of the agent. When not specified, the
       default value of NetworkProtocol NETWORK_PROTOCOL_HTTPS is used.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.NetworkProtocol protocol = 3;
      Specified by:
      getProtocol in interface TransferTypes.S3CompatibleMetadataOrBuilder
      Returns:
      The protocol.
    • setProtocol

       Specifies the network protocol of the agent. When not specified, the
       default value of NetworkProtocol NETWORK_PROTOCOL_HTTPS is used.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.NetworkProtocol protocol = 3;
      Parameters:
      value - The protocol to set.
      Returns:
      This builder for chaining.
    • clearProtocol

       Specifies the network protocol of the agent. When not specified, the
       default value of NetworkProtocol NETWORK_PROTOCOL_HTTPS is used.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.NetworkProtocol protocol = 3;
      Returns:
      This builder for chaining.
    • getListApiValue

      public int getListApiValue()
       The Listing API to use for discovering objects. When not specified,
       Transfer Service will attempt to determine the right API to use.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.ListApi list_api = 4;
      Specified by:
      getListApiValue in interface TransferTypes.S3CompatibleMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for listApi.
    • setListApiValue

      public TransferTypes.S3CompatibleMetadata.Builder setListApiValue(int value)
       The Listing API to use for discovering objects. When not specified,
       Transfer Service will attempt to determine the right API to use.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.ListApi list_api = 4;
      Parameters:
      value - The enum numeric value on the wire for listApi to set.
      Returns:
      This builder for chaining.
    • getListApi

       The Listing API to use for discovering objects. When not specified,
       Transfer Service will attempt to determine the right API to use.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.ListApi list_api = 4;
      Specified by:
      getListApi in interface TransferTypes.S3CompatibleMetadataOrBuilder
      Returns:
      The listApi.
    • setListApi

       The Listing API to use for discovering objects. When not specified,
       Transfer Service will attempt to determine the right API to use.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.ListApi list_api = 4;
      Parameters:
      value - The listApi to set.
      Returns:
      This builder for chaining.
    • clearListApi

       The Listing API to use for discovering objects. When not specified,
       Transfer Service will attempt to determine the right API to use.
       
      .google.storagetransfer.v1.S3CompatibleMetadata.ListApi list_api = 4;
      Returns:
      This builder for chaining.