Class Deployment.Builder (0.14.0)

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

Represents an 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.v3beta1.Deployment

Implements

DeploymentOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Deployment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Deployment.Builder
Overrides

build()

public Deployment build()
Returns
TypeDescription
Deployment

buildPartial()

public Deployment buildPartial()
Returns
TypeDescription
Deployment

clear()

public Deployment.Builder clear()
Returns
TypeDescription
Deployment.Builder
Overrides

clearEndTime()

public Deployment.Builder clearEndTime()

End time of this deployment.

.google.protobuf.Timestamp end_time = 6;

Returns
TypeDescription
Deployment.Builder

clearField(Descriptors.FieldDescriptor field)

public Deployment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Deployment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Deployment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Deployment.Builder
Overrides

clearResult()

public Deployment.Builder clearResult()

Result of the deployment.

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

Returns
TypeDescription
Deployment.Builder

clearStartTime()

public Deployment.Builder clearStartTime()

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Returns
TypeDescription
Deployment.Builder

clearState()

public Deployment.Builder clearState()

The current state of the deployment.

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

Returns
TypeDescription
Deployment.Builder

This builder for chaining.

clone()

public Deployment.Builder clone()
Returns
TypeDescription
Deployment.Builder
Overrides

getDefaultInstanceForType()

public Deployment getDefaultInstanceForType()
Returns
TypeDescription
Deployment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

End time of this deployment.

.google.protobuf.Timestamp end_time = 6;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

End time of this deployment.

.google.protobuf.Timestamp end_time = 6;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

End time of this deployment.

.google.protobuf.Timestamp end_time = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getResult()

public Deployment.Result getResult()

Result of the deployment.

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

Returns
TypeDescription
Deployment.Result

The result.

getResultBuilder()

public Deployment.Result.Builder getResultBuilder()

Result of the deployment.

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

Returns
TypeDescription
Deployment.Result.Builder

getResultOrBuilder()

public Deployment.ResultOrBuilder getResultOrBuilder()

Result of the deployment.

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

Returns
TypeDescription
Deployment.ResultOrBuilder

getStartTime()

public Timestamp getStartTime()

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getState()

public Deployment.State getState()

The current state of the deployment.

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

Returns
TypeDescription
Deployment.State

The state.

getStateValue()

public int getStateValue()

The current state of the deployment.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the endTime field is set.

hasResult()

public boolean hasResult()

Result of the deployment.

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

Returns
TypeDescription
boolean

Whether the result field is set.

hasStartTime()

public boolean hasStartTime()

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEndTime(Timestamp value)

public Deployment.Builder mergeEndTime(Timestamp value)

End time of this deployment.

.google.protobuf.Timestamp end_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Deployment.Builder

mergeFrom(Deployment other)

public Deployment.Builder mergeFrom(Deployment other)
Parameter
NameDescription
otherDeployment
Returns
TypeDescription
Deployment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Deployment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Deployment.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Deployment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Deployment.Builder
Overrides

mergeResult(Deployment.Result value)

public Deployment.Builder mergeResult(Deployment.Result value)

Result of the deployment.

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

Parameter
NameDescription
valueDeployment.Result
Returns
TypeDescription
Deployment.Builder

mergeStartTime(Timestamp value)

public Deployment.Builder mergeStartTime(Timestamp value)

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Deployment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Deployment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Deployment.Builder
Overrides

setEndTime(Timestamp value)

public Deployment.Builder setEndTime(Timestamp value)

End time of this deployment.

.google.protobuf.Timestamp end_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Deployment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Deployment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The flowVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for flowVersion to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Deployment.Builder
Overrides

setResult(Deployment.Result value)

public Deployment.Builder setResult(Deployment.Result value)

Result of the deployment.

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

Parameter
NameDescription
valueDeployment.Result
Returns
TypeDescription
Deployment.Builder

setResult(Deployment.Result.Builder builderForValue)

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

Result of the deployment.

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

Parameter
NameDescription
builderForValueDeployment.Result.Builder
Returns
TypeDescription
Deployment.Builder

setStartTime(Timestamp value)

public Deployment.Builder setStartTime(Timestamp value)

Start time of this deployment.

.google.protobuf.Timestamp start_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Deployment.Builder

setState(Deployment.State value)

public Deployment.Builder setState(Deployment.State value)

The current state of the deployment.

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

Parameter
NameDescription
valueDeployment.State

The state to set.

Returns
TypeDescription
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.v3beta1.Deployment.State state = 3;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Deployment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Deployment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Deployment.Builder
Overrides