Class Environment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Environment.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Environment.Builder
- All Implemented Interfaces:
EnvironmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Environment
public static final class Environment.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Environment.Builder>
implements EnvironmentOrBuilder
Represents an environment for an agent. 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.Protobuf type
google.cloud.dialogflow.cx.v3beta1.Environment-
Method Summary
Modifier and TypeMethodDescriptionaddAllVersionConfigs(Iterable<? extends Environment.VersionConfig> values) A list of configurations for flow versions.addVersionConfigs(int index, Environment.VersionConfig value) A list of configurations for flow versions.addVersionConfigs(int index, Environment.VersionConfig.Builder builderForValue) A list of configurations for flow versions.A list of configurations for flow versions.addVersionConfigs(Environment.VersionConfig.Builder builderForValue) A list of configurations for flow versions.A list of configurations for flow versions.addVersionConfigsBuilder(int index) A list of configurations for flow versions.build()clear()The human-readable description of the environment.Required.The name of the environment.The test cases config for continuous tests of this environment.Output only.A list of configurations for flow versions.The webhook configuration for this environment.The human-readable description of the environment.com.google.protobuf.ByteStringThe human-readable description of the environment.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getName()The name of the environment.com.google.protobuf.ByteStringThe name of the environment.The test cases config for continuous tests of this environment.The test cases config for continuous tests of this environment.The test cases config for continuous tests of this environment.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getVersionConfigs(int index) A list of configurations for flow versions.getVersionConfigsBuilder(int index) A list of configurations for flow versions.A list of configurations for flow versions.intA list of configurations for flow versions.A list of configurations for flow versions.getVersionConfigsOrBuilder(int index) A list of configurations for flow versions.List<? extends Environment.VersionConfigOrBuilder>A list of configurations for flow versions.The webhook configuration for this environment.The webhook configuration for this environment.The webhook configuration for this environment.booleanThe test cases config for continuous tests of this environment.booleanOutput only.booleanThe webhook configuration for this environment.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Environment other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The test cases config for continuous tests of this environment.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.The webhook configuration for this environment.removeVersionConfigs(int index) A list of configurations for flow versions.setDescription(String value) The human-readable description of the environment.setDescriptionBytes(com.google.protobuf.ByteString value) The human-readable description of the environment.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.The name of the environment.setNameBytes(com.google.protobuf.ByteString value) The name of the environment.The test cases config for continuous tests of this environment.setTestCasesConfig(Environment.TestCasesConfig.Builder builderForValue) The test cases config for continuous tests of this environment.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setVersionConfigs(int index, Environment.VersionConfig value) A list of configurations for flow versions.setVersionConfigs(int index, Environment.VersionConfig.Builder builderForValue) A list of configurations for flow versions.The webhook configuration for this environment.setWebhookConfig(Environment.WebhookConfig.Builder builderForValue) The webhook configuration for this environment.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Environment.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Environment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Environment.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Environment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Environment.Builder>
-
mergeFrom
public Environment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Environment.Builder>- Throws:
IOException
-
getName
The name of the environment. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
string name = 1;- Specified by:
getNamein interfaceEnvironmentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the environment. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
string name = 1;- Specified by:
getNameBytesin interfaceEnvironmentOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the environment. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the environment. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name of the environment. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
Required. The human-readable name of the environment (unique in an agent). Limit of 64 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNamein interfaceEnvironmentOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. The human-readable name of the environment (unique in an agent). Limit of 64 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNameBytesin interfaceEnvironmentOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Required. The human-readable name of the environment (unique in an agent). Limit of 64 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Required. The human-readable name of the environment (unique in an agent). Limit of 64 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Required. The human-readable name of the environment (unique in an agent). Limit of 64 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDescription
The human-readable description of the environment. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 3;- Specified by:
getDescriptionin interfaceEnvironmentOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()The human-readable description of the environment. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 3;- Specified by:
getDescriptionBytesin interfaceEnvironmentOrBuilder- Returns:
- The bytes for description.
-
setDescription
The human-readable description of the environment. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
The human-readable description of the environment. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
The human-readable description of the environment. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getVersionConfigsList
A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6;- Specified by:
getVersionConfigsListin interfaceEnvironmentOrBuilder
-
getVersionConfigsCount
public int getVersionConfigsCount()A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6;- Specified by:
getVersionConfigsCountin interfaceEnvironmentOrBuilder
-
getVersionConfigs
A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6;- Specified by:
getVersionConfigsin interfaceEnvironmentOrBuilder
-
setVersionConfigs
A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6; -
setVersionConfigs
public Environment.Builder setVersionConfigs(int index, Environment.VersionConfig.Builder builderForValue) A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6; -
addVersionConfigs
A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6; -
addVersionConfigs
A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6; -
addVersionConfigs
A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6; -
addVersionConfigs
public Environment.Builder addVersionConfigs(int index, Environment.VersionConfig.Builder builderForValue) A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6; -
addAllVersionConfigs
public Environment.Builder addAllVersionConfigs(Iterable<? extends Environment.VersionConfig> values) A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6; -
clearVersionConfigs
A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6; -
removeVersionConfigs
A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6; -
getVersionConfigsBuilder
A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6; -
getVersionConfigsOrBuilder
A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6;- Specified by:
getVersionConfigsOrBuilderin interfaceEnvironmentOrBuilder
-
getVersionConfigsOrBuilderList
A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6;- Specified by:
getVersionConfigsOrBuilderListin interfaceEnvironmentOrBuilder
-
addVersionConfigsBuilder
A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6; -
addVersionConfigsBuilder
A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6; -
getVersionConfigsBuilderList
A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
repeated .google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig version_configs = 6; -
hasUpdateTime
public boolean hasUpdateTime()Output only. Update time of this environment.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceEnvironmentOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Update time of this environment.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceEnvironmentOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. Update time of this environment.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. Update time of this environment.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. Update time of this environment.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. Update time of this environment.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. Update time of this environment.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Update time of this environment.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceEnvironmentOrBuilder
-
hasTestCasesConfig
public boolean hasTestCasesConfig()The test cases config for continuous tests of this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7;- Specified by:
hasTestCasesConfigin interfaceEnvironmentOrBuilder- Returns:
- Whether the testCasesConfig field is set.
-
getTestCasesConfig
The test cases config for continuous tests of this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7;- Specified by:
getTestCasesConfigin interfaceEnvironmentOrBuilder- Returns:
- The testCasesConfig.
-
setTestCasesConfig
The test cases config for continuous tests of this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; -
setTestCasesConfig
The test cases config for continuous tests of this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; -
mergeTestCasesConfig
The test cases config for continuous tests of this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; -
clearTestCasesConfig
The test cases config for continuous tests of this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; -
getTestCasesConfigBuilder
The test cases config for continuous tests of this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7; -
getTestCasesConfigOrBuilder
The test cases config for continuous tests of this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig test_cases_config = 7;- Specified by:
getTestCasesConfigOrBuilderin interfaceEnvironmentOrBuilder
-
hasWebhookConfig
public boolean hasWebhookConfig()The webhook configuration for this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig webhook_config = 10;- Specified by:
hasWebhookConfigin interfaceEnvironmentOrBuilder- Returns:
- Whether the webhookConfig field is set.
-
getWebhookConfig
The webhook configuration for this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig webhook_config = 10;- Specified by:
getWebhookConfigin interfaceEnvironmentOrBuilder- Returns:
- The webhookConfig.
-
setWebhookConfig
The webhook configuration for this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig webhook_config = 10; -
setWebhookConfig
The webhook configuration for this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig webhook_config = 10; -
mergeWebhookConfig
The webhook configuration for this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig webhook_config = 10; -
clearWebhookConfig
The webhook configuration for this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig webhook_config = 10; -
getWebhookConfigBuilder
The webhook configuration for this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig webhook_config = 10; -
getWebhookConfigOrBuilder
The webhook configuration for this environment.
.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig webhook_config = 10;- Specified by:
getWebhookConfigOrBuilderin interfaceEnvironmentOrBuilder
-