public static final class Tool.Authentication.OAuthConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Tool.Authentication.OAuthConfig.Builder> implements Tool.Authentication.OAuthConfigOrBuilder
Config for authentication with OAuth.Protobuf type
google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfiggetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Tool.Authentication.OAuthConfig.Builder>public Tool.Authentication.OAuthConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Tool.Authentication.OAuthConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Tool.Authentication.OAuthConfig.Builder>public Tool.Authentication.OAuthConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Tool.Authentication.OAuthConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Tool.Authentication.OAuthConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Tool.Authentication.OAuthConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Tool.Authentication.OAuthConfig.Builder>public Tool.Authentication.OAuthConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Tool.Authentication.OAuthConfig.Builder>public Tool.Authentication.OAuthConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Tool.Authentication.OAuthConfig.Builder>public Tool.Authentication.OAuthConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Tool.Authentication.OAuthConfig.Builder>public Tool.Authentication.OAuthConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Tool.Authentication.OAuthConfig.Builder>public Tool.Authentication.OAuthConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Tool.Authentication.OAuthConfig.Builder>public Tool.Authentication.OAuthConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Tool.Authentication.OAuthConfig.Builder>public Tool.Authentication.OAuthConfig.Builder mergeFrom(Tool.Authentication.OAuthConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Tool.Authentication.OAuthConfig.Builder>public Tool.Authentication.OAuthConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Tool.Authentication.OAuthConfig.Builder>IOExceptionpublic int getOauthGrantTypeValue()
Required. OAuth grant types.
.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED];
getOauthGrantTypeValue in interface Tool.Authentication.OAuthConfigOrBuilderpublic Tool.Authentication.OAuthConfig.Builder setOauthGrantTypeValue(int value)
Required. OAuth grant types.
.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED];
value - The enum numeric value on the wire for oauthGrantType to set.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];
getOauthGrantType in interface Tool.Authentication.OAuthConfigOrBuilderpublic Tool.Authentication.OAuthConfig.Builder setOauthGrantType(Tool.Authentication.OAuthConfig.OauthGrantType value)
Required. OAuth grant types.
.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED];
value - The oauthGrantType to set.public Tool.Authentication.OAuthConfig.Builder clearOauthGrantType()
Required. OAuth grant types.
.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication.OAuthConfig.OauthGrantType oauth_grant_type = 1 [(.google.api.field_behavior) = REQUIRED];
public String getClientId()
Required. The client ID from the OAuth provider.
string client_id = 2 [(.google.api.field_behavior) = REQUIRED];getClientId in interface Tool.Authentication.OAuthConfigOrBuilderpublic com.google.protobuf.ByteString getClientIdBytes()
Required. The client ID from the OAuth provider.
string client_id = 2 [(.google.api.field_behavior) = REQUIRED];getClientIdBytes in interface Tool.Authentication.OAuthConfigOrBuilderpublic Tool.Authentication.OAuthConfig.Builder setClientId(String value)
Required. The client ID from the OAuth provider.
string client_id = 2 [(.google.api.field_behavior) = REQUIRED];value - The clientId to set.public Tool.Authentication.OAuthConfig.Builder clearClientId()
Required. The client ID from the OAuth provider.
string client_id = 2 [(.google.api.field_behavior) = REQUIRED];public Tool.Authentication.OAuthConfig.Builder setClientIdBytes(com.google.protobuf.ByteString value)
Required. The client ID from the OAuth provider.
string client_id = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for clientId to set.public String getClientSecret()
Optional. The client secret from the OAuth provider. If the `secret_version_for_client_secret` field is set, this field will be ignored.
string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL];getClientSecret in interface Tool.Authentication.OAuthConfigOrBuilderpublic com.google.protobuf.ByteString getClientSecretBytes()
Optional. The client secret from the OAuth provider. If the `secret_version_for_client_secret` field is set, this field will be ignored.
string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL];getClientSecretBytes in interface Tool.Authentication.OAuthConfigOrBuilderpublic Tool.Authentication.OAuthConfig.Builder setClientSecret(String value)
Optional. The client secret from the OAuth provider. If the `secret_version_for_client_secret` field is set, this field will be ignored.
string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL];value - The clientSecret to set.public Tool.Authentication.OAuthConfig.Builder clearClientSecret()
Optional. The client secret from the OAuth provider. If the `secret_version_for_client_secret` field is set, this field will be ignored.
string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL];public Tool.Authentication.OAuthConfig.Builder setClientSecretBytes(com.google.protobuf.ByteString value)
Optional. The client secret from the OAuth provider. If the `secret_version_for_client_secret` field is set, this field will be ignored.
string client_secret = 3 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for clientSecret to set.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];getTokenEndpoint in interface Tool.Authentication.OAuthConfigOrBuilderpublic com.google.protobuf.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];getTokenEndpointBytes in interface Tool.Authentication.OAuthConfigOrBuilderpublic Tool.Authentication.OAuthConfig.Builder setTokenEndpoint(String value)
Required. The token endpoint in the OAuth provider to exchange for an access token.
string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED];value - The tokenEndpoint to set.public Tool.Authentication.OAuthConfig.Builder clearTokenEndpoint()
Required. The token endpoint in the OAuth provider to exchange for an access token.
string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED];public Tool.Authentication.OAuthConfig.Builder setTokenEndpointBytes(com.google.protobuf.ByteString value)
Required. The token endpoint in the OAuth provider to exchange for an access token.
string token_endpoint = 4 [(.google.api.field_behavior) = REQUIRED];value - The bytes for tokenEndpoint to set.public com.google.protobuf.ProtocolStringList getScopesList()
Optional. The OAuth scopes to grant.
repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL];getScopesList in interface Tool.Authentication.OAuthConfigOrBuilderpublic int getScopesCount()
Optional. The OAuth scopes to grant.
repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL];getScopesCount in interface Tool.Authentication.OAuthConfigOrBuilderpublic String getScopes(int index)
Optional. The OAuth scopes to grant.
repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL];getScopes in interface Tool.Authentication.OAuthConfigOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getScopesBytes(int index)
Optional. The OAuth scopes to grant.
repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL];getScopesBytes in interface Tool.Authentication.OAuthConfigOrBuilderindex - The index of the value to return.public Tool.Authentication.OAuthConfig.Builder setScopes(int index, String value)
Optional. The OAuth scopes to grant.
repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL];index - The index to set the value at.value - The scopes to set.public Tool.Authentication.OAuthConfig.Builder addScopes(String value)
Optional. The OAuth scopes to grant.
repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL];value - The scopes to add.public Tool.Authentication.OAuthConfig.Builder addAllScopes(Iterable<String> values)
Optional. The OAuth scopes to grant.
repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL];values - The scopes to add.public Tool.Authentication.OAuthConfig.Builder clearScopes()
Optional. The OAuth scopes to grant.
repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL];public Tool.Authentication.OAuthConfig.Builder addScopesBytes(com.google.protobuf.ByteString value)
Optional. The OAuth scopes to grant.
repeated string scopes = 5 [(.google.api.field_behavior) = OPTIONAL];value - The bytes of the scopes to add.public final Tool.Authentication.OAuthConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Tool.Authentication.OAuthConfig.Builder>public final Tool.Authentication.OAuthConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Tool.Authentication.OAuthConfig.Builder>Copyright © 2025 Google LLC. All rights reserved.