Class RolloutRestriction

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.deploy.v1.RolloutRestriction
All Implemented Interfaces:
RolloutRestrictionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RolloutRestriction extends com.google.protobuf.GeneratedMessage implements RolloutRestrictionOrBuilder
 Rollout restrictions.
 
Protobuf type google.cloud.deploy.v1.RolloutRestriction
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getId

      public 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];
      Specified by:
      getId in interface RolloutRestrictionOrBuilder
      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:
      getIdBytes in interface RolloutRestrictionOrBuilder
      Returns:
      The bytes for id.
    • getInvokersList

      public 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];
      Specified by:
      getInvokersList in interface RolloutRestrictionOrBuilder
      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:
      getInvokersCount in interface RolloutRestrictionOrBuilder
      Returns:
      The count of invokers.
    • getInvokers

      public DeployPolicy.Invoker getInvokers(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:
      getInvokers in interface RolloutRestrictionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The invokers at the given index.
    • getInvokersValueList

      public List<Integer> 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:
      getInvokersValueList in interface RolloutRestrictionOrBuilder
      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:
      getInvokersValue in interface RolloutRestrictionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of invokers at the given index.
    • getActionsList

      public 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];
      Specified by:
      getActionsList in interface RolloutRestrictionOrBuilder
      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:
      getActionsCount in interface RolloutRestrictionOrBuilder
      Returns:
      The count of actions.
    • getActions

      public RolloutRestriction.RolloutActions getActions(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:
      getActions in interface RolloutRestrictionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The actions at the given index.
    • getActionsValueList

      public List<Integer> 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:
      getActionsValueList in interface RolloutRestrictionOrBuilder
      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:
      getActionsValue in interface RolloutRestrictionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of actions at the given index.
    • 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:
      hasTimeWindows in interface RolloutRestrictionOrBuilder
      Returns:
      Whether the timeWindows field is set.
    • getTimeWindows

      public TimeWindows getTimeWindows()
       Required. Time window within which actions are restricted.
       
      .google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeWindows in interface RolloutRestrictionOrBuilder
      Returns:
      The timeWindows.
    • getTimeWindowsOrBuilder

      public TimeWindowsOrBuilder getTimeWindowsOrBuilder()
       Required. Time window within which actions are restricted.
       
      .google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTimeWindowsOrBuilder in interface RolloutRestrictionOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RolloutRestriction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RolloutRestriction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RolloutRestriction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RolloutRestriction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RolloutRestriction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RolloutRestriction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RolloutRestriction parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RolloutRestriction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RolloutRestriction parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RolloutRestriction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RolloutRestriction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RolloutRestriction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RolloutRestriction.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RolloutRestriction.Builder newBuilder()
    • newBuilder

      public static RolloutRestriction.Builder newBuilder(RolloutRestriction prototype)
    • toBuilder

      public RolloutRestriction.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RolloutRestriction.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RolloutRestriction getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RolloutRestriction> parser()
    • getParserForType

      public com.google.protobuf.Parser<RolloutRestriction> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RolloutRestriction getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder