Package com.google.cloud.deploy.v1
Interface RolloutRestrictionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RolloutRestriction,RolloutRestriction.Builder
@Generated
public interface RolloutRestrictionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetActions(int index) Optional.intOptional.Optional.intgetActionsValue(int index) Optional.Optional.getId()Required.com.google.protobuf.ByteStringRequired.getInvokers(int index) Optional.intOptional.Optional.intgetInvokersValue(int index) Optional.Optional.Required.Required.booleanRequired.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getId
String 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];- Returns:
- The id.
-
getIdBytes
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];- Returns:
- The bytes for id.
-
getInvokersList
List<DeployPolicy.Invoker> 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];- Returns:
- A list containing the invokers.
-
getInvokersCount
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];- 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];- Parameters:
index- The index of the element to return.- Returns:
- The invokers at the given index.
-
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];- Returns:
- A list containing the enum numeric values on the wire for invokers.
-
getInvokersValue
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];- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of invokers at the given index.
-
getActionsList
List<RolloutRestriction.RolloutActions> 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];- Returns:
- A list containing the actions.
-
getActionsCount
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];- 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];- Parameters:
index- The index of the element to return.- Returns:
- The actions at the given index.
-
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];- Returns:
- A list containing the enum numeric values on the wire for actions.
-
getActionsValue
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];- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of actions at the given index.
-
hasTimeWindows
boolean hasTimeWindows()Required. Time window within which actions are restricted.
.google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the timeWindows field is set.
-
getTimeWindows
TimeWindows getTimeWindows()Required. Time window within which actions are restricted.
.google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The timeWindows.
-
getTimeWindowsOrBuilder
TimeWindowsOrBuilder getTimeWindowsOrBuilder()Required. Time window within which actions are restricted.
.google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED];
-