Class AuthConfig.Oauth2ClientCredentialsConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig
All Implemented Interfaces:
AuthConfig.Oauth2ClientCredentialsConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
AuthConfig

public static final class AuthConfig.Oauth2ClientCredentialsConfig extends com.google.protobuf.GeneratedMessage implements AuthConfig.Oauth2ClientCredentialsConfigOrBuilder
 Parameters to support Oauth 2.0 client credentials grant authentication.
 See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.
 
Protobuf type google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig
See Also:
  • Field Details

    • CLIENT_ID_FIELD_NUMBER

      public static final int CLIENT_ID_FIELD_NUMBER
      See Also:
    • CLIENT_SECRET_FIELD_NUMBER

      public static final int CLIENT_SECRET_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
    • getClientId

      public String getClientId()
       Required. The client identifier.
       
      string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClientId in interface AuthConfig.Oauth2ClientCredentialsConfigOrBuilder
      Returns:
      The clientId.
    • getClientIdBytes

      public com.google.protobuf.ByteString getClientIdBytes()
       Required. The client identifier.
       
      string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClientIdBytes in interface AuthConfig.Oauth2ClientCredentialsConfigOrBuilder
      Returns:
      The bytes for clientId.
    • hasClientSecret

      public boolean hasClientSecret()
       Required. Secret version reference containing the client secret.
       The `secretmanager.versions.access` permission should be
       granted to the service account accessing the secret.
       
      .google.cloud.apihub.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasClientSecret in interface AuthConfig.Oauth2ClientCredentialsConfigOrBuilder
      Returns:
      Whether the clientSecret field is set.
    • getClientSecret

      public Secret getClientSecret()
       Required. Secret version reference containing the client secret.
       The `secretmanager.versions.access` permission should be
       granted to the service account accessing the secret.
       
      .google.cloud.apihub.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClientSecret in interface AuthConfig.Oauth2ClientCredentialsConfigOrBuilder
      Returns:
      The clientSecret.
    • getClientSecretOrBuilder

      public SecretOrBuilder getClientSecretOrBuilder()
       Required. Secret version reference containing the client secret.
       The `secretmanager.versions.access` permission should be
       granted to the service account accessing the secret.
       
      .google.cloud.apihub.v1.Secret client_secret = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClientSecretOrBuilder in interface AuthConfig.Oauth2ClientCredentialsConfigOrBuilder
    • 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 AuthConfig.Oauth2ClientCredentialsConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static AuthConfig.Oauth2ClientCredentialsConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static AuthConfig.Oauth2ClientCredentialsConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

    • newBuilder

    • toBuilder

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

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

      public static AuthConfig.Oauth2ClientCredentialsConfig getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<AuthConfig.Oauth2ClientCredentialsConfig> 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 AuthConfig.Oauth2ClientCredentialsConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder