public static final class Rollout.Builder extends GeneratedMessageV3.Builder<Rollout.Builder> implements RolloutOrBuilder
A Rollout
resource in the Google Cloud Deploy API.
A Rollout
contains information around a specific deployment to a Target
.
Protobuf type google.cloud.deploy.v1.Rollout
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Rollout.BuilderImplements
RolloutOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllPhases(Iterable<? extends Phase> values)
public Rollout.Builder addAllPhases(Iterable<? extends Phase> values)
Output only. The phases that represent the workflows of this Rollout
.
repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
values | Iterable<? extends com.google.cloud.deploy.v1.Phase> |
Type | Description |
Rollout.Builder |
addPhases(Phase value)
public Rollout.Builder addPhases(Phase value)
Output only. The phases that represent the workflows of this Rollout
.
repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Phase |
Type | Description |
Rollout.Builder |
addPhases(Phase.Builder builderForValue)
public Rollout.Builder addPhases(Phase.Builder builderForValue)
Output only. The phases that represent the workflows of this Rollout
.
repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Phase.Builder |
Type | Description |
Rollout.Builder |
addPhases(int index, Phase value)
public Rollout.Builder addPhases(int index, Phase value)
Output only. The phases that represent the workflows of this Rollout
.
repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
value | Phase |
Type | Description |
Rollout.Builder |
addPhases(int index, Phase.Builder builderForValue)
public Rollout.Builder addPhases(int index, Phase.Builder builderForValue)
Output only. The phases that represent the workflows of this Rollout
.
repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
builderForValue | Phase.Builder |
Type | Description |
Rollout.Builder |
addPhasesBuilder()
public Phase.Builder addPhasesBuilder()
Output only. The phases that represent the workflows of this Rollout
.
repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Phase.Builder |
addPhasesBuilder(int index)
public Phase.Builder addPhasesBuilder(int index)
Output only. The phases that represent the workflows of this Rollout
.
repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
index | int |
Type | Description |
Phase.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Rollout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Rollout.Builder |
build()
public Rollout build()
Type | Description |
Rollout |
buildPartial()
public Rollout buildPartial()
Type | Description |
Rollout |
clear()
public Rollout.Builder clear()
Type | Description |
Rollout.Builder |
clearAnnotations()
public Rollout.Builder clearAnnotations()
Type | Description |
Rollout.Builder |
clearApprovalState()
public Rollout.Builder clearApprovalState()
Output only. Approval state of the Rollout
.
.google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Rollout.Builder | This builder for chaining. |
clearApproveTime()
public Rollout.Builder clearApproveTime()
Output only. Time at which the Rollout
was approved.
.google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Rollout.Builder |
clearCreateTime()
public Rollout.Builder clearCreateTime()
Output only. Time at which the Rollout
was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Rollout.Builder |
clearDeployEndTime()
public Rollout.Builder clearDeployEndTime()
Output only. Time at which the Rollout
finished deploying.
.google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Rollout.Builder |
clearDeployFailureCause()
public Rollout.Builder clearDeployFailureCause()
Output only. The reason this rollout failed. This will always be unspecified while the rollout is in progress.
.google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Rollout.Builder | This builder for chaining. |
clearDeployStartTime()
public Rollout.Builder clearDeployStartTime()
Output only. Time at which the Rollout
started deploying.
.google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Rollout.Builder |
clearDeployingBuild()
public Rollout.Builder clearDeployingBuild()
Output only. The resource name of the Cloud Build Build
object that is used to deploy
the Rollout. Format is
projects/{project}/locations/{location}/builds/{build}
.
string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Type | Description |
Rollout.Builder | This builder for chaining. |
clearDescription()
public Rollout.Builder clearDescription()
Description of the Rollout
for user purposes. Max length is 255
characters.
string description = 3;
Type | Description |
Rollout.Builder | This builder for chaining. |
clearEnqueueTime()
public Rollout.Builder clearEnqueueTime()
Output only. Time at which the Rollout
was enqueued.
.google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Rollout.Builder |
clearEtag()
public Rollout.Builder clearEtag()
This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
string etag = 16;
Type | Description |
Rollout.Builder | This builder for chaining. |
clearFailureReason()
public Rollout.Builder clearFailureReason()
Output only. Additional information about the rollout failure, if available.
string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Rollout.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Rollout.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Rollout.Builder |
clearLabels()
public Rollout.Builder clearLabels()
Type | Description |
Rollout.Builder |
clearMetadata()
public Rollout.Builder clearMetadata()
Output only. Metadata contains information about the rollout.
.google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Rollout.Builder |
clearName()
public Rollout.Builder clearName()
Optional. Name of the Rollout
. Format is projects/{project}/
locations/{location}/deliveryPipelines/{deliveryPipeline}/
releases/{release}/rollouts/a-z{0,62}.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Rollout.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Rollout.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Rollout.Builder |
clearPhases()
public Rollout.Builder clearPhases()
Output only. The phases that represent the workflows of this Rollout
.
repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Rollout.Builder |
clearState()
public Rollout.Builder clearState()
Output only. Current state of the Rollout
.
.google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Rollout.Builder | This builder for chaining. |
clearTargetId()
public Rollout.Builder clearTargetId()
Required. The ID of Target to which this Rollout
is deploying.
string target_id = 18 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Rollout.Builder | This builder for chaining. |
clearUid()
public Rollout.Builder clearUid()
Output only. Unique identifier of the Rollout
.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Rollout.Builder | This builder for chaining. |
clone()
public Rollout.Builder clone()
Type | Description |
Rollout.Builder |
containsAnnotations(String key)
public boolean containsAnnotations(String key)
User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
map<string, string> annotations = 4;
Name | Description |
key | String |
Type | Description |
boolean |
containsLabels(String key)
public boolean containsLabels(String key)
Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints:
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
- All characters must use UTF-8 encoding, and international characters are allowed.
- Keys must start with a lowercase letter or international character.
- Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
map<string, string> labels = 5;
Name | Description |
key | String |
Type | Description |
boolean |
getAnnotations()
public Map<String,String> getAnnotations()
Use #getAnnotationsMap() instead.
Type | Description |
Map<String,String> |
getAnnotationsCount()
public int getAnnotationsCount()
User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
map<string, string> annotations = 4;
Type | Description |
int |
getAnnotationsMap()
public Map<String,String> getAnnotationsMap()
User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
map<string, string> annotations = 4;
Type | Description |
Map<String,String> |
getAnnotationsOrDefault(String key, String defaultValue)
public String getAnnotationsOrDefault(String key, String defaultValue)
User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
map<string, string> annotations = 4;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getAnnotationsOrThrow(String key)
public String getAnnotationsOrThrow(String key)
User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
map<string, string> annotations = 4;
Name | Description |
key | String |
Type | Description |
String |
getApprovalState()
public Rollout.ApprovalState getApprovalState()
Output only. Approval state of the Rollout
.
.google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Rollout.ApprovalState | The approvalState. |
getApprovalStateValue()
public int getApprovalStateValue()
Output only. Approval state of the Rollout
.
.google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
int | The enum numeric value on the wire for approvalState. |
getApproveTime()
public Timestamp getApproveTime()
Output only. Time at which the Rollout
was approved.
.google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The approveTime. |
getApproveTimeBuilder()
public Timestamp.Builder getApproveTimeBuilder()
Output only. Time at which the Rollout
was approved.
.google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getApproveTimeOrBuilder()
public TimestampOrBuilder getApproveTimeOrBuilder()
Output only. Time at which the Rollout
was approved.
.google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getCreateTime()
public Timestamp getCreateTime()
Output only. Time at which the Rollout
was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. Time at which the Rollout
was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time at which the Rollout
was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Rollout getDefaultInstanceForType()
Type | Description |
Rollout |
getDeployEndTime()
public Timestamp getDeployEndTime()
Output only. Time at which the Rollout
finished deploying.
.google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The deployEndTime. |
getDeployEndTimeBuilder()
public Timestamp.Builder getDeployEndTimeBuilder()
Output only. Time at which the Rollout
finished deploying.
.google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getDeployEndTimeOrBuilder()
public TimestampOrBuilder getDeployEndTimeOrBuilder()
Output only. Time at which the Rollout
finished deploying.
.google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |