Class Tool.Authentication.OAuthConfig (0.54.0)

public static final class Tool.Authentication.OAuthConfig extends GeneratedMessageV3 implements Tool.Authentication.OAuthConfigOrBuilder

Config for authentication with OAuth.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Tool.Authentication.OAuthConfig

Static 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

OAUTH_GRANT_TYPE_FIELD_NUMBER

public static final int OAUTH_GRANT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

TOKEN_ENDPOINT_FIELD_NUMBER

public static final int TOKEN_ENDPOINT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Tool.Authentication.OAuthConfig getDefaultInstance()
Returns
Type Description
Tool.Authentication.OAuthConfig

getDescriptor()

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

newBuilder()

public static Tool.Authentication.OAuthConfig.Builder newBuilder()
Returns
Type Description
Tool.Authentication.OAuthConfig.Builder

newBuilder(Tool.Authentication.OAuthConfig prototype)

public static Tool.Authentication.OAuthConfig.Builder newBuilder(Tool.Authentication.OAuthConfig prototype)
Parameter
Name Description
prototype Tool.Authentication.OAuthConfig
Returns
Type Description
Tool.Authentication.OAuthConfig.Builder

parseDelimitedFrom(InputStream input)

public static Tool.Authentication.OAuthConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Tool.Authentication.OAuthConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Tool.Authentication.OAuthConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.Authentication.OAuthConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Tool.Authentication.OAuthConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Tool.Authentication.OAuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Tool.Authentication.OAuthConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.Authentication.OAuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Tool.Authentication.OAuthConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Tool.Authentication.OAuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Tool.Authentication.OAuthConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.Authentication.OAuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Tool.Authentication.OAuthConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Tool.Authentication.OAuthConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Tool.Authentication.OAuthConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.Authentication.OAuthConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Tool.Authentication.OAuthConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Tool.Authentication.OAuthConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Tool.Authentication.OAuthConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.Authentication.OAuthConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Tool.Authentication.OAuthConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Tool.Authentication.OAuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Tool.Authentication.OAuthConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.Authentication.OAuthConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Tool.Authentication.OAuthConfig> parser()
Returns
Type Description
Parser<OAuthConfig>

Methods

equals(Object obj)

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

getClientId()

public String getClientId()

Required. The client ID from the OAuth provider.

string client_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The clientId.

getClientIdBytes()

public ByteString getClientIdBytes()

Required. The client ID from the OAuth provider.

string client_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for clientId.

getClientSecret()

public String getClientSecret()

Required. The client secret from the OAuth provider.

string client_secret = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The clientSecret.

getClientSecretBytes()

public ByteString getClientSecretBytes()

Required. The client secret from the OAuth provider.

string client_secret = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for clientSecret.

getDefaultInstanceForType()

public Tool.Authentication.OAuthConfig getDefaultInstanceForType()
Returns
Type Description
Tool.Authentication.OAuthConfig

getOauthGrantType()

public Tool.Authentication.OAuthConfig.OauthGrantType getOauthGrantType()

Required. OAuth grant types.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tool.Authentication.OAuthConfig.OauthGrantType

The oauthGrantType.

getOauthGrantTypeValue()

public int getOauthGrantTypeValue()

Required. OAuth grant types.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for oauthGrantType.

getParserForType()

public Parser<Tool.Authentication.OAuthConfig> getParserForType()
Returns
Type Description
Parser<OAuthConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTokenEndpoint()

public String getTokenEndpoint()

Required. The token endpoint in the OAuth provider to exchange for an access token.

string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The tokenEndpoint.

getTokenEndpointBytes()

public ByteString getTokenEndpointBytes()

Required. The token endpoint in the OAuth provider to exchange for an access token.

string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for tokenEndpoint.

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 Tool.Authentication.OAuthConfig.Builder newBuilderForType()
Returns
Type Description
Tool.Authentication.OAuthConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Tool.Authentication.OAuthConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Tool.Authentication.OAuthConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Tool.Authentication.OAuthConfig.Builder toBuilder()
Returns
Type Description
Tool.Authentication.OAuthConfig.Builder

writeTo(CodedOutputStream output)

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