Class AWSV4Signature.Builder (1.51.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AWSV4Signature build()
Returns
TypeDescription
AWSV4Signature

buildPartial()

public AWSV4Signature buildPartial()
Returns
TypeDescription
AWSV4Signature

clear()

public AWSV4Signature.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AWSV4Signature.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public AWSV4Signature.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AWSV4Signature.Builder

This builder for chaining.

clone()

public AWSV4Signature.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for accessKeyVersion.

getDefaultInstanceForType()

public AWSV4Signature getDefaultInstanceForType()
Returns
TypeDescription
AWSV4Signature

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the originRegion field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AWSV4Signature other)

public AWSV4Signature.Builder mergeFrom(AWSV4Signature other)
Parameter
NameDescription
otherAWSV4Signature
Returns
TypeDescription
AWSV4Signature.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AWSV4Signature.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The accessKey to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for accessKey to set.

Returns
TypeDescription
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
NameDescription
valueString

The accessKeyId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for accessKeyId to set.

Returns
TypeDescription
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
NameDescription
valueString

The accessKeyVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for accessKeyVersion to set.

Returns
TypeDescription
AWSV4Signature.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AWSV4Signature.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The originRegion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for originRegion to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AWSV4Signature.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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