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.v1.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.v1.GcpCredentials
  • 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
    • getServiceAccountIdTokensList

      public com.google.protobuf.ProtocolStringList getServiceAccountIdTokensList()
       Same as id_tokens, but as a string.
       
      repeated string service_account_id_tokens = 2;
      Specified by:
      getServiceAccountIdTokensList in interface GcpCredentialsOrBuilder
      Returns:
      A list containing the serviceAccountIdTokens.
    • getServiceAccountIdTokensCount

      public int getServiceAccountIdTokensCount()
       Same as id_tokens, but as a string.
       
      repeated string service_account_id_tokens = 2;
      Specified by:
      getServiceAccountIdTokensCount in interface GcpCredentialsOrBuilder
      Returns:
      The count of serviceAccountIdTokens.
    • getServiceAccountIdTokens

      public String getServiceAccountIdTokens(int index)
       Same as id_tokens, but as a string.
       
      repeated string service_account_id_tokens = 2;
      Specified by:
      getServiceAccountIdTokens in interface GcpCredentialsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The serviceAccountIdTokens at the given index.
    • getServiceAccountIdTokensBytes

      public com.google.protobuf.ByteString getServiceAccountIdTokensBytes(int index)
       Same as id_tokens, but as a string.
       
      repeated string service_account_id_tokens = 2;
      Specified by:
      getServiceAccountIdTokensBytes in interface GcpCredentialsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the serviceAccountIdTokens at the given index.
    • setServiceAccountIdTokens

      public GcpCredentials.Builder setServiceAccountIdTokens(int index, String value)
       Same as id_tokens, but as a string.
       
      repeated string service_account_id_tokens = 2;
      Parameters:
      index - The index to set the value at.
      value - The serviceAccountIdTokens to set.
      Returns:
      This builder for chaining.
    • addServiceAccountIdTokens

      public GcpCredentials.Builder addServiceAccountIdTokens(String value)
       Same as id_tokens, but as a string.
       
      repeated string service_account_id_tokens = 2;
      Parameters:
      value - The serviceAccountIdTokens to add.
      Returns:
      This builder for chaining.
    • addAllServiceAccountIdTokens

      public GcpCredentials.Builder addAllServiceAccountIdTokens(Iterable<String> values)
       Same as id_tokens, but as a string.
       
      repeated string service_account_id_tokens = 2;
      Parameters:
      values - The serviceAccountIdTokens to add.
      Returns:
      This builder for chaining.
    • clearServiceAccountIdTokens

      public GcpCredentials.Builder clearServiceAccountIdTokens()
       Same as id_tokens, but as a string.
       
      repeated string service_account_id_tokens = 2;
      Returns:
      This builder for chaining.
    • addServiceAccountIdTokensBytes

      public GcpCredentials.Builder addServiceAccountIdTokensBytes(com.google.protobuf.ByteString value)
       Same as id_tokens, but as a string.
       
      repeated string service_account_id_tokens = 2;
      Parameters:
      value - The bytes of the serviceAccountIdTokens to add.
      Returns:
      This builder for chaining.