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 class
Environment.Builder
Represents an environment for an agent.static class
Environment.TestCasesConfig
The configuration for continuous tests.static interface
Environment.TestCasesConfigOrBuilder
static class
Environment.VersionConfig
Configuration for the version.static interface
Environment.VersionConfigOrBuilder
static class
Environment.WebhookConfig
Configuration for webhooks.static interface
Environment.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 int
DESCRIPTION_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
TEST_CASES_CONFIG_FIELD_NUMBER
static int
UPDATE_TIME_FIELD_NUMBER
static int
VERSION_CONFIGS_FIELD_NUMBER
static int
WEBHOOK_CONFIG_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static Environment
getDefaultInstance()
Environment
getDefaultInstanceForType()
String
getDescription()
The human-readable description of the environment.com.google.protobuf.ByteString
getDescriptionBytes()
The human-readable description of the environment.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDisplayName()
Required.com.google.protobuf.ByteString
getDisplayNameBytes()
Required.String
getName()
The name of the environment.com.google.protobuf.ByteString
getNameBytes()
The name of the environment.com.google.protobuf.Parser<Environment>
getParserForType()
int
getSerializedSize()
Environment.TestCasesConfig
getTestCasesConfig()
The test cases config for continuous tests of this environment.Environment.TestCasesConfigOrBuilder
getTestCasesConfigOrBuilder()
The test cases config for continuous tests of this environment.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.Environment.VersionConfig
getVersionConfigs(int index)
A list of configurations for flow versions.int
getVersionConfigsCount()
A list of configurations for flow versions.List<Environment.VersionConfig>
getVersionConfigsList()
A list of configurations for flow versions.Environment.VersionConfigOrBuilder
getVersionConfigsOrBuilder(int index)
A list of configurations for flow versions.List<? extends Environment.VersionConfigOrBuilder>
getVersionConfigsOrBuilderList()
A list of configurations for flow versions.Environment.WebhookConfig
getWebhookConfig()
The webhook configuration for this environment.Environment.WebhookConfigOrBuilder
getWebhookConfigOrBuilder()
The webhook configuration for this environment.int
hashCode()
boolean
hasTestCasesConfig()
The test cases config for continuous tests of this environment.boolean
hasUpdateTime()
Output only.boolean
hasWebhookConfig()
The webhook configuration for this environment.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Environment.Builder
newBuilder()
static Environment.Builder
newBuilder(Environment prototype)
Environment.Builder
newBuilderForType()
protected Environment.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Environment
parseDelimitedFrom(InputStream input)
static Environment
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Environment
parseFrom(byte[] data)
static Environment
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Environment
parseFrom(com.google.protobuf.ByteString data)
static Environment
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Environment
parseFrom(com.google.protobuf.CodedInputStream input)
static Environment
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Environment
parseFrom(InputStream input)
static Environment
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Environment
parseFrom(ByteBuffer data)
static Environment
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Environment>
parser()
Environment.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getName
in 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:
getNameBytes
in 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:
getDisplayName
in 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:
getDisplayNameBytes
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
getVersionConfigsList
in 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:
getVersionConfigsOrBuilderList
in 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:
getVersionConfigsCount
in 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:
getVersionConfigs
in 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:
getVersionConfigsOrBuilder
in 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:
hasUpdateTime
in 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:
getUpdateTime
in 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:
getUpdateTimeOrBuilder
in 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:
hasTestCasesConfig
in 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:
getTestCasesConfig
in 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:
getTestCasesConfigOrBuilder
in interfaceEnvironmentOrBuilder
-
hasWebhookConfig
public boolean hasWebhookConfig()
The webhook configuration for this environment.
.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig webhook_config = 10;
- Specified by:
hasWebhookConfig
in 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:
getWebhookConfig
in 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:
getWebhookConfigOrBuilder
in interfaceEnvironmentOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Environment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Environment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-