Class TransferTypes.AwsAccessKey.Builder (1.34.0)

public static final class TransferTypes.AwsAccessKey.Builder extends GeneratedMessageV3.Builder<TransferTypes.AwsAccessKey.Builder> implements TransferTypes.AwsAccessKeyOrBuilder

AWS access key (see AWS Security Credentials).

For information on our data retention policy for user credentials, see User credentials.

Protobuf type google.storagetransfer.v1.AwsAccessKey

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TransferTypes.AwsAccessKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TransferTypes.AwsAccessKey.Builder
Overrides

build()

public TransferTypes.AwsAccessKey build()
Returns
Type Description
TransferTypes.AwsAccessKey

buildPartial()

public TransferTypes.AwsAccessKey buildPartial()
Returns
Type Description
TransferTypes.AwsAccessKey

clear()

public TransferTypes.AwsAccessKey.Builder clear()
Returns
Type Description
TransferTypes.AwsAccessKey.Builder
Overrides

clearAccessKeyId()

public TransferTypes.AwsAccessKey.Builder clearAccessKeyId()

Required. AWS access key ID.

string access_key_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransferTypes.AwsAccessKey.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TransferTypes.AwsAccessKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TransferTypes.AwsAccessKey.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TransferTypes.AwsAccessKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TransferTypes.AwsAccessKey.Builder
Overrides

clearSecretAccessKey()

public TransferTypes.AwsAccessKey.Builder clearSecretAccessKey()

Required. AWS secret access key. This field is not returned in RPC responses.

string secret_access_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransferTypes.AwsAccessKey.Builder

This builder for chaining.

clone()

public TransferTypes.AwsAccessKey.Builder clone()
Returns
Type Description
TransferTypes.AwsAccessKey.Builder
Overrides

getAccessKeyId()

public String getAccessKeyId()

Required. AWS access key ID.

string access_key_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The accessKeyId.

getAccessKeyIdBytes()

public ByteString getAccessKeyIdBytes()

Required. AWS access key ID.

string access_key_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for accessKeyId.

getDefaultInstanceForType()

public TransferTypes.AwsAccessKey getDefaultInstanceForType()
Returns
Type Description
TransferTypes.AwsAccessKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSecretAccessKey()

public String getSecretAccessKey()

Required. AWS secret access key. This field is not returned in RPC responses.

string secret_access_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The secretAccessKey.

getSecretAccessKeyBytes()

public ByteString getSecretAccessKeyBytes()

Required. AWS secret access key. This field is not returned in RPC responses.

string secret_access_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for secretAccessKey.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TransferTypes.AwsAccessKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransferTypes.AwsAccessKey.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TransferTypes.AwsAccessKey.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TransferTypes.AwsAccessKey.Builder
Overrides

mergeFrom(TransferTypes.AwsAccessKey other)

public TransferTypes.AwsAccessKey.Builder mergeFrom(TransferTypes.AwsAccessKey other)
Parameter
Name Description
other TransferTypes.AwsAccessKey
Returns
Type Description
TransferTypes.AwsAccessKey.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransferTypes.AwsAccessKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TransferTypes.AwsAccessKey.Builder
Overrides

setAccessKeyId(String value)

public TransferTypes.AwsAccessKey.Builder setAccessKeyId(String value)

Required. AWS access key ID.

string access_key_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The accessKeyId to set.

Returns
Type Description
TransferTypes.AwsAccessKey.Builder

This builder for chaining.

setAccessKeyIdBytes(ByteString value)

public TransferTypes.AwsAccessKey.Builder setAccessKeyIdBytes(ByteString value)

Required. AWS access key ID.

string access_key_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for accessKeyId to set.

Returns
Type Description
TransferTypes.AwsAccessKey.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TransferTypes.AwsAccessKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TransferTypes.AwsAccessKey.Builder
Overrides

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

public TransferTypes.AwsAccessKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TransferTypes.AwsAccessKey.Builder
Overrides

setSecretAccessKey(String value)

public TransferTypes.AwsAccessKey.Builder setSecretAccessKey(String value)

Required. AWS secret access key. This field is not returned in RPC responses.

string secret_access_key = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The secretAccessKey to set.

Returns
Type Description
TransferTypes.AwsAccessKey.Builder

This builder for chaining.

setSecretAccessKeyBytes(ByteString value)

public TransferTypes.AwsAccessKey.Builder setSecretAccessKeyBytes(ByteString value)

Required. AWS secret access key. This field is not returned in RPC responses.

string secret_access_key = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for secretAccessKey to set.

Returns
Type Description
TransferTypes.AwsAccessKey.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TransferTypes.AwsAccessKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TransferTypes.AwsAccessKey.Builder
Overrides