Class TransferTypes.S3CompatibleMetadata.Builder (1.17.0)

public static final class TransferTypes.S3CompatibleMetadata.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TransferTypes.S3CompatibleMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder
Overrides

build()

public TransferTypes.S3CompatibleMetadata build()
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata

buildPartial()

public TransferTypes.S3CompatibleMetadata buildPartial()
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata

clear()

public TransferTypes.S3CompatibleMetadata.Builder clear()
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder
Overrides

clearAuthMethod()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TransferTypes.S3CompatibleMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder
Overrides

clearListApi()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TransferTypes.S3CompatibleMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder
Overrides

clearProtocol()

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

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
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder

This builder for chaining.

clone()

public TransferTypes.S3CompatibleMetadata.Builder clone()
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder
Overrides

getAuthMethod()

public TransferTypes.S3CompatibleMetadata.AuthMethod 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;

Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.AuthMethod

The authMethod.

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;

Returns
TypeDescription
int

The enum numeric value on the wire for authMethod.

getDefaultInstanceForType()

public TransferTypes.S3CompatibleMetadata getDefaultInstanceForType()
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getListApi()

public TransferTypes.S3CompatibleMetadata.ListApi 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;

Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.ListApi

The listApi.

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;

Returns
TypeDescription
int

The enum numeric value on the wire for listApi.

getProtocol()

public TransferTypes.S3CompatibleMetadata.NetworkProtocol 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;

Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.NetworkProtocol

The protocol.

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;

Returns
TypeDescription
int

The enum numeric value on the wire for protocol.

getRequestModel()

public TransferTypes.S3CompatibleMetadata.RequestModel 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;

Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.RequestModel

The requestModel.

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;

Returns
TypeDescription
int

The enum numeric value on the wire for requestModel.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TransferTypes.S3CompatibleMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TransferTypes.S3CompatibleMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder
Overrides

mergeFrom(TransferTypes.S3CompatibleMetadata other)

public TransferTypes.S3CompatibleMetadata.Builder mergeFrom(TransferTypes.S3CompatibleMetadata other)
Parameter
NameDescription
otherTransferTypes.S3CompatibleMetadata
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransferTypes.S3CompatibleMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder
Overrides

setAuthMethod(TransferTypes.S3CompatibleMetadata.AuthMethod value)

public TransferTypes.S3CompatibleMetadata.Builder setAuthMethod(TransferTypes.S3CompatibleMetadata.AuthMethod 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;

Parameter
NameDescription
valueTransferTypes.S3CompatibleMetadata.AuthMethod

The authMethod to set.

Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder

This builder for chaining.

setAuthMethodValue(int value)

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;

Parameter
NameDescription
valueint

The enum numeric value on the wire for authMethod to set.

Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TransferTypes.S3CompatibleMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder
Overrides

setListApi(TransferTypes.S3CompatibleMetadata.ListApi value)

public TransferTypes.S3CompatibleMetadata.Builder setListApi(TransferTypes.S3CompatibleMetadata.ListApi 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;

Parameter
NameDescription
valueTransferTypes.S3CompatibleMetadata.ListApi

The listApi to set.

Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder

This builder for chaining.

setListApiValue(int value)

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;

Parameter
NameDescription
valueint

The enum numeric value on the wire for listApi to set.

Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder

This builder for chaining.

setProtocol(TransferTypes.S3CompatibleMetadata.NetworkProtocol value)

public TransferTypes.S3CompatibleMetadata.Builder setProtocol(TransferTypes.S3CompatibleMetadata.NetworkProtocol 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;

Parameter
NameDescription
valueTransferTypes.S3CompatibleMetadata.NetworkProtocol

The protocol to set.

Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder

This builder for chaining.

setProtocolValue(int value)

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;

Parameter
NameDescription
valueint

The enum numeric value on the wire for protocol to set.

Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TransferTypes.S3CompatibleMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder
Overrides

setRequestModel(TransferTypes.S3CompatibleMetadata.RequestModel value)

public TransferTypes.S3CompatibleMetadata.Builder setRequestModel(TransferTypes.S3CompatibleMetadata.RequestModel 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;

Parameter
NameDescription
valueTransferTypes.S3CompatibleMetadata.RequestModel

The requestModel to set.

Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder

This builder for chaining.

setRequestModelValue(int value)

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;

Parameter
NameDescription
valueint

The enum numeric value on the wire for requestModel to set.

Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TransferTypes.S3CompatibleMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TransferTypes.S3CompatibleMetadata.Builder
Overrides