Class MetadataExchangeRequest (0.8.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.8.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  MetadataExchangeRequest   extends   GeneratedMessageV3   implements   MetadataExchangeRequestOrBuilder  
   Message used by AlloyDB connectors to exchange client and connection metadata
 with the server after a successful TLS handshake. This metadata includes an
 IAM token, which is used to authenticate users based on their IAM identity.
 The sole purpose of this message is for the use of AlloyDB connectors.
 Clients should not rely on this message directly as there can be breaking
 changes in the future.
 Protobuf type google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  
  
    
public   static   final   int   AUTH_TYPE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   OAUTH2_TOKEN_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   USER_AGENT_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  
    
public   static   MetadataExchangeRequest   getDefaultInstance ()  
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  
    
public   static   MetadataExchangeRequest . Builder   newBuilder ()  
  
  
    
public   static   MetadataExchangeRequest . Builder   newBuilder ( MetadataExchangeRequest   prototype )  
  
  
  
    
public   static   MetadataExchangeRequest   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   MetadataExchangeRequest   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   MetadataExchangeRequest   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  
    
public   static   MetadataExchangeRequest   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   MetadataExchangeRequest   parseFrom ( ByteString   data )  
  
  
  
  
    
public   static   MetadataExchangeRequest   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   MetadataExchangeRequest   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   MetadataExchangeRequest   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   MetadataExchangeRequest   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   MetadataExchangeRequest   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   MetadataExchangeRequest   parseFrom ( ByteBuffer   data )  
  
  
  
  
    
public   static   MetadataExchangeRequest   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Parser<MetadataExchangeRequest>   parser ()  
  
  Methods
   
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  
    
public   MetadataExchangeRequest . AuthType   getAuthType ()  
   Authentication type.
 .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2;
 
    
public   int   getAuthTypeValue ()  
   Authentication type.
 .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2;
 
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for authType.
 
     
  
  
    
public   MetadataExchangeRequest   getDefaultInstanceForType ()  
  
  
    
public   String   getOauth2Token ()  
   IAM token used for both IAM user authentiation and
 alloydb.instances.connect permission check.
 string oauth2_token = 3;
    
      
        Returns  
      
        Type Description  
      
        String The oauth2Token.
 
     
  
  
    
public   ByteString   getOauth2TokenBytes ()  
   IAM token used for both IAM user authentiation and
 alloydb.instances.connect permission check.
 string oauth2_token = 3;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for oauth2Token.
 
     
  
  
    
public   Parser<MetadataExchangeRequest>   getParserForType ()  
  
  Overrides 
  
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
public   String   getUserAgent ()  
   Optional. Connector information.
 string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        String The userAgent.
 
     
  
  
    
public   ByteString   getUserAgentBytes ()  
   Optional. Connector information.
 string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for userAgent.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   MetadataExchangeRequest . Builder   newBuilderForType ()  
  
  
    
protected   MetadataExchangeRequest . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  
    
public   MetadataExchangeRequest . Builder   toBuilder ()  
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  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."],[],[]]