public static final class TrainAgentRequest.Builder extends GeneratedMessageV3.Builder<TrainAgentRequest.Builder> implements TrainAgentRequestOrBuilder
The request message for Agents.TrainAgent.
Protobuf type google.cloud.dialogflow.v2beta1.TrainAgentRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TrainAgentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public TrainAgentRequest build()
Returns
buildPartial()
public TrainAgentRequest buildPartial()
Returns
clear()
public TrainAgentRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public TrainAgentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TrainAgentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public TrainAgentRequest.Builder clearParent()
Required. The project that the agent to train is associated with.
Format: projects/<Project ID>
or
projects/<Project ID>/locations/<Location ID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clone()
public TrainAgentRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public TrainAgentRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getParent()
public String getParent()
Required. The project that the agent to train is associated with.
Format: projects/<Project ID>
or
projects/<Project ID>/locations/<Location ID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. The project that the agent to train is associated with.
Format: projects/<Project ID>
or
projects/<Project ID>/locations/<Location ID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TrainAgentRequest other)
public TrainAgentRequest.Builder mergeFrom(TrainAgentRequest other)
Parameter
Returns
public TrainAgentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TrainAgentRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TrainAgentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public TrainAgentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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>
or
projects/<Project ID>/locations/<Location ID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public TrainAgentRequest.Builder setParentBytes(ByteString value)
Required. The project that the agent to train is associated with.
Format: projects/<Project ID>
or
projects/<Project ID>/locations/<Location ID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TrainAgentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TrainAgentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides