public static final class AuthConfig.Oauth2ClientCredentialsConfig extends GeneratedMessage implements AuthConfig.Oauth2ClientCredentialsConfigOrBuilderParameters 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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > AuthConfig.Oauth2ClientCredentialsConfigStatic Fields
CLIENT_ID_FIELD_NUMBER
public static final int CLIENT_ID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CLIENT_SECRET_FIELD_NUMBER
public static final int CLIENT_SECRET_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static AuthConfig.Oauth2ClientCredentialsConfig getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static AuthConfig.Oauth2ClientCredentialsConfig.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
|
newBuilder(AuthConfig.Oauth2ClientCredentialsConfig prototype)
public static AuthConfig.Oauth2ClientCredentialsConfig.Builder newBuilder(AuthConfig.Oauth2ClientCredentialsConfig prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
AuthConfig.Oauth2ClientCredentialsConfig |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
|
parseDelimitedFrom(InputStream input)
public static AuthConfig.Oauth2ClientCredentialsConfig parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AuthConfig.Oauth2ClientCredentialsConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static AuthConfig.Oauth2ClientCredentialsConfig parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AuthConfig.Oauth2ClientCredentialsConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static AuthConfig.Oauth2ClientCredentialsConfig parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AuthConfig.Oauth2ClientCredentialsConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static AuthConfig.Oauth2ClientCredentialsConfig parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AuthConfig.Oauth2ClientCredentialsConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static AuthConfig.Oauth2ClientCredentialsConfig parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AuthConfig.Oauth2ClientCredentialsConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static AuthConfig.Oauth2ClientCredentialsConfig parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AuthConfig.Oauth2ClientCredentialsConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<AuthConfig.Oauth2ClientCredentialsConfig> parser()| Returns | |
|---|---|
| Type | Description |
Parser<Oauth2ClientCredentialsConfig> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getClientId()
public String getClientId()Required. The client identifier.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The clientId. |
getClientIdBytes()
public ByteString getClientIdBytes()Required. The client identifier.
string client_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clientId. |
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];
| Returns | |
|---|---|
| Type | Description |
Secret |
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];
| Returns | |
|---|---|
| Type | Description |
SecretOrBuilder |
|
getDefaultInstanceForType()
public AuthConfig.Oauth2ClientCredentialsConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig |
|
getParserForType()
public Parser<AuthConfig.Oauth2ClientCredentialsConfig> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<Oauth2ClientCredentialsConfig> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the clientSecret field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public AuthConfig.Oauth2ClientCredentialsConfig.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected AuthConfig.Oauth2ClientCredentialsConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
|
toBuilder()
public AuthConfig.Oauth2ClientCredentialsConfig.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
AuthConfig.Oauth2ClientCredentialsConfig.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|