Class Tool.OpenApiTool.Builder (0.54.0)

public static final class Tool.OpenApiTool.Builder extends GeneratedMessageV3.Builder<Tool.OpenApiTool.Builder> implements Tool.OpenApiToolOrBuilder

An OpenAPI tool is a way to provide the Tool specifications in the Open API schema format.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Tool.OpenApiTool.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Tool.OpenApiTool.Builder
Overrides

build()

public Tool.OpenApiTool build()
Returns
Type Description
Tool.OpenApiTool

buildPartial()

public Tool.OpenApiTool buildPartial()
Returns
Type Description
Tool.OpenApiTool

clear()

public Tool.OpenApiTool.Builder clear()
Returns
Type Description
Tool.OpenApiTool.Builder
Overrides

clearAuthentication()

public Tool.OpenApiTool.Builder clearAuthentication()

Optional. Authentication information required by the API.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Tool.OpenApiTool.Builder

clearField(Descriptors.FieldDescriptor field)

public Tool.OpenApiTool.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Tool.OpenApiTool.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Tool.OpenApiTool.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Tool.OpenApiTool.Builder
Overrides

clearSchema()

public Tool.OpenApiTool.Builder clearSchema()
Returns
Type Description
Tool.OpenApiTool.Builder

clearTextSchema()

public Tool.OpenApiTool.Builder clearTextSchema()

Required. The OpenAPI schema specified as a text.

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

Returns
Type Description
Tool.OpenApiTool.Builder

This builder for chaining.

clearTlsConfig()

public Tool.OpenApiTool.Builder clearTlsConfig()

Optional. TLS configuration for the HTTPS verification.

.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Tool.OpenApiTool.Builder

clone()

public Tool.OpenApiTool.Builder clone()
Returns
Type Description
Tool.OpenApiTool.Builder
Overrides

getAuthentication()

public Tool.Authentication getAuthentication()

Optional. Authentication information required by the API.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Tool.Authentication

The authentication.

getAuthenticationBuilder()

public Tool.Authentication.Builder getAuthenticationBuilder()

Optional. Authentication information required by the API.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Tool.Authentication.Builder

getAuthenticationOrBuilder()

public Tool.AuthenticationOrBuilder getAuthenticationOrBuilder()

Optional. Authentication information required by the API.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Tool.AuthenticationOrBuilder

getDefaultInstanceForType()

public Tool.OpenApiTool getDefaultInstanceForType()
Returns
Type Description
Tool.OpenApiTool

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSchemaCase()

public Tool.OpenApiTool.SchemaCase getSchemaCase()
Returns
Type Description
Tool.OpenApiTool.SchemaCase

getTextSchema()

public String getTextSchema()

Required. The OpenAPI schema specified as a text.

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

Returns
Type Description
String

The textSchema.

getTextSchemaBytes()

public ByteString getTextSchemaBytes()

Required. The OpenAPI schema specified as a text.

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

Returns
Type Description
ByteString

The bytes for textSchema.

getTlsConfig()

public Tool.TLSConfig getTlsConfig()

Optional. TLS configuration for the HTTPS verification.

.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Tool.TLSConfig

The tlsConfig.

getTlsConfigBuilder()

public Tool.TLSConfig.Builder getTlsConfigBuilder()

Optional. TLS configuration for the HTTPS verification.

.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Tool.TLSConfig.Builder

getTlsConfigOrBuilder()

public Tool.TLSConfigOrBuilder getTlsConfigOrBuilder()

Optional. TLS configuration for the HTTPS verification.

.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Tool.TLSConfigOrBuilder

hasAuthentication()

public boolean hasAuthentication()

Optional. Authentication information required by the API.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the authentication field is set.

hasTextSchema()

public boolean hasTextSchema()

Required. The OpenAPI schema specified as a text.

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

Returns
Type Description
boolean

Whether the textSchema field is set.

hasTlsConfig()

public boolean hasTlsConfig()

Optional. TLS configuration for the HTTPS verification.

.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the tlsConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAuthentication(Tool.Authentication value)

public Tool.OpenApiTool.Builder mergeAuthentication(Tool.Authentication value)

Optional. Authentication information required by the API.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Tool.Authentication
Returns
Type Description
Tool.OpenApiTool.Builder

mergeFrom(Tool.OpenApiTool other)

public Tool.OpenApiTool.Builder mergeFrom(Tool.OpenApiTool other)
Parameter
Name Description
other Tool.OpenApiTool
Returns
Type Description
Tool.OpenApiTool.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Tool.OpenApiTool.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.OpenApiTool.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Tool.OpenApiTool.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Tool.OpenApiTool.Builder
Overrides

mergeTlsConfig(Tool.TLSConfig value)

public Tool.OpenApiTool.Builder mergeTlsConfig(Tool.TLSConfig value)

Optional. TLS configuration for the HTTPS verification.

.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Tool.TLSConfig
Returns
Type Description
Tool.OpenApiTool.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Tool.OpenApiTool.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Tool.OpenApiTool.Builder
Overrides

setAuthentication(Tool.Authentication value)

public Tool.OpenApiTool.Builder setAuthentication(Tool.Authentication value)

Optional. Authentication information required by the API.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Tool.Authentication
Returns
Type Description
Tool.OpenApiTool.Builder

setAuthentication(Tool.Authentication.Builder builderForValue)

public Tool.OpenApiTool.Builder setAuthentication(Tool.Authentication.Builder builderForValue)

Optional. Authentication information required by the API.

.google.cloud.dialogflow.cx.v3beta1.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Tool.Authentication.Builder
Returns
Type Description
Tool.OpenApiTool.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Tool.OpenApiTool.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Tool.OpenApiTool.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Tool.OpenApiTool.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Tool.OpenApiTool.Builder
Overrides

setTextSchema(String value)

public Tool.OpenApiTool.Builder setTextSchema(String value)

Required. The OpenAPI schema specified as a text.

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

Parameter
Name Description
value String

The textSchema to set.

Returns
Type Description
Tool.OpenApiTool.Builder

This builder for chaining.

setTextSchemaBytes(ByteString value)

public Tool.OpenApiTool.Builder setTextSchemaBytes(ByteString value)

Required. The OpenAPI schema specified as a text.

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

Parameter
Name Description
value ByteString

The bytes for textSchema to set.

Returns
Type Description
Tool.OpenApiTool.Builder

This builder for chaining.

setTlsConfig(Tool.TLSConfig value)

public Tool.OpenApiTool.Builder setTlsConfig(Tool.TLSConfig value)

Optional. TLS configuration for the HTTPS verification.

.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Tool.TLSConfig
Returns
Type Description
Tool.OpenApiTool.Builder

setTlsConfig(Tool.TLSConfig.Builder builderForValue)

public Tool.OpenApiTool.Builder setTlsConfig(Tool.TLSConfig.Builder builderForValue)

Optional. TLS configuration for the HTTPS verification.

.google.cloud.dialogflow.cx.v3beta1.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Tool.TLSConfig.Builder
Returns
Type Description
Tool.OpenApiTool.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Tool.OpenApiTool.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Tool.OpenApiTool.Builder
Overrides