Class AWSV4Signature.Builder (1.63.0)

public static final class AWSV4Signature.Builder extends GeneratedMessageV3.Builder<AWSV4Signature.Builder> implements AWSV4SignatureOrBuilder

Messages

Contains the configurations necessary to generate a signature for access to private storage buckets that support Signature Version 4 for authentication. The service name for generating the authentication header will always default to 's3'.

Protobuf type google.cloud.compute.v1.AWSV4Signature

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AWSV4Signature build()
Returns
Type Description
AWSV4Signature

buildPartial()

public AWSV4Signature buildPartial()
Returns
Type Description
AWSV4Signature

clear()

public AWSV4Signature.Builder clear()
Returns
Type Description
AWSV4Signature.Builder
Overrides

clearAccessKey()

public AWSV4Signature.Builder clearAccessKey()

The access key used for s3 bucket authentication. Required for updating or creating a backend that uses AWS v4 signature authentication, but will not be returned as part of the configuration when queried with a REST API GET request. @InputOnly

optional string access_key = 468922628;

Returns
Type Description
AWSV4Signature.Builder

This builder for chaining.

clearAccessKeyId()

public AWSV4Signature.Builder clearAccessKeyId()

The identifier of an access key used for s3 bucket authentication.

optional string access_key_id = 292975158;

Returns
Type Description
AWSV4Signature.Builder

This builder for chaining.

clearAccessKeyVersion()

public AWSV4Signature.Builder clearAccessKeyVersion()

The optional version identifier for the access key. You can use this to keep track of different iterations of your access key.

optional string access_key_version = 80261277;

Returns
Type Description
AWSV4Signature.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOriginRegion()

public AWSV4Signature.Builder clearOriginRegion()

The name of the cloud region of your origin. This is a free-form field with the name of the region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" for OCI.

optional string origin_region = 265305645;

Returns
Type Description
AWSV4Signature.Builder

This builder for chaining.

clone()

public AWSV4Signature.Builder clone()
Returns
Type Description
AWSV4Signature.Builder
Overrides

getAccessKey()

public String getAccessKey()

The access key used for s3 bucket authentication. Required for updating or creating a backend that uses AWS v4 signature authentication, but will not be returned as part of the configuration when queried with a REST API GET request. @InputOnly

optional string access_key = 468922628;

Returns
Type Description
String

The accessKey.

getAccessKeyBytes()

public ByteString getAccessKeyBytes()

The access key used for s3 bucket authentication. Required for updating or creating a backend that uses AWS v4 signature authentication, but will not be returned as part of the configuration when queried with a REST API GET request. @InputOnly

optional string access_key = 468922628;

Returns
Type Description
ByteString

The bytes for accessKey.

getAccessKeyId()

public String getAccessKeyId()

The identifier of an access key used for s3 bucket authentication.

optional string access_key_id = 292975158;

Returns
Type Description
String

The accessKeyId.

getAccessKeyIdBytes()

public ByteString getAccessKeyIdBytes()

The identifier of an access key used for s3 bucket authentication.

optional string access_key_id = 292975158;

Returns
Type Description
ByteString

The bytes for accessKeyId.

getAccessKeyVersion()

public String getAccessKeyVersion()

The optional version identifier for the access key. You can use this to keep track of different iterations of your access key.

optional string access_key_version = 80261277;

Returns
Type Description
String

The accessKeyVersion.

getAccessKeyVersionBytes()

public ByteString getAccessKeyVersionBytes()

The optional version identifier for the access key. You can use this to keep track of different iterations of your access key.

optional string access_key_version = 80261277;

Returns
Type Description
ByteString

The bytes for accessKeyVersion.

getDefaultInstanceForType()

public AWSV4Signature getDefaultInstanceForType()
Returns
Type Description
AWSV4Signature

getDescriptorForType()

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

getOriginRegion()

public String getOriginRegion()

The name of the cloud region of your origin. This is a free-form field with the name of the region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" for OCI.

optional string origin_region = 265305645;

Returns
Type Description
String

The originRegion.

getOriginRegionBytes()

public ByteString getOriginRegionBytes()

The name of the cloud region of your origin. This is a free-form field with the name of the region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" for OCI.

optional string origin_region = 265305645;

Returns
Type Description
ByteString

