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 Type
    Method
    Description
    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.
    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.
     
     
     
    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.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    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.
    int
    A 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.FieldAccessorTable
     
    final boolean
     
     
    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GcpCredentials.Builder>
    • clear

      public GcpCredentials.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GcpCredentials.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GcpCredentials.Builder>
    • getDefaultInstanceForType

      public GcpCredentials getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GcpCredentials build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GcpCredentials buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GcpCredentials.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GcpCredentials.Builder>
    • mergeFrom

      public GcpCredentials.Builder mergeFrom(GcpCredentials other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GcpCredentials.Builder>
      Throws:
      IOException
    • getIdTokensList

      public List<com.google.protobuf.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;
      Specified by:
      getIdTokensList in interface GcpCredentialsOrBuilder
      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:
      getIdTokensCount in interface GcpCredentialsOrBuilder
      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:
      getIdTokens in interface GcpCredentialsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The idTokens at the given index.
    • setIdTokens

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

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

      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:
      This builder for chaining.