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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Stage.Builder> implements StageOrBuilder
Stage specifies a location to which to deploy.
Protobuf typegoogle.cloud.deploy.v1.Stage
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stage.BuilderaddAllDeployParameters(Iterable<? extends DeployParameters> values)Optional.Stage.BuilderaddAllProfiles(Iterable<String> values)Skaffold profiles to use when rendering the manifest for this stage's `Target`.Stage.BuilderaddDeployParameters(int index, DeployParameters value)Optional.Stage.BuilderaddDeployParameters(int index, DeployParameters.Builder builderForValue)Optional.Stage.BuilderaddDeployParameters(DeployParameters value)Optional.Stage.BuilderaddDeployParameters(DeployParameters.Builder builderForValue)Optional.DeployParameters.BuilderaddDeployParametersBuilder()Optional.DeployParameters.BuilderaddDeployParametersBuilder(int index)Optional.Stage.BuilderaddProfiles(String value)Skaffold profiles to use when rendering the manifest for this stage's `Target`.Stage.BuilderaddProfilesBytes(com.google.protobuf.ByteString value)Skaffold profiles to use when rendering the manifest for this stage's `Target`.Stage.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Stagebuild()StagebuildPartial()Stage.Builderclear()Stage.BuilderclearDeployParameters()Optional.Stage.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Stage.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Stage.BuilderclearProfiles()Skaffold profiles to use when rendering the manifest for this stage's `Target`.Stage.BuilderclearStrategy()Optional.Stage.BuilderclearTargetId()The target_id to which this stage points.Stage.Builderclone()StagegetDefaultInstanceForType()DeployParametersgetDeployParameters(int index)Optional.DeployParameters.BuildergetDeployParametersBuilder(int index)Optional.List<DeployParameters.Builder>getDeployParametersBuilderList()Optional.intgetDeployParametersCount()Optional.List<DeployParameters>getDeployParametersList()Optional.DeployParametersOrBuildergetDeployParametersOrBuilder(int index)Optional.List<? extends DeployParametersOrBuilder>getDeployParametersOrBuilderList()Optional.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetProfiles(int index)Skaffold profiles to use when rendering the manifest for this stage's `Target`.com.google.protobuf.ByteStringgetProfilesBytes(int index)Skaffold profiles to use when rendering the manifest for this stage's `Target`.intgetProfilesCount()Skaffold profiles to use when rendering the manifest for this stage's `Target`.com.google.protobuf.ProtocolStringListgetProfilesList()Skaffold profiles to use when rendering the manifest for this stage's `Target`.StrategygetStrategy()Optional.Strategy.BuildergetStrategyBuilder()Optional.StrategyOrBuildergetStrategyOrBuilder()Optional.StringgetTargetId()The target_id to which this stage points.com.google.protobuf.ByteStringgetTargetIdBytes()The target_id to which this stage points.booleanhasStrategy()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Stage.BuildermergeFrom(Stage other)Stage.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Stage.BuildermergeFrom(com.google.protobuf.Message other)Stage.BuildermergeStrategy(Strategy value)Optional.Stage.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Stage.BuilderremoveDeployParameters(int index)Optional.Stage.BuildersetDeployParameters(int index, DeployParameters value)Optional.Stage.BuildersetDeployParameters(int index, DeployParameters.Builder builderForValue)Optional.Stage.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Stage.BuildersetProfiles(int index, String value)Skaffold profiles to use when rendering the manifest for this stage's `Target`.Stage.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Stage.BuildersetStrategy(Strategy value)Optional.Stage.BuildersetStrategy(Strategy.Builder builderForValue)Optional.Stage.BuildersetTargetId(String value)The target_id to which this stage points.Stage.BuildersetTargetIdBytes(com.google.protobuf.ByteString value)The target_id to which this stage points.Stage.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Stage.Builder>
-
clear
public Stage.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Stage.Builder>
-
getDefaultInstanceForType
public Stage getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Stage build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Stage buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Stage.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Stage.Builder>
-
setField
public Stage.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Stage.Builder>
-
clearField
public Stage.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Stage.Builder>
-
clearOneof
public Stage.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Stage.Builder>
-
setRepeatedField
public Stage.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Stage.Builder>
-
addRepeatedField
public Stage.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Stage.Builder>
-
mergeFrom
public Stage.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Stage.Builder>
-
mergeFrom
public Stage.Builder mergeFrom(Stage other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String getTargetId()
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;- Specified by:
getTargetIdin interfaceStageOrBuilder- Returns:
- The targetId.
-
getTargetIdBytes
public com.google.protobuf.ByteString getTargetIdBytes()
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;- Specified by:
getTargetIdBytesin interfaceStageOrBuilder- Returns:
- The bytes for targetId.
-
setTargetId
public Stage.Builder setTargetId(String value)
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;- Parameters:
value- The targetId to set.- Returns:
- This builder for chaining.
-
clearTargetId
public Stage.Builder clearTargetId()
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;- Returns:
- This builder for chaining.
-
setTargetIdBytes
public Stage.Builder setTargetIdBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for targetId to set.- Returns:
- This builder for chaining.
-
getProfilesList
public com.google.protobuf.ProtocolStringList getProfilesList()
Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2;- Specified by:
getProfilesListin interfaceStageOrBuilder- Returns:
- A list containing the profiles.
-
getProfilesCount
public int getProfilesCount()
Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2;- Specified by:
getProfilesCountin interfaceStageOrBuilder- Returns:
- The count of profiles.
-
getProfiles
public String getProfiles(int index)
Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2;- 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)
Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2;- Specified by:
getProfilesBytesin interfaceStageOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the profiles at the given index.
-
setProfiles
public Stage.Builder setProfiles(int index, String value)
Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2;- Parameters:
index- The index to set the value at.value- The profiles to set.- Returns:
- This builder for chaining.
-
addProfiles
public Stage.Builder addProfiles(String value)
Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2;- Parameters:
value- The profiles to add.- Returns:
- This builder for chaining.
-
addAllProfiles
public Stage.Builder addAllProfiles(Iterable<String> values)
Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2;- Parameters:
values- The profiles to add.- Returns:
- This builder for chaining.
-
clearProfiles
public Stage.Builder clearProfiles()
Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2;- Returns:
- This builder for chaining.
-
addProfilesBytes
public Stage.Builder addProfilesBytes(com.google.protobuf.ByteString value)
Skaffold profiles to use when rendering the manifest for this stage's `Target`.
repeated string profiles = 2;- 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
public Strategy 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
public Stage.Builder setStrategy(Strategy value)
Optional. The strategy to use for a `Rollout` to this stage.
.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
-
setStrategy
public Stage.Builder setStrategy(Strategy.Builder builderForValue)
Optional. The strategy to use for a `Rollout` to this stage.
.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
-
mergeStrategy
public Stage.Builder mergeStrategy(Strategy value)
Optional. The strategy to use for a `Rollout` to this stage.
.google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
-
clearStrategy
public Stage.Builder 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
public Strategy.Builder 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
public StrategyOrBuilder 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
public List<DeployParameters> 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
public DeployParameters getDeployParameters(int index)
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
public Stage.Builder setDeployParameters(int index, DeployParameters value)
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
public Stage.Builder setDeployParameters(int index, DeployParameters.Builder builderForValue)
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
public Stage.Builder addDeployParameters(DeployParameters value)
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
public Stage.Builder addDeployParameters(int index, DeployParameters value)
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
public Stage.Builder addDeployParameters(DeployParameters.Builder builderForValue)
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
public Stage.Builder addDeployParameters(int index, DeployParameters.Builder builderForValue)
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
public Stage.Builder addAllDeployParameters(Iterable<? extends DeployParameters> values)
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
public Stage.Builder 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
public Stage.Builder removeDeployParameters(int index)
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
public DeployParameters.Builder getDeployParametersBuilder(int index)
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
public DeployParametersOrBuilder getDeployParametersOrBuilder(int index)
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
public List<? extends DeployParametersOrBuilder> 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
public DeployParameters.Builder 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
public DeployParameters.Builder addDeployParametersBuilder(int index)
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
public List<DeployParameters.Builder> 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];
-
setUnknownFields
public final Stage.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Stage.Builder>
-
mergeUnknownFields
public final Stage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Stage.Builder>
-
-