Class AuthConfig

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

@Generated public final class AuthConfig extends com.google.protobuf.GeneratedMessage implements AuthConfigOrBuilder
 AuthConfig represents the authentication information.
 
Protobuf type google.cloud.apihub.v1.AuthConfig
See Also:
  • Field Details

    • GOOGLE_SERVICE_ACCOUNT_CONFIG_FIELD_NUMBER

      public static final int GOOGLE_SERVICE_ACCOUNT_CONFIG_FIELD_NUMBER
      See Also:
    • USER_PASSWORD_CONFIG_FIELD_NUMBER

      public static final int USER_PASSWORD_CONFIG_FIELD_NUMBER
      See Also:
    • API_KEY_CONFIG_FIELD_NUMBER

      public static final int API_KEY_CONFIG_FIELD_NUMBER
      See Also:
    • OAUTH2_CLIENT_CREDENTIALS_CONFIG_FIELD_NUMBER

      public static final int OAUTH2_CLIENT_CREDENTIALS_CONFIG_FIELD_NUMBER
      See Also:
    • AUTH_TYPE_FIELD_NUMBER

      public static final int AUTH_TYPE_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
    • getConfigCase

      public AuthConfig.ConfigCase getConfigCase()
      Specified by:
      getConfigCase in interface AuthConfigOrBuilder
    • hasGoogleServiceAccountConfig

      public boolean hasGoogleServiceAccountConfig()
       Google Service Account.
       
      .google.cloud.apihub.v1.GoogleServiceAccountConfig google_service_account_config = 2;
      Specified by:
      hasGoogleServiceAccountConfig in interface AuthConfigOrBuilder
      Returns:
      Whether the googleServiceAccountConfig field is set.
    • getGoogleServiceAccountConfig

      public GoogleServiceAccountConfig getGoogleServiceAccountConfig()
       Google Service Account.
       
      .google.cloud.apihub.v1.GoogleServiceAccountConfig google_service_account_config = 2;
      Specified by:
      getGoogleServiceAccountConfig in interface AuthConfigOrBuilder
      Returns:
      The googleServiceAccountConfig.
    • getGoogleServiceAccountConfigOrBuilder

      public GoogleServiceAccountConfigOrBuilder getGoogleServiceAccountConfigOrBuilder()
       Google Service Account.
       
      .google.cloud.apihub.v1.GoogleServiceAccountConfig google_service_account_config = 2;
      Specified by:
      getGoogleServiceAccountConfigOrBuilder in interface AuthConfigOrBuilder
    • hasUserPasswordConfig

      public boolean hasUserPasswordConfig()
       User Password.
       
      .google.cloud.apihub.v1.AuthConfig.UserPasswordConfig user_password_config = 3;
      Specified by:
      hasUserPasswordConfig in interface AuthConfigOrBuilder
      Returns:
      Whether the userPasswordConfig field is set.
    • getUserPasswordConfig

      public AuthConfig.UserPasswordConfig getUserPasswordConfig()
       User Password.
       
      .google.cloud.apihub.v1.AuthConfig.UserPasswordConfig user_password_config = 3;
      Specified by:
      getUserPasswordConfig in interface AuthConfigOrBuilder
      Returns:
      The userPasswordConfig.
    • getUserPasswordConfigOrBuilder

      public AuthConfig.UserPasswordConfigOrBuilder getUserPasswordConfigOrBuilder()
       User Password.
       
      .google.cloud.apihub.v1.AuthConfig.UserPasswordConfig user_password_config = 3;
      Specified by:
      getUserPasswordConfigOrBuilder in interface AuthConfigOrBuilder
    • hasApiKeyConfig

      public boolean hasApiKeyConfig()
       Api Key Config.
       
      .google.cloud.apihub.v1.AuthConfig.ApiKeyConfig api_key_config = 4;
      Specified by:
      hasApiKeyConfig in interface AuthConfigOrBuilder
      Returns:
      Whether the apiKeyConfig field is set.
    • getApiKeyConfig

      public AuthConfig.ApiKeyConfig getApiKeyConfig()
       Api Key Config.
       
      .google.cloud.apihub.v1.AuthConfig.ApiKeyConfig api_key_config = 4;
      Specified by:
      getApiKeyConfig in interface AuthConfigOrBuilder
      Returns:
      The apiKeyConfig.
    • getApiKeyConfigOrBuilder

      public AuthConfig.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder()
       Api Key Config.
       
      .google.cloud.apihub.v1.AuthConfig.ApiKeyConfig api_key_config = 4;
      Specified by:
      getApiKeyConfigOrBuilder in interface AuthConfigOrBuilder
    • hasOauth2ClientCredentialsConfig

      public boolean hasOauth2ClientCredentialsConfig()
       Oauth2.0 Client Credentials.
       
      .google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig oauth2_client_credentials_config = 5;
      Specified by:
      hasOauth2ClientCredentialsConfig in interface AuthConfigOrBuilder
      Returns:
      Whether the oauth2ClientCredentialsConfig field is set.
    • getOauth2ClientCredentialsConfig

      public AuthConfig.Oauth2ClientCredentialsConfig getOauth2ClientCredentialsConfig()
       Oauth2.0 Client Credentials.
       
      .google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig oauth2_client_credentials_config = 5;
      Specified by:
      getOauth2ClientCredentialsConfig in interface AuthConfigOrBuilder
      Returns:
      The oauth2ClientCredentialsConfig.
    • getOauth2ClientCredentialsConfigOrBuilder

      public AuthConfig.Oauth2ClientCredentialsConfigOrBuilder getOauth2ClientCredentialsConfigOrBuilder()
       Oauth2.0 Client Credentials.
       
      .google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig oauth2_client_credentials_config = 5;
      Specified by:
      getOauth2ClientCredentialsConfigOrBuilder in interface AuthConfigOrBuilder
    • getAuthTypeValue

      public int getAuthTypeValue()
       Required. The authentication type.
       
      .google.cloud.apihub.v1.AuthType auth_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthTypeValue in interface AuthConfigOrBuilder
      Returns:
      The enum numeric value on the wire for authType.
    • getAuthType

      public AuthType getAuthType()
       Required. The authentication type.
       
      .google.cloud.apihub.v1.AuthType auth_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthType in interface AuthConfigOrBuilder
      Returns:
      The authType.
    • 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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static AuthConfig 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

      public static AuthConfig.Builder newBuilder()
    • newBuilder

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

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

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

      public static AuthConfig getDefaultInstance()
    • parser

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

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