Class Webhook.GenericWebService.OAuthConfig (0.52.0)

public static final class Webhook.GenericWebService.OAuthConfig extends GeneratedMessageV3 implements Webhook.GenericWebService.OAuthConfigOrBuilder

Represents configuration of OAuth client credential flow for 3rd party API authentication.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.OAuthConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Webhook.GenericWebService.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

SCOPES_FIELD_NUMBER

public static final int SCOPES_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 Webhook.GenericWebService.OAuthConfig getDefaultInstance()
Returns
TypeDescription
Webhook.GenericWebService.OAuthConfig

getDescriptor()

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

newBuilder()

public static Webhook.GenericWebService.OAuthConfig.Builder newBuilder()
Returns
TypeDescription
Webhook.GenericWebService.OAuthConfig.Builder

newBuilder(Webhook.GenericWebService.OAuthConfig prototype)

public static Webhook.GenericWebService.OAuthConfig.Builder newBuilder(Webhook.GenericWebService.OAuthConfig prototype)
Parameter
NameDescription
prototypeWebhook.GenericWebService.OAuthConfig
Returns
TypeDescription
Webhook.GenericWebService.OAuthConfig.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Webhook.GenericWebService.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 provided by the 3rd party platform.

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

Returns
TypeDescription
String

The clientId.

getClientIdBytes()

public ByteString getClientIdBytes()

Required. The client ID provided by the 3rd party platform.

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

Returns
TypeDescription
ByteString

The bytes for clientId.

getClientSecret()

public String getClientSecret()

Required. The client secret provided by the 3rd party platform.

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

Returns
TypeDescription
String

The clientSecret.

getClientSecretBytes()

public ByteString getClientSecretBytes()

Required. The client secret provided by the 3rd party platform.

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

Returns
TypeDescription
ByteString

The bytes for clientSecret.

getDefaultInstanceForType()

public Webhook.GenericWebService.OAuthConfig getDefaultInstanceForType()
Returns
TypeDescription
Webhook.GenericWebService.OAuthConfig

getParserForType()

public Parser<Webhook.GenericWebService.OAuthConfig> getParserForType()
Returns
TypeDescription
Parser<OAuthConfig>
Overrides

getScopes(int index)

public String getScopes(int index)

Optional. The OAuth scopes to grant.

repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The scopes at the given index.

getScopesBytes(int index)

public ByteString getScopesBytes(int index)

Optional. The OAuth scopes to grant.

repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the scopes at the given index.

getScopesCount()

public int getScopesCount()

Optional. The OAuth scopes to grant.

repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of scopes.

getScopesList()

public ProtocolStringList getScopesList()

Optional. The OAuth scopes to grant.

repeated string scopes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the scopes.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTokenEndpoint()

public String getTokenEndpoint()

Required. The token endpoint provided by the 3rd party platform to exchange an access token.

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

Returns
TypeDescription
String

The tokenEndpoint.

getTokenEndpointBytes()

public ByteString getTokenEndpointBytes()

Required. The token endpoint provided by the 3rd party platform to exchange an access token.

string token_endpoint = 3 [(.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 Webhook.GenericWebService.OAuthConfig.Builder newBuilderForType()
Returns
TypeDescription
Webhook.GenericWebService.OAuthConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Webhook.GenericWebService.OAuthConfig.Builder toBuilder()
Returns
TypeDescription
Webhook.GenericWebService.OAuthConfig.Builder

writeTo(CodedOutputStream output)

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