Class GcpCredentials (0.9.0)

public final class GcpCredentials extends GeneratedMessageV3 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 Fields

ID_TOKENS_FIELD_NUMBER

public static final int ID_TOKENS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GcpCredentials getDefaultInstance()
Returns
TypeDescription
GcpCredentials

getDescriptor()

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

newBuilder()

public static GcpCredentials.Builder newBuilder()
Returns
TypeDescription
GcpCredentials.Builder

newBuilder(GcpCredentials prototype)

public static GcpCredentials.Builder newBuilder(GcpCredentials prototype)
Parameter
NameDescription
prototypeGcpCredentials
Returns
TypeDescription
GcpCredentials.Builder

parseDelimitedFrom(InputStream input)

public static GcpCredentials parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GcpCredentials
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GcpCredentials parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcpCredentials
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GcpCredentials parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GcpCredentials
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GcpCredentials parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcpCredentials
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GcpCredentials parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GcpCredentials
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GcpCredentials parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcpCredentials
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GcpCredentials parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GcpCredentials
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GcpCredentials parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcpCredentials
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GcpCredentials parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GcpCredentials
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GcpCredentials parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcpCredentials
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GcpCredentials parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GcpCredentials
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GcpCredentials parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcpCredentials
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GcpCredentials> parser()
Returns
TypeDescription
Parser<GcpCredentials>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public GcpCredentials getDefaultInstanceForType()
Returns
TypeDescription
GcpCredentials

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.

getParserForType()

public Parser<GcpCredentials> getParserForType()
Returns
TypeDescription
Parser<GcpCredentials>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GcpCredentials.Builder newBuilderForType()
Returns
TypeDescription
GcpCredentials.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GcpCredentials.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GcpCredentials.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GcpCredentials.Builder toBuilder()
Returns
TypeDescription
GcpCredentials.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException