Class GcpCredentials.Builder (0.5.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.protobuf.ByteString>

The idTokens to add.

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

The idTokens 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

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

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
TypeDescription
GcpCredentials.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<ByteString>

A list containing the idTokens.

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

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
NameDescription
indexint

The index to set the value at.

valueByteString

The idTokens to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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