Class GcpCredentials.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GcpCredentials.Builder>
com.google.cloud.confidentialcomputing.v1alpha1.GcpCredentials.Builder
- All Implemented Interfaces:
GcpCredentialsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GcpCredentials
public static final class GcpCredentials.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllIdTokens(Iterable<? extends com.google.protobuf.ByteString> values) A list of service account OpenID Connect ID tokens identifying which service account identities should be included in the claims_token.addIdTokens(com.google.protobuf.ByteString value) A list of service account OpenID Connect ID tokens identifying which service account identities should be included in the claims_token.build()clear()A list of service account OpenID Connect ID tokens identifying which service account identities should be included in the claims_token.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringgetIdTokens(int index) A list of service account OpenID Connect ID tokens identifying which service account identities should be included in the claims_token.intA list of service account OpenID Connect ID tokens identifying which service account identities should be included in the claims_token.List<com.google.protobuf.ByteString>A list of service account OpenID Connect ID tokens identifying which service account identities should be included in the claims_token.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(GcpCredentials other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setIdTokens(int index, com.google.protobuf.ByteString value) A list of service account OpenID Connect ID tokens identifying which service account identities should be included in the claims_token.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GcpCredentials.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GcpCredentials.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GcpCredentials.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GcpCredentials.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GcpCredentials.Builder>
-
mergeFrom
public GcpCredentials.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GcpCredentials.Builder>- Throws:
IOException
-
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;- Specified by:
getIdTokensListin interfaceGcpCredentialsOrBuilder- Returns:
- A list containing the idTokens.
-
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;- Specified by:
getIdTokensCountin interfaceGcpCredentialsOrBuilder- Returns:
- The count of idTokens.
-
getIdTokens
public com.google.protobuf.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;- Specified by:
getIdTokensin interfaceGcpCredentialsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The idTokens at the given index.
-
setIdTokens
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:
index- The index to set the value at.value- The idTokens to set.- Returns:
- This builder for chaining.
-
addIdTokens
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:
value- The idTokens to add.- Returns:
- This builder for chaining.
-
addAllIdTokens
public GcpCredentials.Builder addAllIdTokens(Iterable<? extends com.google.protobuf.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;- Parameters:
values- The idTokens to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-