Class FetchAccessTokenResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.developerconnect.v1.FetchAccessTokenResponse
All Implemented Interfaces:
FetchAccessTokenResponseOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class FetchAccessTokenResponse extends com.google.protobuf.GeneratedMessage implements FetchAccessTokenResponseOrBuilder
 Message for responding to getting an OAuth access token.
 
Protobuf type google.cloud.developerconnect.v1.FetchAccessTokenResponse
See Also:
  • Field Details

    • TOKEN_FIELD_NUMBER

      public static final int TOKEN_FIELD_NUMBER
      See Also:
    • EXPIRATION_TIME_FIELD_NUMBER

      public static final int EXPIRATION_TIME_FIELD_NUMBER
      See Also:
    • SCOPES_FIELD_NUMBER

      public static final int SCOPES_FIELD_NUMBER
      See Also:
    • EXCHANGE_ERROR_FIELD_NUMBER

      public static final int EXCHANGE_ERROR_FIELD_NUMBER
      See Also:
  • 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
    • getToken

      public String getToken()
       The token content.
       
      string token = 1;
      Specified by:
      getToken in interface FetchAccessTokenResponseOrBuilder
      Returns:
      The token.
    • getTokenBytes

      public com.google.protobuf.ByteString getTokenBytes()
       The token content.
       
      string token = 1;
      Specified by:
      getTokenBytes in interface FetchAccessTokenResponseOrBuilder
      Returns:
      The bytes for token.
    • hasExpirationTime

      public boolean hasExpirationTime()
       Expiration timestamp. Can be empty if unknown or non-expiring.
       
      .google.protobuf.Timestamp expiration_time = 2;
      Specified by:
      hasExpirationTime in interface FetchAccessTokenResponseOrBuilder
      Returns:
      Whether the expirationTime field is set.
    • getExpirationTime

      public com.google.protobuf.Timestamp getExpirationTime()
       Expiration timestamp. Can be empty if unknown or non-expiring.
       
      .google.protobuf.Timestamp expiration_time = 2;
      Specified by:
      getExpirationTime in interface FetchAccessTokenResponseOrBuilder
      Returns:
      The expirationTime.
    • getExpirationTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder()
       Expiration timestamp. Can be empty if unknown or non-expiring.
       
      .google.protobuf.Timestamp expiration_time = 2;
      Specified by:
      getExpirationTimeOrBuilder in interface FetchAccessTokenResponseOrBuilder
    • getScopesList

      public com.google.protobuf.ProtocolStringList getScopesList()
       The scopes of the access token.
       
      repeated string scopes = 3;
      Specified by:
      getScopesList in interface FetchAccessTokenResponseOrBuilder
      Returns:
      A list containing the scopes.
    • getScopesCount

      public int getScopesCount()
       The scopes of the access token.
       
      repeated string scopes = 3;
      Specified by:
      getScopesCount in interface FetchAccessTokenResponseOrBuilder
      Returns:
      The count of scopes.
    • getScopes

      public String getScopes(int index)
       The scopes of the access token.
       
      repeated string scopes = 3;
      Specified by:
      getScopes in interface FetchAccessTokenResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The scopes at the given index.
    • getScopesBytes

      public com.google.protobuf.ByteString getScopesBytes(int index)
       The scopes of the access token.
       
      repeated string scopes = 3;
      Specified by:
      getScopesBytes in interface FetchAccessTokenResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the scopes at the given index.
    • hasExchangeError

      public boolean hasExchangeError()
       The error resulted from exchanging OAuth tokens from the service provider.
       
      .google.cloud.developerconnect.v1.ExchangeError exchange_error = 4;
      Specified by:
      hasExchangeError in interface FetchAccessTokenResponseOrBuilder
      Returns:
      Whether the exchangeError field is set.
    • getExchangeError

      public ExchangeError getExchangeError()
       The error resulted from exchanging OAuth tokens from the service provider.
       
      .google.cloud.developerconnect.v1.ExchangeError exchange_error = 4;
      Specified by:
      getExchangeError in interface FetchAccessTokenResponseOrBuilder
      Returns:
      The exchangeError.
    • getExchangeErrorOrBuilder

      public ExchangeErrorOrBuilder getExchangeErrorOrBuilder()
       The error resulted from exchanging OAuth tokens from the service provider.
       
      .google.cloud.developerconnect.v1.ExchangeError exchange_error = 4;
      Specified by:
      getExchangeErrorOrBuilder in interface FetchAccessTokenResponseOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static FetchAccessTokenResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FetchAccessTokenResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FetchAccessTokenResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FetchAccessTokenResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FetchAccessTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FetchAccessTokenResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FetchAccessTokenResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FetchAccessTokenResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FetchAccessTokenResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FetchAccessTokenResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FetchAccessTokenResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FetchAccessTokenResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public FetchAccessTokenResponse.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static FetchAccessTokenResponse.Builder newBuilder()
    • newBuilder

      public static FetchAccessTokenResponse.Builder newBuilder(FetchAccessTokenResponse prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected FetchAccessTokenResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static FetchAccessTokenResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<FetchAccessTokenResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<FetchAccessTokenResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public FetchAccessTokenResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder