Class GcpCredentials.Builder (0.4.0)

publicstaticfinalclass GcpCredentials.BuilderextendsGeneratedMessageV3.Builder<GcpCredentials.Builder>implementsGcpCredentialsOrBuilder

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllIdTokens(Iterable<? extends ByteString> values)

publicGcpCredentials.BuilderaddAllIdTokens(Iterable<?extendsByteString>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)

publicGcpCredentials.BuilderaddIdTokens(ByteStringvalue)

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)

publicGcpCredentials.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GcpCredentials.Builder
Overrides

build()

publicGcpCredentialsbuild()
Returns
Type Description
GcpCredentials

buildPartial()

publicGcpCredentialsbuildPartial()
Returns
Type Description
GcpCredentials

clear()

publicGcpCredentials.Builderclear()
Returns
Type Description
GcpCredentials.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicGcpCredentials.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GcpCredentials.Builder
Overrides

clearIdTokens()

publicGcpCredentials.BuilderclearIdTokens()

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)

publicGcpCredentials.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GcpCredentials.Builder
Overrides

clone()

publicGcpCredentials.Builderclone()
Returns
Type Description
GcpCredentials.Builder
Overrides

getDefaultInstanceForType()

publicGcpCredentialsgetDefaultInstanceForType()
Returns
Type Description
GcpCredentials

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIdTokens(int index)

publicByteStringgetIdTokens(intindex)

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()

publicintgetIdTokensCount()

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()

publicList<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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GcpCredentials other)

publicGcpCredentials.BuildermergeFrom(GcpCredentialsother)
Parameter
Name Description
other GcpCredentials
Returns
Type Description
GcpCredentials.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicGcpCredentials.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GcpCredentials.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicGcpCredentials.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
GcpCredentials.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalGcpCredentials.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GcpCredentials.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicGcpCredentials.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GcpCredentials.Builder
Overrides

setIdTokens(int index, ByteString value)

publicGcpCredentials.BuildersetIdTokens(intindex,ByteStringvalue)

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)

publicGcpCredentials.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GcpCredentials.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalGcpCredentials.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GcpCredentials.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.