public final class AuthConfig extends GeneratedMessage implements AuthConfigOrBuilder
AuthConfig represents the authentication information.
Protobuf type google.cloud.apihub.v1.AuthConfig
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AuthConfig.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected AuthConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public AuthConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides