Class GcpCredentials.Builder (0.15.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.15.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  GcpCredentials . Builder   extends   GeneratedMessageV3 . 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
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addAllServiceAccountIdTokens(Iterable<String> values) 
  
    
public   GcpCredentials . Builder   addAllServiceAccountIdTokens ( Iterable<String>   values )  
   Same as id_tokens, but as a string.
 repeated string service_account_id_tokens = 2;
    
      
        Parameter  
      
        Name Description  
      
        valuesIterable <String >The serviceAccountIdTokens to add.
 
     
  
  
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   GcpCredentials . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  addServiceAccountIdTokens(String value) 
  
    
public   GcpCredentials . Builder   addServiceAccountIdTokens ( String   value )  
   Same as id_tokens, but as a string.
 repeated string service_account_id_tokens = 2;
    
      
        Parameter  
      
        Name Description  
      
        valueString The serviceAccountIdTokens to add.
 
     
  
  
  addServiceAccountIdTokensBytes(ByteString value) 
  
    
public   GcpCredentials . Builder   addServiceAccountIdTokensBytes ( ByteString   value )  
   Same as id_tokens, but as a string.
 repeated string service_account_id_tokens = 2;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes of the serviceAccountIdTokens to add.
 
     
  
  
  build() 
  
    
public   GcpCredentials   build ()  
  
  buildPartial() 
  
    
public   GcpCredentials   buildPartial ()  
  
  clear() 
  
    
public   GcpCredentials . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   GcpCredentials . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   GcpCredentials . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearServiceAccountIdTokens() 
  
    
public   GcpCredentials . Builder   clearServiceAccountIdTokens ()  
   Same as id_tokens, but as a string.
 repeated string service_account_id_tokens = 2;
clone() 
  
    
public   GcpCredentials . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   GcpCredentials   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  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  
      
        Name Description  
      
        indexint The index of the element to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        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  
      
        Name Description  
      
        indexint The index of the value to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        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  
      
        Type Description  
      
        int The count of serviceAccountIdTokens.
 
     
  
  getServiceAccountIdTokensList() 
  
    
public   ProtocolStringList   getServiceAccountIdTokensList ()  
   Same as id_tokens, but as a string.
 repeated string service_account_id_tokens = 2;
internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(GcpCredentials other) 
  
    
public   GcpCredentials . Builder   mergeFrom ( GcpCredentials   other )  
  
  
  
    
public   GcpCredentials . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   GcpCredentials . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   GcpCredentials . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   GcpCredentials . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   GcpCredentials . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setServiceAccountIdTokens(int index, String value) 
  
    
public   GcpCredentials . Builder   setServiceAccountIdTokens ( int   index ,   String   value )  
   Same as id_tokens, but as a string.
 repeated string service_account_id_tokens = 2;
    
      
        Parameters  
      
        Name Description  
      
        indexint The index to set the value at.
 
      
        valueString The serviceAccountIdTokens to set.
 
     
  
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   GcpCredentials . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-28 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]