Class AuthConfig (0.28.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version latestkeyboard_arrow_down
public final class AuthConfig extends GeneratedMessageV3 implements AuthConfigOrBuilder
AuthConfig represents the authentication information.
Protobuf type google.cloud.apihub.v1.AuthConfig
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>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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 ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static AuthConfig . Builder newBuilder ()
newBuilder(AuthConfig prototype)
public static AuthConfig . Builder newBuilder ( AuthConfig prototype )
public static AuthConfig parseDelimitedFrom ( InputStream input )
public static AuthConfig parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static AuthConfig parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AuthConfig parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static AuthConfig parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AuthConfig parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static AuthConfig parseFrom ( CodedInputStream input )
public static AuthConfig parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static AuthConfig parseFrom ( InputStream input )
public static AuthConfig parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static AuthConfig parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AuthConfig parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<AuthConfig> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getApiKeyConfig()
public AuthConfig . ApiKeyConfig getApiKeyConfig ()
Api Key Config.
.google.cloud.apihub.v1.AuthConfig.ApiKeyConfig api_key_config = 4;
getApiKeyConfigOrBuilder()
public AuthConfig . ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder ()
Api Key Config.
.google.cloud.apihub.v1.AuthConfig.ApiKeyConfig api_key_config = 4;
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 ()
getDefaultInstanceForType()
public AuthConfig getDefaultInstanceForType ()
getGoogleServiceAccountConfig()
public GoogleServiceAccountConfig getGoogleServiceAccountConfig ()
Google Service Account.
.google.cloud.apihub.v1.GoogleServiceAccountConfig google_service_account_config = 2;
getGoogleServiceAccountConfigOrBuilder()
public GoogleServiceAccountConfigOrBuilder getGoogleServiceAccountConfigOrBuilder ()
Google Service Account.
.google.cloud.apihub.v1.GoogleServiceAccountConfig google_service_account_config = 2;
getOauth2ClientCredentialsConfig()
public AuthConfig . Oauth2ClientCredentialsConfig getOauth2ClientCredentialsConfig ()
Oauth2.0 Client Credentials.
.google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig oauth2_client_credentials_config = 5;
getOauth2ClientCredentialsConfigOrBuilder()
public AuthConfig . Oauth2ClientCredentialsConfigOrBuilder getOauth2ClientCredentialsConfigOrBuilder ()
Oauth2.0 Client Credentials.
.google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig oauth2_client_credentials_config = 5;
getParserForType()
public Parser<AuthConfig> getParserForType ()
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;
getUserPasswordConfigOrBuilder()
public AuthConfig . UserPasswordConfigOrBuilder getUserPasswordConfigOrBuilder ()
User Password.
.google.cloud.apihub.v1.AuthConfig.UserPasswordConfig user_password_config = 3;
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()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public AuthConfig . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AuthConfig . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public AuthConfig . Builder toBuilder ()
writeTo(CodedOutputStream output)
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-02 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-02 UTC."],[],[]]