Class Generator.Builder (4.59.0)

public static final class Generator.Builder extends GeneratedMessageV3.Builder<Generator.Builder> implements GeneratorOrBuilder

LLM generator.

Protobuf type google.cloud.dialogflow.v2.Generator

Implements

GeneratorOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Generator.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Generator.Builder
Overrides

build()

public Generator build()
Returns
Type Description
Generator

buildPartial()

public Generator buildPartial()
Returns
Type Description
Generator

clear()

public Generator.Builder clear()
Returns
Type Description
Generator.Builder
Overrides

clearContext()

public Generator.Builder clearContext()
Returns
Type Description
Generator.Builder

clearCreateTime()

public Generator.Builder clearCreateTime()

Output only. Creation time of this generator.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Generator.Builder

clearDescription()

public Generator.Builder clearDescription()

Optional. Human readable description of the generator.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Generator.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Generator.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Generator.Builder
Overrides

clearInferenceParameter()

public Generator.Builder clearInferenceParameter()

Optional. Inference parameters for this generator.

.google.cloud.dialogflow.v2.InferenceParameter inference_parameter = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Generator.Builder

clearName()

public Generator.Builder clearName()

Output only. Identifier. The resource name of the generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Generator.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Generator.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Generator.Builder
Overrides

clearSummarizationContext()

public Generator.Builder clearSummarizationContext()

Input of prebuilt Summarization feature.

.google.cloud.dialogflow.v2.SummarizationContext summarization_context = 13;

Returns
Type Description
Generator.Builder

clearTriggerEvent()

public Generator.Builder clearTriggerEvent()

Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.

.google.cloud.dialogflow.v2.TriggerEvent trigger_event = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Generator.Builder

This builder for chaining.

clearUpdateTime()

public Generator.Builder clearUpdateTime()

Output only. Update time of this generator.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Generator.Builder

clone()

public Generator.Builder clone()
Returns
Type Description
Generator.Builder
Overrides

getContextCase()

public Generator.ContextCase getContextCase()
Returns
Type Description
Generator.ContextCase

getCreateTime()

public Timestamp getCreateTime()

Output only. Creation time of this generator.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Creation time of this generator.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Creation time of this generator.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Generator getDefaultInstanceForType()
Returns
Type Description
Generator

getDescription()

public String getDescription()

Optional. Human readable description of the generator.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Human readable description of the generator.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInferenceParameter()

public InferenceParameter getInferenceParameter()

Optional. Inference parameters for this generator.

.google.cloud.dialogflow.v2.InferenceParameter inference_parameter = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InferenceParameter

The inferenceParameter.

getInferenceParameterBuilder()

public InferenceParameter.Builder getInferenceParameterBuilder()

Optional. Inference parameters for this generator.

.google.cloud.dialogflow.v2.InferenceParameter inference_parameter = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InferenceParameter.Builder

getInferenceParameterOrBuilder()

public InferenceParameterOrBuilder getInferenceParameterOrBuilder()

Optional. Inference parameters for this generator.

.google.cloud.dialogflow.v2.InferenceParameter inference_parameter = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InferenceParameterOrBuilder

getName()

public String getName()

Output only. Identifier. The resource name of the generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Identifier. The resource name of the generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getSummarizationContext()

public SummarizationContext getSummarizationContext()

Input of prebuilt Summarization feature.

.google.cloud.dialogflow.v2.SummarizationContext summarization_context = 13;

Returns
Type Description
SummarizationContext

The summarizationContext.

getSummarizationContextBuilder()

public SummarizationContext.Builder getSummarizationContextBuilder()

Input of prebuilt Summarization feature.

.google.cloud.dialogflow.v2.SummarizationContext summarization_context = 13;

Returns
Type Description
SummarizationContext.Builder

getSummarizationContextOrBuilder()

public SummarizationContextOrBuilder getSummarizationContextOrBuilder()

Input of prebuilt Summarization feature.

.google.cloud.dialogflow.v2.SummarizationContext summarization_context = 13;

Returns
Type Description
SummarizationContextOrBuilder

getTriggerEvent()

public TriggerEvent getTriggerEvent()

Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.

.google.cloud.dialogflow.v2.TriggerEvent trigger_event = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TriggerEvent

The triggerEvent.

getTriggerEventValue()

public int getTriggerEventValue()

Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.

.google.cloud.dialogflow.v2.TriggerEvent trigger_event = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for triggerEvent.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update time of this generator.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Update time of this generator.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update time of this generator.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Creation time of this generator.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasInferenceParameter()

public boolean hasInferenceParameter()

Optional. Inference parameters for this generator.

.google.cloud.dialogflow.v2.InferenceParameter inference_parameter = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the inferenceParameter field is set.

hasSummarizationContext()

public boolean hasSummarizationContext()

Input of prebuilt Summarization feature.

.google.cloud.dialogflow.v2.SummarizationContext summarization_context = 13;

Returns
Type Description
boolean

Whether the summarizationContext field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update time of this generator.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Generator.Builder mergeCreateTime(Timestamp value)

Output only. Creation time of this generator.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Generator.Builder

mergeFrom(Generator other)

public Generator.Builder mergeFrom(Generator other)
Parameter
Name Description
other Generator
Returns
Type Description
Generator.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Generator.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Generator.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Generator.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Generator.Builder
Overrides

mergeInferenceParameter(InferenceParameter value)

public Generator.Builder mergeInferenceParameter(InferenceParameter value)

Optional. Inference parameters for this generator.

.google.cloud.dialogflow.v2.InferenceParameter inference_parameter = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InferenceParameter
Returns
Type Description
Generator.Builder

mergeSummarizationContext(SummarizationContext value)

public Generator.Builder mergeSummarizationContext(SummarizationContext value)

Input of prebuilt Summarization feature.

.google.cloud.dialogflow.v2.SummarizationContext summarization_context = 13;

Parameter
Name Description
value SummarizationContext
Returns
Type Description
Generator.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Generator.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Generator.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Generator.Builder mergeUpdateTime(Timestamp value)

Output only. Update time of this generator.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Generator.Builder

setCreateTime(Timestamp value)

public Generator.Builder setCreateTime(Timestamp value)

Output only. Creation time of this generator.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Generator.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Generator.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Creation time of this generator.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Generator.Builder

setDescription(String value)

public Generator.Builder setDescription(String value)

Optional. Human readable description of the generator.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Generator.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Generator.Builder setDescriptionBytes(ByteString value)

Optional. Human readable description of the generator.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Generator.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Generator.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Generator.Builder
Overrides

setInferenceParameter(InferenceParameter value)

public Generator.Builder setInferenceParameter(InferenceParameter value)

Optional. Inference parameters for this generator.

.google.cloud.dialogflow.v2.InferenceParameter inference_parameter = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value InferenceParameter
Returns
Type Description
Generator.Builder

setInferenceParameter(InferenceParameter.Builder builderForValue)

public Generator.Builder setInferenceParameter(InferenceParameter.Builder builderForValue)

Optional. Inference parameters for this generator.

.google.cloud.dialogflow.v2.InferenceParameter inference_parameter = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue InferenceParameter.Builder
Returns
Type Description
Generator.Builder

setName(String value)

public Generator.Builder setName(String value)

Output only. Identifier. The resource name of the generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Generator.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Generator.Builder setNameBytes(ByteString value)

Output only. Identifier. The resource name of the generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Generator.Builder

This builder for chaining.

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

public Generator.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Generator.Builder
Overrides

setSummarizationContext(SummarizationContext value)

public Generator.Builder setSummarizationContext(SummarizationContext value)

Input of prebuilt Summarization feature.

.google.cloud.dialogflow.v2.SummarizationContext summarization_context = 13;

Parameter
Name Description
value SummarizationContext
Returns
Type Description
Generator.Builder

setSummarizationContext(SummarizationContext.Builder builderForValue)

public Generator.Builder setSummarizationContext(SummarizationContext.Builder builderForValue)

Input of prebuilt Summarization feature.

.google.cloud.dialogflow.v2.SummarizationContext summarization_context = 13;

Parameter
Name Description
builderForValue SummarizationContext.Builder
Returns
Type Description
Generator.Builder

setTriggerEvent(TriggerEvent value)

public Generator.Builder setTriggerEvent(TriggerEvent value)

Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.

.google.cloud.dialogflow.v2.TriggerEvent trigger_event = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TriggerEvent

The triggerEvent to set.

Returns
Type Description
Generator.Builder

This builder for chaining.

setTriggerEventValue(int value)

public Generator.Builder setTriggerEventValue(int value)

Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.

.google.cloud.dialogflow.v2.TriggerEvent trigger_event = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for triggerEvent to set.

Returns
Type Description
Generator.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Generator.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Generator.Builder
Overrides

setUpdateTime(Timestamp value)

public Generator.Builder setUpdateTime(Timestamp value)

Output only. Update time of this generator.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Generator.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Generator.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Update time of this generator.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Generator.Builder