Class IntentInput.Builder (0.14.1)

public static final class IntentInput.Builder extends GeneratedMessageV3.Builder<IntentInput.Builder> implements IntentInputOrBuilder

Represents the intent to trigger programmatically rather than as a result of natural language processing.

Protobuf type google.cloud.dialogflow.cx.v3.IntentInput

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IntentInput.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
IntentInput.Builder
Overrides

build()

public IntentInput build()
Returns
TypeDescription
IntentInput

buildPartial()

public IntentInput buildPartial()
Returns
TypeDescription
IntentInput

clear()

public IntentInput.Builder clear()
Returns
TypeDescription
IntentInput.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public IntentInput.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
IntentInput.Builder
Overrides

clearIntent()

public IntentInput.Builder clearIntent()

Required. The unique identifier of the intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string intent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
IntentInput.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public IntentInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
IntentInput.Builder
Overrides

clone()

public IntentInput.Builder clone()
Returns
TypeDescription
IntentInput.Builder
Overrides

getDefaultInstanceForType()

public IntentInput getDefaultInstanceForType()
Returns
TypeDescription
IntentInput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIntent()

public String getIntent()

Required. The unique identifier of the intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string intent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The intent.

getIntentBytes()

public ByteString getIntentBytes()

Required. The unique identifier of the intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string intent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for intent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(IntentInput other)

public IntentInput.Builder mergeFrom(IntentInput other)
Parameter
NameDescription
otherIntentInput
Returns
TypeDescription
IntentInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IntentInput.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IntentInput.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public IntentInput.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
IntentInput.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IntentInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IntentInput.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public IntentInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
IntentInput.Builder
Overrides

setIntent(String value)

public IntentInput.Builder setIntent(String value)

Required. The unique identifier of the intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string intent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The intent to set.

Returns
TypeDescription
IntentInput.Builder

This builder for chaining.

setIntentBytes(ByteString value)

public IntentInput.Builder setIntentBytes(ByteString value)

Required. The unique identifier of the intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string intent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for intent to set.

Returns
TypeDescription
IntentInput.Builder

This builder for chaining.

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

public IntentInput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
IntentInput.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final IntentInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IntentInput.Builder
Overrides