Package com.google.cloud.deploy.v1
Class Stage.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Stage.Builder>
com.google.cloud.deploy.v1.Stage.Builder
- All Implemented Interfaces:
StageOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Stage
public static final class Stage.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Stage.Builder>
implements StageOrBuilder
Stage specifies a location to which to deploy.Protobuf type
google.cloud.deploy.v1.Stage-
Method Summary
Modifier and TypeMethodDescriptionaddAllDeployParameters(Iterable<? extends DeployParameters> values) Optional.addAllProfiles(Iterable<String> values) Optional.addDeployParameters(int index, DeployParameters value) Optional.addDeployParameters(int index, DeployParameters.Builder builderForValue) Optional.Optional.addDeployParameters(DeployParameters.Builder builderForValue) Optional.Optional.addDeployParametersBuilder(int index) Optional.addProfiles(String value) Optional.addProfilesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Optional.Optional.getDeployParameters(int index) Optional.getDeployParametersBuilder(int index) Optional.Optional.intOptional.Optional.getDeployParametersOrBuilder(int index) Optional.List<? extends DeployParametersOrBuilder>Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetProfiles(int index) Optional.com.google.protobuf.ByteStringgetProfilesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStrategy(Strategy value) Optional.removeDeployParameters(int index) Optional.setDeployParameters(int index, DeployParameters value) Optional.setDeployParameters(int index, DeployParameters.Builder builderForValue) Optional.setProfiles(int index, String value) Optional.setStrategy(Strategy value) Optional.setStrategy(Strategy.Builder builderForValue) Optional.setTargetId(String value) Optional.setTargetIdBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Stage.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Stage.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Stage.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Stage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Stage.Builder>
-
mergeFrom
public Stage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Stage.Builder>- Throws:
IOException
-
getTargetId
Optional. The target_id to which this stage points. This field refers exclusively to the last segment of a target name. For example, this field would just be `my-target` (rather than `projects/project/locations/location/targets/my-target`). The location of the `Target` is inferred to be the same as the location of the `DeliveryPipeline` that contains this `Stage`.
string target_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTargetIdin interfaceStageOrBuilder- Returns:
- The targetId.
-
getTargetIdBytes
public com.google.protobuf.ByteString getTargetIdBytes()Optional. The target_id to which this stage points. This field refers exclusively to the last segment of a target name. For example, this field would just be `my-target` (rather than `projects/project/locations/location/targets/my-target`). The location of the `Target` is inferred to be the same as the location of the `DeliveryPipeline` that contains this `Stage`.
string target_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTargetIdBytesin interfaceStageOrBuilder- Returns:
- The bytes for targetId.
-
setTargetId
Optional. The target_id to which this stage points. This field refers exclusively to the last segment of a target name. For example, this field would just be `my-target` (rather than `projects/project/locations/location/targets/my-target`). The location of the `Target` is inferred to be the same as the location of the `DeliveryPipeline` that contains this `Stage`.
string target_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The targetId to set.- Returns:
- This builder for chaining.
-
clearTargetId
Optional. The target_id to which this stage points. This field refers exclusively to the last segment of a target name. For example, this field would just be `my-target` (rather than `projects/project/locations/location/targets/my-target`). The location of the `Target` is inferred to be the same as the location of the `DeliveryPipeline` that contains this `Stage`.
string target_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setTargetIdBytes
Optional. The target_id to which this stage points. This field refers exclusively to the last segment of a target name. For example, this field would just be `my-target` (rather than `projects/project/locations/location/targets/my-target`). The location of the `Target` is inferred to be the same as the location of the `DeliveryPipeline` that contains this `Stage`.
string target_id = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for targetId to set.- Returns:
- This builder for chaining.
-
getProfilesList
public com.google.protobuf.ProtocolStringList getProfilesList()Optional. Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProfilesListin interfaceStageOrBuilder- Returns:
- A list containing the profiles.
-
getProfilesCount
public int getProfilesCount()Optional. Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProfilesCountin interfaceStageOrBuilder- Returns:
- The count of profiles.
-
getProfiles
Optional. Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProfilesin interfaceStageOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The profiles at the given index.
-
getProfilesBytes
public com.google.protobuf.ByteString getProfilesBytes(int index) Optional. Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProfilesBytesin interfaceStageOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the profiles at the given index.
-
setProfiles
Optional. Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The profiles to set.- Returns:
- This builder for chaining.
-
addProfiles
Optional. Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The profiles to add.- Returns:
- This builder for chaining.
-
addAllProfiles
Optional. Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The profiles to add.- Returns:
- This builder for chaining.
-
clearProfiles
Optional. Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addProfilesBytes
Optional. Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the profiles to add.- Returns:
- This builder for chaining.
-
hasStrategy
public boolean hasStrategy()Optional. The strategy to use for a `Rollout` to this stage.
.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasStrategyin interfaceStageOrBuilder- Returns:
- Whether the strategy field is set.
-
getStrategy
Optional. The strategy to use for a `Rollout` to this stage.
.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStrategyin interfaceStageOrBuilder- Returns:
- The strategy.
-
setStrategy
Optional. The strategy to use for a `Rollout` to this stage.
.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setStrategy
Optional. The strategy to use for a `Rollout` to this stage.
.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; -
mergeStrategy
Optional. The strategy to use for a `Rollout` to this stage.
.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; -
clearStrategy
Optional. The strategy to use for a `Rollout` to this stage.
.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getStrategyBuilder
Optional. The strategy to use for a `Rollout` to this stage.
.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getStrategyOrBuilder
Optional. The strategy to use for a `Rollout` to this stage.
.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStrategyOrBuilderin interfaceStageOrBuilder
-
getDeployParametersList
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeployParametersListin interfaceStageOrBuilder
-
getDeployParametersCount
public int getDeployParametersCount()Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeployParametersCountin interfaceStageOrBuilder
-
getDeployParameters
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeployParametersin interfaceStageOrBuilder
-
setDeployParameters
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; -
setDeployParameters
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addDeployParameters
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addDeployParameters
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addDeployParameters
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addDeployParameters
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addAllDeployParameters
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearDeployParameters
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; -
removeDeployParameters
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getDeployParametersBuilder
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getDeployParametersOrBuilder
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeployParametersOrBuilderin interfaceStageOrBuilder
-
getDeployParametersOrBuilderList
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeployParametersOrBuilderListin interfaceStageOrBuilder
-
addDeployParametersBuilder
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addDeployParametersBuilder
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getDeployParametersBuilderList
Optional. The deploy parameters to use for the target in this stage.
repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
-