Class GcpCredentials (0.19.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.v1.GcpCredentials

Static Fields

SERVICE_ACCOUNT_ID_TOKENS_FIELD_NUMBER

public static final int SERVICE_ACCOUNT_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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

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