Package com.google.cloud.deploy.v1
Class RolloutRestriction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RolloutRestriction.Builder>
com.google.cloud.deploy.v1.RolloutRestriction.Builder
- All Implemented Interfaces:
RolloutRestrictionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RolloutRestriction
public static final class RolloutRestriction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RolloutRestriction.Builder>
implements RolloutRestrictionOrBuilder
Rollout restrictions.Protobuf type
google.cloud.deploy.v1.RolloutRestriction-
Method Summary
Modifier and TypeMethodDescriptionOptional.addActionsValue(int value) Optional.addAllActions(Iterable<? extends RolloutRestriction.RolloutActions> values) Optional.addAllActionsValue(Iterable<Integer> values) Optional.addAllInvokers(Iterable<? extends DeployPolicy.Invoker> values) Optional.addAllInvokersValue(Iterable<Integer> values) Optional.addInvokers(DeployPolicy.Invoker value) Optional.addInvokersValue(int value) Optional.build()clear()Optional.clearId()Required.Optional.Required.getActions(int index) Optional.intOptional.Optional.intgetActionsValue(int index) Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()Required.com.google.protobuf.ByteStringRequired.getInvokers(int index) Optional.intOptional.Optional.intgetInvokersValue(int index) Optional.Optional.Required.Required.Required.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RolloutRestriction other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTimeWindows(TimeWindows value) Required.setActions(int index, RolloutRestriction.RolloutActions value) Optional.setActionsValue(int index, int value) Optional.Required.setIdBytes(com.google.protobuf.ByteString value) Required.setInvokers(int index, DeployPolicy.Invoker value) Optional.setInvokersValue(int index, int value) Optional.setTimeWindows(TimeWindows value) Required.setTimeWindows(TimeWindows.Builder builderForValue) Required.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<RolloutRestriction.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<RolloutRestriction.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<RolloutRestriction.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<RolloutRestriction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RolloutRestriction.Builder>
-
mergeFrom
public RolloutRestriction.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<RolloutRestriction.Builder>- Throws:
IOException
-
getId
Required. Restriction rule ID. Required and must be unique within a DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.string id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIdin interfaceRolloutRestrictionOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Required. Restriction rule ID. Required and must be unique within a DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.string id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIdBytesin interfaceRolloutRestrictionOrBuilder- Returns:
- The bytes for id.
-
setId
Required. Restriction rule ID. Required and must be unique within a DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.string id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Required. Restriction rule ID. Required and must be unique within a DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.string id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setIdBytes
Required. Restriction rule ID. Required and must be unique within a DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.string id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getInvokersList
Optional. What invoked the action. If left empty, all invoker types will be restricted.
repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInvokersListin interfaceRolloutRestrictionOrBuilder- Returns:
- A list containing the invokers.
-
getInvokersCount
public int getInvokersCount()Optional. What invoked the action. If left empty, all invoker types will be restricted.
repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInvokersCountin interfaceRolloutRestrictionOrBuilder- Returns:
- The count of invokers.
-
getInvokers
Optional. What invoked the action. If left empty, all invoker types will be restricted.
repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInvokersin interfaceRolloutRestrictionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The invokers at the given index.
-
setInvokers
Optional. What invoked the action. If left empty, all invoker types will be restricted.
repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The invokers to set.- Returns:
- This builder for chaining.
-
addInvokers
Optional. What invoked the action. If left empty, all invoker types will be restricted.
repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The invokers to add.- Returns:
- This builder for chaining.
-
addAllInvokers
Optional. What invoked the action. If left empty, all invoker types will be restricted.
repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The invokers to add.- Returns:
- This builder for chaining.
-
clearInvokers
Optional. What invoked the action. If left empty, all invoker types will be restricted.
repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getInvokersValueList
Optional. What invoked the action. If left empty, all invoker types will be restricted.
repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInvokersValueListin interfaceRolloutRestrictionOrBuilder- Returns:
- A list containing the enum numeric values on the wire for invokers.
-
getInvokersValue
public int getInvokersValue(int index) Optional. What invoked the action. If left empty, all invoker types will be restricted.
repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInvokersValuein interfaceRolloutRestrictionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of invokers at the given index.
-
setInvokersValue
Optional. What invoked the action. If left empty, all invoker types will be restricted.
repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for invokers to set.- Returns:
- This builder for chaining.
-
addInvokersValue
Optional. What invoked the action. If left empty, all invoker types will be restricted.
repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for invokers to add.- Returns:
- This builder for chaining.
-
addAllInvokersValue
Optional. What invoked the action. If left empty, all invoker types will be restricted.
repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The enum numeric values on the wire for invokers to add.- Returns:
- This builder for chaining.
-
getActionsList
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted.
repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActionsListin interfaceRolloutRestrictionOrBuilder- Returns:
- A list containing the actions.
-
getActionsCount
public int getActionsCount()Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted.
repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActionsCountin interfaceRolloutRestrictionOrBuilder- Returns:
- The count of actions.
-
getActions
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted.
repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActionsin interfaceRolloutRestrictionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The actions at the given index.
-
setActions
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted.
repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The actions to set.- Returns:
- This builder for chaining.
-
addActions
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted.
repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The actions to add.- Returns:
- This builder for chaining.
-
addAllActions
public RolloutRestriction.Builder addAllActions(Iterable<? extends RolloutRestriction.RolloutActions> values) Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted.
repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The actions to add.- Returns:
- This builder for chaining.
-
clearActions
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted.
repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getActionsValueList
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted.
repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActionsValueListin interfaceRolloutRestrictionOrBuilder- Returns:
- A list containing the enum numeric values on the wire for actions.
-
getActionsValue
public int getActionsValue(int index) Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted.
repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActionsValuein interfaceRolloutRestrictionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of actions at the given index.
-
setActionsValue
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted.
repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for actions to set.- Returns:
- This builder for chaining.
-
addActionsValue
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted.
repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for actions to add.- Returns:
- This builder for chaining.
-
addAllActionsValue
Optional. Rollout actions to be restricted as part of the policy. If left empty, all actions will be restricted.
repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The enum numeric values on the wire for actions to add.- Returns:
- This builder for chaining.
-
hasTimeWindows
public boolean hasTimeWindows()Required. Time window within which actions are restricted.
.google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasTimeWindowsin interfaceRolloutRestrictionOrBuilder- Returns:
- Whether the timeWindows field is set.
-
getTimeWindows
Required. Time window within which actions are restricted.
.google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTimeWindowsin interfaceRolloutRestrictionOrBuilder- Returns:
- The timeWindows.
-
setTimeWindows
Required. Time window within which actions are restricted.
.google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED]; -
setTimeWindows
Required. Time window within which actions are restricted.
.google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED]; -
mergeTimeWindows
Required. Time window within which actions are restricted.
.google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED]; -
clearTimeWindows
Required. Time window within which actions are restricted.
.google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED]; -
getTimeWindowsBuilder
Required. Time window within which actions are restricted.
.google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED]; -
getTimeWindowsOrBuilder
Required. Time window within which actions are restricted.
.google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTimeWindowsOrBuilderin interfaceRolloutRestrictionOrBuilder
-