Class GcpCredentials.Builder (0.20.0)

public static final class GcpCredentials.Builder extends GeneratedMessageV3.Builder<GcpCredentials.Builder> implements GcpCredentialsOrBuilder

Credentials issued by GCP which are linked to the platform attestation. These will be verified server-side as part of attestaion verification.

Protobuf type google.cloud.confidentialcomputing.v1.GcpCredentials

Static Methods

getDescriptor()

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

Methods

addAllServiceAccountIdTokens(Iterable<String> values)

public GcpCredentials.Builder addAllServiceAccountIdTokens(Iterable<String> values)

Same as id_tokens, but as a string.

repeated string service_account_id_tokens = 2;

Parameter
NameDescription
valuesIterable<String>

The serviceAccountIdTokens to add.

Returns
TypeDescription
GcpCredentials.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addServiceAccountIdTokens(String value)

public GcpCredentials.Builder addServiceAccountIdTokens(String value)

Same as id_tokens, but as a string.

repeated string service_account_id_tokens = 2;

Parameter
NameDescription
valueString

The serviceAccountIdTokens to add.

Returns
TypeDescription
GcpCredentials.Builder

This builder for chaining.

addServiceAccountIdTokensBytes(ByteString value)

public GcpCredentials.Builder addServiceAccountIdTokensBytes(ByteString value)

Same as id_tokens, but as a string.

repeated string service_account_id_tokens = 2;

Parameter
NameDescription
valueByteString

The bytes of the serviceAccountIdTokens to add.

Returns
TypeDescription
GcpCredentials.Builder

This builder for chaining.

build()

public GcpCredentials build()
Returns
TypeDescription
GcpCredentials

buildPartial()

public GcpCredentials buildPartial()
Returns
TypeDescription
GcpCredentials

clear()

public GcpCredentials.Builder clear()
Returns
TypeDescription
GcpCredentials.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceAccountIdTokens()

public GcpCredentials.Builder clearServiceAccountIdTokens()

Same as id_tokens, but as a string.

repeated string service_account_id_tokens = 2;

Returns
TypeDescription
GcpCredentials.Builder

This builder for chaining.

clone()

public GcpCredentials.Builder clone()
Returns
TypeDescription
GcpCredentials.Builder
Overrides

getDefaultInstanceForType()

public GcpCredentials getDefaultInstanceForType()
Returns
TypeDescription
GcpCredentials

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getServiceAccountIdTokens(int index)

public String getServiceAccountIdTokens(int index)

Same as id_tokens, but as a string.

repeated string service_account_id_tokens = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The serviceAccountIdTokens at the given index.

getServiceAccountIdTokensBytes(int index)

public ByteString getServiceAccountIdTokensBytes(int index)

Same as id_tokens, but as a string.

repeated string service_account_id_tokens = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the serviceAccountIdTokens at the given index.

getServiceAccountIdTokensCount()

public int getServiceAccountIdTokensCount()

Same as id_tokens, but as a string.

repeated string service_account_id_tokens = 2;

Returns
TypeDescription
int

The count of serviceAccountIdTokens.

getServiceAccountIdTokensList()

public ProtocolStringList getServiceAccountIdTokensList()

Same as id_tokens, but as a string.

repeated string service_account_id_tokens = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the serviceAccountIdTokens.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GcpCredentials other)

public GcpCredentials.Builder mergeFrom(GcpCredentials other)
Parameter
NameDescription
otherGcpCredentials
Returns
TypeDescription
GcpCredentials.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setServiceAccountIdTokens(int index, String value)

public GcpCredentials.Builder setServiceAccountIdTokens(int index, String value)

Same as id_tokens, but as a string.

repeated string service_account_id_tokens = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The serviceAccountIdTokens to set.

Returns
TypeDescription
GcpCredentials.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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