Class GcpCredentials.Builder (0.35.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.v1alpha1.GcpCredentials

Static Methods

getDescriptor()

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

Methods

addAllIdTokens(Iterable<? extends ByteString> values)

public GcpCredentials.Builder addAllIdTokens(Iterable<? extends ByteString> values)

A list of service account OpenID Connect ID tokens identifying which service account identities should be included in the claims_token. These can be generated by calling serviceAccounts.generateIdToken. The Challenge.name must be used as the audience parameter, and the

includeEmail parameter must be true.

repeated bytes id_tokens = 1;

Parameter
Name Description
values Iterable<? extends com.google.protobuf.ByteString>

The idTokens to add.

Returns
Type Description
GcpCredentials.Builder

This builder for chaining.

addIdTokens(ByteString value)

public GcpCredentials.Builder addIdTokens(ByteString value)

A list of service account OpenID Connect ID tokens identifying which service account identities should be included in the claims_token. These can be generated by calling serviceAccounts.generateIdToken. The Challenge.name must be used as the audience parameter, and the

includeEmail parameter must be true.

repeated bytes id_tokens = 1;

Parameter
Name Description
value ByteString

The idTokens to add.

Returns
Type Description
GcpCredentials.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GcpCredentials build()
Returns
Type Description
GcpCredentials

buildPartial()

public GcpCredentials buildPartial()
Returns
Type Description
GcpCredentials

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIdTokens()

public GcpCredentials.Builder clearIdTokens()

A list of service account OpenID Connect ID tokens identifying which service account identities should be included in the claims_token. These can be generated by calling serviceAccounts.generateIdToken. The Challenge.name must be used as the audience parameter, and the

includeEmail parameter must be true.

repeated bytes id_tokens = 1;

Returns
Type Description
GcpCredentials.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GcpCredentials getDefaultInstanceForType()
Returns
Type Description
GcpCredentials

getDescriptorForType()

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

getIdTokens(int index)

public ByteString getIdTokens(int index)

A list of service account OpenID Connect ID tokens identifying which service account identities should be included in the claims_token. These can be generated by calling serviceAccounts.generateIdToken. The Challenge.name must be used as the audience parameter, and the

includeEmail parameter must be true.

repeated bytes id_tokens = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ByteString

The idTokens at the given index.

getIdTokensCount()

public int getIdTokensCount()

A list of service account OpenID Connect ID tokens identifying which service account identities should be included in the claims_token. These can be generated by calling serviceAccounts.generateIdToken. The Challenge.name must be used as the audience parameter, and the

includeEmail parameter must be true.

repeated bytes id_tokens = 1;

Returns
Type Description
int

The count of idTokens.

getIdTokensList()

public List<ByteString> getIdTokensList()

A list of service account OpenID Connect ID tokens identifying which service account identities should be included in the claims_token. These can be generated by calling serviceAccounts.generateIdToken. The Challenge.name must be used as the audience parameter, and the

includeEmail parameter must be true.

repeated bytes id_tokens = 1;

Returns
Type Description
List<ByteString>

A list containing the idTokens.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GcpCredentials other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIdTokens(int index, ByteString value)

public GcpCredentials.Builder setIdTokens(int index, ByteString value)

A list of service account OpenID Connect ID tokens identifying which service account identities should be included in the claims_token. These can be generated by calling serviceAccounts.generateIdToken. The Challenge.name must be used as the audience parameter, and the

includeEmail parameter must be true.

repeated bytes id_tokens = 1;

Parameters
Name Description
index int

The index to set the value at.

value ByteString

The idTokens to set.

Returns
Type Description
GcpCredentials.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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