Class Deployment.Builder (0.60.0)

public static final class Deployment.Builder extends GeneratedMessageV3.Builder<Deployment.Builder> implements DeploymentOrBuilder

Represents a deployment in an environment. A deployment happens when a flow version configured to be active in the environment. You can configure running pre-deployment steps, e.g. running validation test cases, experiment auto-rollout, etc.

Protobuf type google.cloud.dialogflow.cx.v3.Deployment

Implements

DeploymentOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Deployment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Deployment.Builder
Overrides

build()

public Deployment build()
Returns
Type Description
Deployment

buildPartial()

public Deployment buildPartial()
Returns
Type Description
Deployment

clear()

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

clearEndTime()

public Deployment.Builder clearEndTime()

End time of this deployment.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
Deployment.Builder

clearField(Descriptors.FieldDescriptor field)

public Deployment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Deployment.Builder
Overrides

clearFlowVersion()

public Deployment.Builder clearFlowVersion()

The name of the flow version for this deployment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Verion ID>.

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

Returns
Type Description
Deployment.Builder

This builder for chaining.

clearName()

public Deployment.Builder clearName()

The name of the deployment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/deployments/<Deployment ID>.

string name = 1;

Returns
Type Description
Deployment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Deployment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Deployment.Builder
Overrides

clearResult()

public Deployment.Builder clearResult()

Result of the deployment.

.google.cloud.dialogflow.cx.v3.Deployment.Result result = 4;

Returns
Type Description
Deployment.Builder

clearStartTime()

public Deployment.Builder clearStartTime()

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
Deployment.Builder

clearState()

public Deployment.Builder clearState()

The current state of the deployment.

.google.cloud.dialogflow.cx.v3.Deployment.State state = 3;

Returns
Type Description
Deployment.Builder

This builder for chaining.

clone()

public Deployment.Builder clone()
Returns
Type Description
Deployment.Builder
Overrides

getDefaultInstanceForType()

public Deployment getDefaultInstanceForType()
Returns
Type Description
Deployment

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

End time of this deployment.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

End time of this deployment.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

End time of this deployment.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
TimestampOrBuilder

getFlowVersion()

public String getFlowVersion()

The name of the flow version for this deployment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Verion ID>.

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

Returns
Type Description
String

The flowVersion.

getFlowVersionBytes()

public ByteString getFlowVersionBytes()

The name of the flow version for this deployment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Verion ID>.

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

Returns
Type Description
ByteString

The bytes for flowVersion.

getName()

public String getName()

The name of the deployment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/deployments/<Deployment ID>.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the deployment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/deployments/<Deployment ID>.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getResult()

public Deployment.Result getResult()

Result of the deployment.

.google.cloud.dialogflow.cx.v3.Deployment.Result result = 4;

Returns
Type Description
Deployment.Result

The result.

getResultBuilder()

public Deployment.Result.Builder getResultBuilder()

Result of the deployment.

.google.cloud.dialogflow.cx.v3.Deployment.Result result = 4;

Returns
Type Description
Deployment.Result.Builder

getResultOrBuilder()

public Deployment.ResultOrBuilder getResultOrBuilder()

Result of the deployment.

.google.cloud.dialogflow.cx.v3.Deployment.Result result = 4;

Returns
Type Description
Deployment.ResultOrBuilder

getStartTime()

public Timestamp getStartTime()

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
TimestampOrBuilder

getState()

public Deployment.State getState()

The current state of the deployment.

.google.cloud.dialogflow.cx.v3.Deployment.State state = 3;

Returns
Type Description
Deployment.State

The state.

getStateValue()

public int getStateValue()

The current state of the deployment.

.google.cloud.dialogflow.cx.v3.Deployment.State state = 3;

Returns
Type Description
int

The enum numeric value on the wire for state.

hasEndTime()

public boolean hasEndTime()

End time of this deployment.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
boolean

Whether the endTime field is set.

hasResult()

public boolean hasResult()

Result of the deployment.

.google.cloud.dialogflow.cx.v3.Deployment.Result result = 4;

Returns
Type Description
boolean

Whether the result field is set.

hasStartTime()

public boolean hasStartTime()

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public Deployment.Builder mergeEndTime(Timestamp value)

End time of this deployment.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
Deployment.Builder

mergeFrom(Deployment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResult(Deployment.Result value)

public Deployment.Builder mergeResult(Deployment.Result value)

Result of the deployment.

.google.cloud.dialogflow.cx.v3.Deployment.Result result = 4;

Parameter
Name Description
value Deployment.Result
Returns
Type Description
Deployment.Builder

mergeStartTime(Timestamp value)

public Deployment.Builder mergeStartTime(Timestamp value)

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
Deployment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Deployment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Deployment.Builder
Overrides

setEndTime(Timestamp value)

public Deployment.Builder setEndTime(Timestamp value)

End time of this deployment.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
Deployment.Builder

setEndTime(Timestamp.Builder builderForValue)

public Deployment.Builder setEndTime(Timestamp.Builder builderForValue)

End time of this deployment.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Deployment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Deployment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Deployment.Builder
Overrides

setFlowVersion(String value)

public Deployment.Builder setFlowVersion(String value)

The name of the flow version for this deployment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Verion ID>.

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

Parameter
Name Description
value String

The flowVersion to set.

Returns
Type Description
Deployment.Builder

This builder for chaining.

setFlowVersionBytes(ByteString value)

public Deployment.Builder setFlowVersionBytes(ByteString value)

The name of the flow version for this deployment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Verion ID>.

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

Parameter
Name Description
value ByteString

The bytes for flowVersion to set.

Returns
Type Description
Deployment.Builder

This builder for chaining.

setName(String value)

public Deployment.Builder setName(String value)

The name of the deployment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/deployments/<Deployment ID>.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Deployment.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Deployment.Builder setNameBytes(ByteString value)

The name of the deployment. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/deployments/<Deployment ID>.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Deployment.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Deployment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Deployment.Builder
Overrides

setResult(Deployment.Result value)

public Deployment.Builder setResult(Deployment.Result value)

Result of the deployment.

.google.cloud.dialogflow.cx.v3.Deployment.Result result = 4;

Parameter
Name Description
value Deployment.Result
Returns
Type Description
Deployment.Builder

setResult(Deployment.Result.Builder builderForValue)

public Deployment.Builder setResult(Deployment.Result.Builder builderForValue)

Result of the deployment.

.google.cloud.dialogflow.cx.v3.Deployment.Result result = 4;

Parameter
Name Description
builderForValue Deployment.Result.Builder
Returns
Type Description
Deployment.Builder

setStartTime(Timestamp value)

public Deployment.Builder setStartTime(Timestamp value)

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
Deployment.Builder

setStartTime(Timestamp.Builder builderForValue)

public Deployment.Builder setStartTime(Timestamp.Builder builderForValue)

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Deployment.Builder

setState(Deployment.State value)

public Deployment.Builder setState(Deployment.State value)

The current state of the deployment.

.google.cloud.dialogflow.cx.v3.Deployment.State state = 3;

Parameter
Name Description
value Deployment.State

The state to set.

Returns
Type Description
Deployment.Builder

This builder for chaining.

setStateValue(int value)

public Deployment.Builder setStateValue(int value)

The current state of the deployment.

.google.cloud.dialogflow.cx.v3.Deployment.State state = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Deployment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Deployment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Deployment.Builder
Overrides