public static final class CreateGeneratorRequest.Builder extends GeneratedMessageV3.Builder<CreateGeneratorRequest.Builder> implements CreateGeneratorRequestOrBuilder
The request message for
Generators.CreateGenerator.
Protobuf type google.cloud.dialogflow.cx.v3.CreateGeneratorRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateGeneratorRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateGeneratorRequest build()
buildPartial()
public CreateGeneratorRequest buildPartial()
clear()
public CreateGeneratorRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateGeneratorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearGenerator()
public CreateGeneratorRequest.Builder clearGenerator()
Required. The generator to create.
.google.cloud.dialogflow.cx.v3.Generator generator = 2 [(.google.api.field_behavior) = REQUIRED];
clearLanguageCode()
public CreateGeneratorRequest.Builder clearLanguageCode()
The language to create generators for the following fields:
Generator.prompt_text.text
If not specified, the agent's default language is used.
string language_code = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateGeneratorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParent()
public CreateGeneratorRequest.Builder clearParent()
Required. The agent to create a generator for.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clone()
public CreateGeneratorRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateGeneratorRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getGenerator()
public Generator getGenerator()
Required. The generator to create.
.google.cloud.dialogflow.cx.v3.Generator generator = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
Generator |
The generator.
|
getGeneratorBuilder()
public Generator.Builder getGeneratorBuilder()
Required. The generator to create.
.google.cloud.dialogflow.cx.v3.Generator generator = 2 [(.google.api.field_behavior) = REQUIRED];
getGeneratorOrBuilder()
public GeneratorOrBuilder getGeneratorOrBuilder()
Required. The generator to create.
.google.cloud.dialogflow.cx.v3.Generator generator = 2 [(.google.api.field_behavior) = REQUIRED];
getLanguageCode()
public String getLanguageCode()
The language to create generators for the following fields:
Generator.prompt_text.text
If not specified, the agent's default language is used.
string language_code = 3;
Returns |
Type |
Description |
String |
The languageCode.
|
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes()
The language to create generators for the following fields:
Generator.prompt_text.text
If not specified, the agent's default language is used.
string language_code = 3;
Returns |
Type |
Description |
ByteString |
The bytes for languageCode.
|
getParent()
public String getParent()
Required. The agent to create a generator for.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. The agent to create a generator for.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for parent.
|
hasGenerator()
public boolean hasGenerator()
Required. The generator to create.
.google.cloud.dialogflow.cx.v3.Generator generator = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the generator field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateGeneratorRequest other)
public CreateGeneratorRequest.Builder mergeFrom(CreateGeneratorRequest other)
public CreateGeneratorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateGeneratorRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeGenerator(Generator value)
public CreateGeneratorRequest.Builder mergeGenerator(Generator value)
Required. The generator to create.
.google.cloud.dialogflow.cx.v3.Generator generator = 2 [(.google.api.field_behavior) = REQUIRED];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateGeneratorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateGeneratorRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setGenerator(Generator value)
public CreateGeneratorRequest.Builder setGenerator(Generator value)
Required. The generator to create.
.google.cloud.dialogflow.cx.v3.Generator generator = 2 [(.google.api.field_behavior) = REQUIRED];
setGenerator(Generator.Builder builderForValue)
public CreateGeneratorRequest.Builder setGenerator(Generator.Builder builderForValue)
Required. The generator to create.
.google.cloud.dialogflow.cx.v3.Generator generator = 2 [(.google.api.field_behavior) = REQUIRED];
setLanguageCode(String value)
public CreateGeneratorRequest.Builder setLanguageCode(String value)
The language to create generators for the following fields:
Generator.prompt_text.text
If not specified, the agent's default language is used.
string language_code = 3;
Parameter |
Name |
Description |
value |
String
The languageCode to set.
|
setLanguageCodeBytes(ByteString value)
public CreateGeneratorRequest.Builder setLanguageCodeBytes(ByteString value)
The language to create generators for the following fields:
Generator.prompt_text.text
If not specified, the agent's default language is used.
string language_code = 3;
Parameter |
Name |
Description |
value |
ByteString
The bytes for languageCode to set.
|
setParent(String value)
public CreateGeneratorRequest.Builder setParent(String value)
Required. The agent to create a generator for.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The parent to set.
|
setParentBytes(ByteString value)
public CreateGeneratorRequest.Builder setParentBytes(ByteString value)
Required. The agent to create a generator for.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for parent to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateGeneratorRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateGeneratorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides