public static final class Environment.Builder extends GeneratedMessageV3.Builder<Environment.Builder> implements EnvironmentOrBuilder
You can create multiple versions of your agent and publish them to separate environments. When you edit an agent, you are editing the draft agent. At any point, you can save the draft agent as an agent version, which is an immutable snapshot of your agent. When you save the draft agent, it is published to the default environment. When you create agent versions, you can publish them to custom environments. You can create a variety of custom environments for: - testing - development - production - etc. For more information, see the [versions and environments guide](https://cloud.google.com/dialogflow/docs/agents-versions).Protobuf type
google.cloud.dialogflow.v2beta1.Environment
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Environment.Builder>
public Environment.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Environment.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Environment.Builder>
public Environment getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Environment build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Environment buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Environment.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Environment.Builder>
public Environment.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Environment.Builder>
public Environment.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Environment.Builder>
public Environment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Environment.Builder>
public Environment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Environment.Builder>
public Environment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Environment.Builder>
public Environment.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Environment.Builder>
public Environment.Builder mergeFrom(Environment other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Environment.Builder>
public Environment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Environment.Builder>
IOException
public String getName()
Output only. The unique identifier of this agent environment. Supported formats: - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - `projects/<Project Number / ID>/locations/<Location ID>/agent/environments/<Environment ID>`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getName
in interface EnvironmentOrBuilder
public ByteString getNameBytes()
Output only. The unique identifier of this agent environment. Supported formats: - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - `projects/<Project Number / ID>/locations/<Location ID>/agent/environments/<Environment ID>`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNameBytes
in interface EnvironmentOrBuilder
public Environment.Builder setName(String value)
Output only. The unique identifier of this agent environment. Supported formats: - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - `projects/<Project Number / ID>/locations/<Location ID>/agent/environments/<Environment ID>`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The name to set.public Environment.Builder clearName()
Output only. The unique identifier of this agent environment. Supported formats: - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - `projects/<Project Number / ID>/locations/<Location ID>/agent/environments/<Environment ID>`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Environment.Builder setNameBytes(ByteString value)
Output only. The unique identifier of this agent environment. Supported formats: - `projects/<Project Number / ID>/agent/environments/<Environment ID>` - `projects/<Project Number / ID>/locations/<Location ID>/agent/environments/<Environment ID>`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The bytes for name to set.public String getDescription()
Optional. The developer-provided description for this environment. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
getDescription
in interface EnvironmentOrBuilder
public ByteString getDescriptionBytes()
Optional. The developer-provided description for this environment. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
getDescriptionBytes
in interface EnvironmentOrBuilder
public Environment.Builder setDescription(String value)
Optional. The developer-provided description for this environment. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The description to set.public Environment.Builder clearDescription()
Optional. The developer-provided description for this environment. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
public Environment.Builder setDescriptionBytes(ByteString value)
Optional. The developer-provided description for this environment. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for description to set.public String getAgentVersion()
Optional. The agent version loaded into this environment. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>`
string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getAgentVersion
in interface EnvironmentOrBuilder
public ByteString getAgentVersionBytes()
Optional. The agent version loaded into this environment. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>`
string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getAgentVersionBytes
in interface EnvironmentOrBuilder
public Environment.Builder setAgentVersion(String value)
Optional. The agent version loaded into this environment. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>`
string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
value
- The agentVersion to set.public Environment.Builder clearAgentVersion()
Optional. The agent version loaded into this environment. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>`
string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
public Environment.Builder setAgentVersionBytes(ByteString value)
Optional. The agent version loaded into this environment. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>`
string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
value
- The bytes for agentVersion to set.public int getStateValue()
Output only. The state of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
.google.cloud.dialogflow.v2beta1.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue
in interface EnvironmentOrBuilder
public Environment.Builder setStateValue(int value)
Output only. The state of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
.google.cloud.dialogflow.v2beta1.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The enum numeric value on the wire for state to set.public Environment.State getState()
Output only. The state of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
.google.cloud.dialogflow.v2beta1.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState
in interface EnvironmentOrBuilder
public Environment.Builder setState(Environment.State value)
Output only. The state of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
.google.cloud.dialogflow.v2beta1.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The state to set.public Environment.Builder clearState()
Output only. The state of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
.google.cloud.dialogflow.v2beta1.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public boolean hasUpdateTime()
Output only. The last update time of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime
in interface EnvironmentOrBuilder
public Timestamp getUpdateTime()
Output only. The last update time of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime
in interface EnvironmentOrBuilder
public Environment.Builder setUpdateTime(Timestamp value)
Output only. The last update time of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Environment.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The last update time of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Environment.Builder mergeUpdateTime(Timestamp value)
Output only. The last update time of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Environment.Builder clearUpdateTime()
Output only. The last update time of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The last update time of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The last update time of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder
in interface EnvironmentOrBuilder
public boolean hasTextToSpeechSettings()
Optional. Text to speech settings for this environment.
.google.cloud.dialogflow.v2beta1.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL];
hasTextToSpeechSettings
in interface EnvironmentOrBuilder
public TextToSpeechSettings getTextToSpeechSettings()
Optional. Text to speech settings for this environment.
.google.cloud.dialogflow.v2beta1.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL];
getTextToSpeechSettings
in interface EnvironmentOrBuilder
public Environment.Builder setTextToSpeechSettings(TextToSpeechSettings value)
Optional. Text to speech settings for this environment.
.google.cloud.dialogflow.v2beta1.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL];
public Environment.Builder setTextToSpeechSettings(TextToSpeechSettings.Builder builderForValue)
Optional. Text to speech settings for this environment.
.google.cloud.dialogflow.v2beta1.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL];
public Environment.Builder mergeTextToSpeechSettings(TextToSpeechSettings value)
Optional. Text to speech settings for this environment.
.google.cloud.dialogflow.v2beta1.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL];
public Environment.Builder clearTextToSpeechSettings()
Optional. Text to speech settings for this environment.
.google.cloud.dialogflow.v2beta1.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL];
public TextToSpeechSettings.Builder getTextToSpeechSettingsBuilder()
Optional. Text to speech settings for this environment.
.google.cloud.dialogflow.v2beta1.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL];
public TextToSpeechSettingsOrBuilder getTextToSpeechSettingsOrBuilder()
Optional. Text to speech settings for this environment.
.google.cloud.dialogflow.v2beta1.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL];
getTextToSpeechSettingsOrBuilder
in interface EnvironmentOrBuilder
public boolean hasFulfillment()
Optional. The fulfillment settings to use for this environment.
.google.cloud.dialogflow.v2beta1.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL];
hasFulfillment
in interface EnvironmentOrBuilder
public Fulfillment getFulfillment()
Optional. The fulfillment settings to use for this environment.
.google.cloud.dialogflow.v2beta1.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL];
getFulfillment
in interface EnvironmentOrBuilder
public Environment.Builder setFulfillment(Fulfillment value)
Optional. The fulfillment settings to use for this environment.
.google.cloud.dialogflow.v2beta1.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL];
public Environment.Builder setFulfillment(Fulfillment.Builder builderForValue)
Optional. The fulfillment settings to use for this environment.
.google.cloud.dialogflow.v2beta1.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL];
public Environment.Builder mergeFulfillment(Fulfillment value)
Optional. The fulfillment settings to use for this environment.
.google.cloud.dialogflow.v2beta1.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL];
public Environment.Builder clearFulfillment()
Optional. The fulfillment settings to use for this environment.
.google.cloud.dialogflow.v2beta1.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL];
public Fulfillment.Builder getFulfillmentBuilder()
Optional. The fulfillment settings to use for this environment.
.google.cloud.dialogflow.v2beta1.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL];
public FulfillmentOrBuilder getFulfillmentOrBuilder()
Optional. The fulfillment settings to use for this environment.
.google.cloud.dialogflow.v2beta1.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL];
getFulfillmentOrBuilder
in interface EnvironmentOrBuilder
public final Environment.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Environment.Builder>
public final Environment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Environment.Builder>
Copyright © 2022 Google LLC. All rights reserved.