Class TrainFlowRequest.Builder (0.14.0)

public static final class TrainFlowRequest.Builder extends GeneratedMessageV3.Builder<TrainFlowRequest.Builder> implements TrainFlowRequestOrBuilder

The request message for Flows.TrainFlow.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TrainFlowRequest build()
Returns
TypeDescription
TrainFlowRequest

buildPartial()

public TrainFlowRequest buildPartial()
Returns
TypeDescription
TrainFlowRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public TrainFlowRequest.Builder clearName()

Required. The flow to train. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

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

Returns
TypeDescription
TrainFlowRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public TrainFlowRequest getDefaultInstanceForType()
Returns
TypeDescription
TrainFlowRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The flow to train. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The flow to train. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

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

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TrainFlowRequest other)

public TrainFlowRequest.Builder mergeFrom(TrainFlowRequest other)
Parameter
NameDescription
otherTrainFlowRequest
Returns
TypeDescription
TrainFlowRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public TrainFlowRequest.Builder setName(String value)

Required. The flow to train. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
TrainFlowRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TrainFlowRequest.Builder setNameBytes(ByteString value)

Required. The flow to train. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
TrainFlowRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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