Class TrainAgentRequest.Builder (4.7.5)

public static final class TrainAgentRequest.Builder extends GeneratedMessageV3.Builder<TrainAgentRequest.Builder> implements TrainAgentRequestOrBuilder

The request message for Agents.TrainAgent.

Protobuf type google.cloud.dialogflow.v2.TrainAgentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TrainAgentRequest build()
Returns
TypeDescription
TrainAgentRequest

buildPartial()

public TrainAgentRequest buildPartial()
Returns
TypeDescription
TrainAgentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public TrainAgentRequest.Builder clearParent()

Required. The project that the agent to train is associated with. Format: projects/<Project ID>.

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

Returns
TypeDescription
TrainAgentRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TrainAgentRequest getDefaultInstanceForType()
Returns
TypeDescription
TrainAgentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The project that the agent to train is associated with. Format: projects/<Project ID>.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project that the agent to train is associated with. Format: projects/<Project ID>.

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

Returns
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TrainAgentRequest other)

public TrainAgentRequest.Builder mergeFrom(TrainAgentRequest other)
Parameter
NameDescription
otherTrainAgentRequest
Returns
TypeDescription
TrainAgentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public TrainAgentRequest.Builder setParent(String value)

Required. The project that the agent to train is associated with. Format: projects/<Project ID>.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
TrainAgentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public TrainAgentRequest.Builder setParentBytes(ByteString value)

Required. The project that the agent to train is associated with. Format: projects/<Project ID>.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
TrainAgentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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