Class AuthConfig (0.28.0)

public final class AuthConfig extends GeneratedMessageV3 implements AuthConfigOrBuilder

AuthConfig represents the authentication information.

Protobuf type google.cloud.apihub.v1.AuthConfig

Implements

AuthConfigOrBuilder

Static Fields

API_KEY_CONFIG_FIELD_NUMBER

public static final int API_KEY_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

AUTH_TYPE_FIELD_NUMBER

public static final int AUTH_TYPE_FIELD_NUMBER
Field Value
Type Description
int

GOOGLE_SERVICE_ACCOUNT_CONFIG_FIELD_NUMBER

public static final int GOOGLE_SERVICE_ACCOUNT_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

OAUTH2_CLIENT_CREDENTIALS_CONFIG_FIELD_NUMBER

public static final int OAUTH2_CLIENT_CREDENTIALS_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

USER_PASSWORD_CONFIG_FIELD_NUMBER

public static final int USER_PASSWORD_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AuthConfig getDefaultInstance()
Returns
Type Description
AuthConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AuthConfig.Builder newBuilder()
Returns
Type Description
AuthConfig.Builder

newBuilder(AuthConfig prototype)

public static AuthConfig.Builder newBuilder(AuthConfig prototype)
Parameter
Name Description
prototype AuthConfig
Returns
Type Description
AuthConfig.Builder

parseDelimitedFrom(InputStream input)

public static AuthConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AuthConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AuthConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AuthConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AuthConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AuthConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AuthConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AuthConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AuthConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AuthConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AuthConfig> parser()
Returns
Type Description
Parser<AuthConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getApiKeyConfig()

public AuthConfig.ApiKeyConfig getApiKeyConfig()

Api Key Config.

.google.cloud.apihub.v1.AuthConfig.ApiKeyConfig api_key_config = 4;

Returns
Type Description
AuthConfig.ApiKeyConfig

The apiKeyConfig.

getApiKeyConfigOrBuilder()

public AuthConfig.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder()

Api Key Config.

.google.cloud.apihub.v1.AuthConfig.ApiKeyConfig api_key_config = 4;

Returns
Type Description
AuthConfig.ApiKeyConfigOrBuilder

getAuthType()

public AuthType getAuthType()

Required. The authentication type.

.google.cloud.apihub.v1.AuthType auth_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthType

The authType.

getAuthTypeValue()

public int getAuthTypeValue()

Required. The authentication type.

.google.cloud.apihub.v1.AuthType auth_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for authType.

getConfigCase()

public AuthConfig.ConfigCase getConfigCase()
Returns
Type Description
AuthConfig.ConfigCase

getDefaultInstanceForType()

public AuthConfig getDefaultInstanceForType()
Returns
Type Description
AuthConfig

getGoogleServiceAccountConfig()

public GoogleServiceAccountConfig getGoogleServiceAccountConfig()

Google Service Account.

.google.cloud.apihub.v1.GoogleServiceAccountConfig google_service_account_config = 2;

Returns
Type Description
GoogleServiceAccountConfig

The googleServiceAccountConfig.

getGoogleServiceAccountConfigOrBuilder()

public GoogleServiceAccountConfigOrBuilder getGoogleServiceAccountConfigOrBuilder()

Google Service Account.

.google.cloud.apihub.v1.GoogleServiceAccountConfig google_service_account_config = 2;

Returns
Type Description
GoogleServiceAccountConfigOrBuilder

getOauth2ClientCredentialsConfig()

public AuthConfig.Oauth2ClientCredentialsConfig getOauth2ClientCredentialsConfig()

Oauth2.0 Client Credentials.

.google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig oauth2_client_credentials_config = 5;

Returns
Type Description
AuthConfig.Oauth2ClientCredentialsConfig

The oauth2ClientCredentialsConfig.

getOauth2ClientCredentialsConfigOrBuilder()

public AuthConfig.Oauth2ClientCredentialsConfigOrBuilder getOauth2ClientCredentialsConfigOrBuilder()

Oauth2.0 Client Credentials.

.google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig oauth2_client_credentials_config = 5;

Returns
Type Description
AuthConfig.Oauth2ClientCredentialsConfigOrBuilder

getParserForType()

public Parser<AuthConfig> getParserForType()
Returns
Type Description
Parser<AuthConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUserPasswordConfig()

public AuthConfig.UserPasswordConfig getUserPasswordConfig()

User Password.

.google.cloud.apihub.v1.AuthConfig.UserPasswordConfig user_password_config = 3;

Returns
Type Description
AuthConfig.UserPasswordConfig

The userPasswordConfig.

getUserPasswordConfigOrBuilder()

public AuthConfig.UserPasswordConfigOrBuilder getUserPasswordConfigOrBuilder()

User Password.

.google.cloud.apihub.v1.AuthConfig.UserPasswordConfig user_password_config = 3;

Returns
Type Description
AuthConfig.UserPasswordConfigOrBuilder

hasApiKeyConfig()

public boolean hasApiKeyConfig()

Api Key Config.

.google.cloud.apihub.v1.AuthConfig.ApiKeyConfig api_key_config = 4;

Returns
Type Description
boolean

Whether the apiKeyConfig field is set.

hasGoogleServiceAccountConfig()

public boolean hasGoogleServiceAccountConfig()

Google Service Account.

.google.cloud.apihub.v1.GoogleServiceAccountConfig google_service_account_config = 2;

Returns
Type Description
boolean

Whether the googleServiceAccountConfig field is set.

hasOauth2ClientCredentialsConfig()

public boolean hasOauth2ClientCredentialsConfig()

Oauth2.0 Client Credentials.

.google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig oauth2_client_credentials_config = 5;

Returns
Type Description
boolean

Whether the oauth2ClientCredentialsConfig field is set.

hasUserPasswordConfig()

public boolean hasUserPasswordConfig()

User Password.

.google.cloud.apihub.v1.AuthConfig.UserPasswordConfig user_password_config = 3;

Returns
Type Description
boolean

Whether the userPasswordConfig field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AuthConfig.Builder newBuilderForType()
Returns
Type Description
AuthConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AuthConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AuthConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AuthConfig.Builder toBuilder()
Returns
Type Description
AuthConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException