Class DeployFlowRequest.Builder (0.94.0)

public static final class DeployFlowRequest.Builder extends GeneratedMessage.Builder<DeployFlowRequest.Builder> implements DeployFlowRequestOrBuilder

The request message for Environments.DeployFlow.

Protobuf type google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public DeployFlowRequest build()
Returns
Type Description
DeployFlowRequest

buildPartial()

public DeployFlowRequest buildPartial()
Returns
Type Description
DeployFlowRequest

clear()

public DeployFlowRequest.Builder clear()
Returns
Type Description
DeployFlowRequest.Builder
Overrides

clearEnvironment()

public DeployFlowRequest.Builder clearEnvironment()

Required. The environment to deploy the flow to. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>.

string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
DeployFlowRequest.Builder

This builder for chaining.

clearFlowVersion()

public DeployFlowRequest.Builder clearFlowVersion()

Required. The flow version to deploy. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>.

string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
DeployFlowRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeployFlowRequest getDefaultInstanceForType()
Returns
Type Description
DeployFlowRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnvironment()

public String getEnvironment()

Required. The environment to deploy the flow to. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>.

string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The environment.

getEnvironmentBytes()

public ByteString getEnvironmentBytes()

Required. The environment to deploy the flow to. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>.

string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for environment.

getFlowVersion()

public String getFlowVersion()

Required. The flow version to deploy. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>.

string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The flowVersion.

getFlowVersionBytes()

public ByteString getFlowVersionBytes()

Required. The flow version to deploy. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>.

string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for flowVersion.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeployFlowRequest other)

public DeployFlowRequest.Builder mergeFrom(DeployFlowRequest other)
Parameter
Name Description
other DeployFlowRequest
Returns
Type Description
DeployFlowRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeployFlowRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployFlowRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DeployFlowRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DeployFlowRequest.Builder
Overrides

setEnvironment(String value)

public DeployFlowRequest.Builder setEnvironment(String value)

Required. The environment to deploy the flow to. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>.

string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The environment to set.

Returns
Type Description
DeployFlowRequest.Builder

This builder for chaining.

setEnvironmentBytes(ByteString value)

public DeployFlowRequest.Builder setEnvironmentBytes(ByteString value)

Required. The environment to deploy the flow to. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>.

string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for environment to set.

Returns
Type Description
DeployFlowRequest.Builder

This builder for chaining.

setFlowVersion(String value)

public DeployFlowRequest.Builder setFlowVersion(String value)

Required. The flow version to deploy. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>.

string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The flowVersion to set.

Returns
Type Description
DeployFlowRequest.Builder

This builder for chaining.

setFlowVersionBytes(ByteString value)

public DeployFlowRequest.Builder setFlowVersionBytes(ByteString value)

Required. The flow version to deploy. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>.

string flow_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for flowVersion to set.

Returns
Type Description
DeployFlowRequest.Builder

This builder for chaining.