Class Environment
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.cx.v3.Environment
-
- All Implemented Interfaces:
EnvironmentOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Environment extends com.google.protobuf.GeneratedMessageV3 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 typegoogle.cloud.dialogflow.cx.v3.Environment- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEnvironment.BuilderRepresents an environment for an agent.static classEnvironment.TestCasesConfigThe configuration for continuous tests.static interfaceEnvironment.TestCasesConfigOrBuilderstatic classEnvironment.VersionConfigConfiguration for the version.static interfaceEnvironment.VersionConfigOrBuilderstatic classEnvironment.WebhookConfigConfiguration for webhooks.static interfaceEnvironment.WebhookConfigOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDESCRIPTION_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intTEST_CASES_CONFIG_FIELD_NUMBERstatic intUPDATE_TIME_FIELD_NUMBERstatic intVERSION_CONFIGS_FIELD_NUMBERstatic intWEBHOOK_CONFIG_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static EnvironmentgetDefaultInstance()EnvironmentgetDefaultInstanceForType()StringgetDescription()The human-readable description of the environment.com.google.protobuf.ByteStringgetDescriptionBytes()The human-readable description of the environment.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()Required.com.google.protobuf.ByteStringgetDisplayNameBytes()Required.StringgetName()The name of the environment.com.google.protobuf.ByteStringgetNameBytes()The name of the environment.com.google.protobuf.Parser<Environment>getParserForType()intgetSerializedSize()Environment.TestCasesConfiggetTestCasesConfig()The test cases config for continuous tests of this environment.Environment.TestCasesConfigOrBuildergetTestCasesConfigOrBuilder()The test cases config for continuous tests of this environment.com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.Environment.VersionConfiggetVersionConfigs(int index)A list of configurations for flow versions.intgetVersionConfigsCount()A list of configurations for flow versions.List<Environment.VersionConfig>getVersionConfigsList()A list of configurations for flow versions.Environment.VersionConfigOrBuildergetVersionConfigsOrBuilder(int index)A list of configurations for flow versions.List<? extends Environment.VersionConfigOrBuilder>getVersionConfigsOrBuilderList()A list of configurations for flow versions.Environment.WebhookConfiggetWebhookConfig()The webhook configuration for this environment.Environment.WebhookConfigOrBuildergetWebhookConfigOrBuilder()The webhook configuration for this environment.inthashCode()booleanhasTestCasesConfig()The test cases config for continuous tests of this environment.booleanhasUpdateTime()Output only.booleanhasWebhookConfig()The webhook configuration for this environment.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Environment.BuildernewBuilder()static Environment.BuildernewBuilder(Environment prototype)Environment.BuildernewBuilderForType()protected Environment.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static EnvironmentparseDelimitedFrom(InputStream input)static EnvironmentparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EnvironmentparseFrom(byte[] data)static EnvironmentparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EnvironmentparseFrom(com.google.protobuf.ByteString data)static EnvironmentparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EnvironmentparseFrom(com.google.protobuf.CodedInputStream input)static EnvironmentparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EnvironmentparseFrom(InputStream input)static EnvironmentparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EnvironmentparseFrom(ByteBuffer data)static EnvironmentparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Environment>parser()Environment.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VERSION_CONFIGS_FIELD_NUMBER
public static final int VERSION_CONFIGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEST_CASES_CONFIG_FIELD_NUMBER
public static final int TEST_CASES_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEBHOOK_CONFIG_FIELD_NUMBER
public static final int WEBHOOK_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
The name of the environment. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>`.
string name = 1;- Specified by:
getNamein interfaceEnvironmentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the environment. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>`.
string name = 1;- Specified by:
getNameBytesin interfaceEnvironmentOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
public String 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.
-
getDescription
public String 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.
-
getVersionConfigsList
public List<Environment.VersionConfig> 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.v3.Environment.VersionConfig version_configs = 6;- Specified by:
getVersionConfigsListin interfaceEnvironmentOrBuilder
-
getVersionConfigsOrBuilderList
public List<? extends Environment.VersionConfigOrBuilder> 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.v3.Environment.VersionConfig version_configs = 6;- Specified by:
getVersionConfigsOrBuilderListin 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.v3.Environment.VersionConfig version_configs = 6;- Specified by:
getVersionConfigsCountin interfaceEnvironmentOrBuilder
-
getVersionConfigs
public Environment.VersionConfig getVersionConfigs(int index)
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.v3.Environment.VersionConfig version_configs = 6;- Specified by:
getVersionConfigsin interfaceEnvironmentOrBuilder
-
getVersionConfigsOrBuilder
public Environment.VersionConfigOrBuilder getVersionConfigsOrBuilder(int index)
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.v3.Environment.VersionConfig version_configs = 6;- Specified by:
getVersionConfigsOrBuilderin interfaceEnvironmentOrBuilder
-
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.
-
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.v3.Environment.TestCasesConfig test_cases_config = 7;- Specified by:
hasTestCasesConfigin interfaceEnvironmentOrBuilder- Returns:
- Whether the testCasesConfig field is set.
-
getTestCasesConfig
public Environment.TestCasesConfig getTestCasesConfig()
The test cases config for continuous tests of this environment.
.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7;- Specified by:
getTestCasesConfigin interfaceEnvironmentOrBuilder- Returns:
- The testCasesConfig.
-
getTestCasesConfigOrBuilder
public Environment.TestCasesConfigOrBuilder getTestCasesConfigOrBuilder()
The test cases config for continuous tests of this environment.
.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig test_cases_config = 7;- Specified by:
getTestCasesConfigOrBuilderin interfaceEnvironmentOrBuilder
-
hasWebhookConfig
public boolean hasWebhookConfig()
The webhook configuration for this environment.
.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig webhook_config = 10;- Specified by:
hasWebhookConfigin interfaceEnvironmentOrBuilder- Returns:
- Whether the webhookConfig field is set.
-
getWebhookConfig
public Environment.WebhookConfig getWebhookConfig()
The webhook configuration for this environment.
.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig webhook_config = 10;- Specified by:
getWebhookConfigin interfaceEnvironmentOrBuilder- Returns:
- The webhookConfig.
-
getWebhookConfigOrBuilder
public Environment.WebhookConfigOrBuilder getWebhookConfigOrBuilder()
The webhook configuration for this environment.
.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig webhook_config = 10;- Specified by:
getWebhookConfigOrBuilderin interfaceEnvironmentOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Environment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Environment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Environment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Environment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Environment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Environment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Environment parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Environment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Environment parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Environment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Environment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Environment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Environment.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Environment.Builder newBuilder()
-
newBuilder
public static Environment.Builder newBuilder(Environment prototype)
-
toBuilder
public Environment.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Environment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Environment getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Environment> parser()
-
getParserForType
public com.google.protobuf.Parser<Environment> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Environment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-