The bytes for originRegion.

hasAccessKey()

public boolean hasAccessKey()

The access key used for s3 bucket authentication. Required for updating or creating a backend that uses AWS v4 signature authentication, but will not be returned as part of the configuration when queried with a REST API GET request. @InputOnly

optional string access_key = 468922628;

Returns
Type Description
boolean

Whether the accessKey field is set.

hasAccessKeyId()

public boolean hasAccessKeyId()

The identifier of an access key used for s3 bucket authentication.

optional string access_key_id = 292975158;

Returns
Type Description
boolean

Whether the accessKeyId field is set.

hasAccessKeyVersion()

public boolean hasAccessKeyVersion()

The optional version identifier for the access key. You can use this to keep track of different iterations of your access key.

optional string access_key_version = 80261277;

Returns
Type Description
boolean

Whether the accessKeyVersion field is set.

hasOriginRegion()

public boolean hasOriginRegion()

The name of the cloud region of your origin. This is a free-form field with the name of the region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" for OCI.

optional string origin_region = 265305645;

Returns
Type Description
boolean

Whether the originRegion field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AWSV4Signature other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAccessKey(String value)

public AWSV4Signature.Builder setAccessKey(String value)

The access key used for s3 bucket authentication. Required for updating or creating a backend that uses AWS v4 signature authentication, but will not be returned as part of the configuration when queried with a REST API GET request. @InputOnly

optional string access_key = 468922628;

Parameter
Name Description
value String

The accessKey to set.

Returns
Type Description
AWSV4Signature.Builder

This builder for chaining.

setAccessKeyBytes(ByteString value)

public AWSV4Signature.Builder setAccessKeyBytes(ByteString value)

The access key used for s3 bucket authentication. Required for updating or creating a backend that uses AWS v4 signature authentication, but will not be returned as part of the configuration when queried with a REST API GET request. @InputOnly

optional string access_key = 468922628;

Parameter
Name Description
value ByteString

The bytes for accessKey to set.

Returns
Type Description
AWSV4Signature.Builder

This builder for chaining.

setAccessKeyId(String value)

public AWSV4Signature.Builder setAccessKeyId(String value)

The identifier of an access key used for s3 bucket authentication.

optional string access_key_id = 292975158;

Parameter
Name Description
value String

The accessKeyId to set.

Returns
Type Description
AWSV4Signature.Builder

This builder for chaining.

setAccessKeyIdBytes(ByteString value)

public AWSV4Signature.Builder setAccessKeyIdBytes(ByteString value)

The identifier of an access key used for s3 bucket authentication.

optional string access_key_id = 292975158;

Parameter
Name Description
value ByteString

The bytes for accessKeyId to set.

Returns
Type Description
AWSV4Signature.Builder

This builder for chaining.

setAccessKeyVersion(String value)

public AWSV4Signature.Builder setAccessKeyVersion(String value)

The optional version identifier for the access key. You can use this to keep track of different iterations of your access key.

optional string access_key_version = 80261277;

Parameter
Name Description
value String

The accessKeyVersion to set.

Returns
Type Description
AWSV4Signature.Builder

This builder for chaining.

setAccessKeyVersionBytes(ByteString value)

public AWSV4Signature.Builder setAccessKeyVersionBytes(ByteString value)

The optional version identifier for the access key. You can use this to keep track of different iterations of your access key.

optional string access_key_version = 80261277;

Parameter
Name Description
value ByteString

The bytes for accessKeyVersion to set.

Returns
Type Description
AWSV4Signature.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setOriginRegion(String value)

public AWSV4Signature.Builder setOriginRegion(String value)

The name of the cloud region of your origin. This is a free-form field with the name of the region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" for OCI.

optional string origin_region = 265305645;

Parameter
Name Description
value String

The originRegion to set.

Returns
Type Description
AWSV4Signature.Builder

This builder for chaining.

setOriginRegionBytes(ByteString value)

public AWSV4Signature.Builder setOriginRegionBytes(ByteString value)

The name of the cloud region of your origin. This is a free-form field with the name of the region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" for OCI.

optional string origin_region = 265305645;

Parameter
Name Description
value ByteString

The bytes for originRegion to set.

Returns
Type Description
AWSV4Signature.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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