Class Tool.Authentication.OAuthConfig (0.52.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
TypeDescription
int

CLIENT_SECRET_FIELD_NUMBER

public static final int CLIENT_SECRET_FIELD_NUMBER
Field Value
TypeDescription
int

OAUTH_GRANT_TYPE_FIELD_NUMBER

public static final int OAUTH_GRANT_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

TOKEN_ENDPOINT_FIELD_NUMBER

public static final int TOKEN_ENDPOINT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Tool.Authentication.OAuthConfig getDefaultInstance()
Returns
TypeDescription
Tool.Authentication.OAuthConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Tool.Authentication.OAuthConfig.Builder newBuilder()
Returns
TypeDescription
Tool.Authentication.OAuthConfig.Builder

newBuilder(Tool.Authentication.OAuthConfig prototype)

public static Tool.Authentication.OAuthConfig.Builder newBuilder(Tool.Authentication.OAuthConfig prototype)
Parameter
NameDescription
prototypeTool.Authentication.OAuthConfig
Returns
TypeDescription
Tool.Authentication.OAuthConfig.Builder

parseDelimitedFrom(InputStream input)

public static Tool.Authentication.OAuthConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Tool.Authentication.OAuthConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Tool.Authentication.OAuthConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Tool.Authentication.OAuthConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Tool.Authentication.OAuthConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Tool.Authentication.OAuthConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Tool.Authentication.OAuthConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Tool.Authentication.OAuthConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Tool.Authentication.OAuthConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Tool.Authentication.OAuthConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Tool.Authentication.OAuthConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Tool.Authentication.OAuthConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Tool.Authentication.OAuthConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Tool.Authentication.OAuthConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Tool.Authentication.OAuthConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Tool.Authentication.OAuthConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Tool.Authentication.OAuthConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Tool.Authentication.OAuthConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Tool.Authentication.OAuthConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Tool.Authentication.OAuthConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Tool.Authentication.OAuthConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Tool.Authentication.OAuthConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Tool.Authentication.OAuthConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Tool.Authentication.OAuthConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getClientId()

public String getClientId()

Required. The client ID from the OAuth provider.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for clientSecret.

getDefaultInstanceForType()

public Tool.Authentication.OAuthConfig getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for oauthGrantType.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for tokenEndpoint.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Tool.Authentication.OAuthConfig.Builder newBuilderForType()
Returns
TypeDescription
Tool.Authentication.OAuthConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Tool.Authentication.OAuthConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Tool.Authentication.OAuthConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Tool.Authentication.OAuthConfig.Builder toBuilder()
Returns
TypeDescription
Tool.Authentication.OAuthConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException