public static final class Environment.Builder extends com.google.protobuf.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.EnvironmentgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Environment build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Environment buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Environment.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Environment.Builder>public Environment.Builder mergeFrom(Environment other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Environment.Builder>IOExceptionpublic 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 EnvironmentOrBuilderpublic com.google.protobuf.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 EnvironmentOrBuilderpublic 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(com.google.protobuf.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 EnvironmentOrBuilderpublic com.google.protobuf.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 EnvironmentOrBuilderpublic 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(com.google.protobuf.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 EnvironmentOrBuilderpublic com.google.protobuf.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 EnvironmentOrBuilderpublic 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(com.google.protobuf.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 EnvironmentOrBuilderpublic 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 EnvironmentOrBuilderpublic 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 EnvironmentOrBuilderpublic com.google.protobuf.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 EnvironmentOrBuilderpublic Environment.Builder setUpdateTime(com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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 EnvironmentOrBuilderpublic 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 EnvironmentOrBuilderpublic 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 EnvironmentOrBuilderpublic 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 EnvironmentOrBuilderpublic 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 EnvironmentOrBuilderpublic 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 EnvironmentOrBuilderpublic 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 EnvironmentOrBuilderpublic final Environment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public final Environment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>Copyright © 2023 Google LLC. All rights reserved.