Class RolloutRestriction (1.52.0)

public final class RolloutRestriction extends GeneratedMessageV3 implements RolloutRestrictionOrBuilder

Rollout restrictions.

Protobuf type google.cloud.deploy.v1.RolloutRestriction

Static Fields

ACTIONS_FIELD_NUMBER

public static final int ACTIONS_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

INVOKERS_FIELD_NUMBER

public static final int INVOKERS_FIELD_NUMBER
Field Value
Type Description
int

TIME_WINDOWS_FIELD_NUMBER

public static final int TIME_WINDOWS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RolloutRestriction getDefaultInstance()
Returns
Type Description
RolloutRestriction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RolloutRestriction.Builder newBuilder()
Returns
Type Description
RolloutRestriction.Builder

newBuilder(RolloutRestriction prototype)

public static RolloutRestriction.Builder newBuilder(RolloutRestriction prototype)
Parameter
Name Description
prototype RolloutRestriction
Returns
Type Description
RolloutRestriction.Builder

parseDelimitedFrom(InputStream input)

public static RolloutRestriction parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RolloutRestriction
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RolloutRestriction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RolloutRestriction
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RolloutRestriction parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RolloutRestriction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RolloutRestriction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RolloutRestriction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RolloutRestriction parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RolloutRestriction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RolloutRestriction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RolloutRestriction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RolloutRestriction parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RolloutRestriction
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RolloutRestriction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RolloutRestriction
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RolloutRestriction parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RolloutRestriction
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RolloutRestriction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RolloutRestriction
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RolloutRestriction parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RolloutRestriction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RolloutRestriction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RolloutRestriction
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RolloutRestriction> parser()
Returns
Type Description
Parser<RolloutRestriction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getActions(int index)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
RolloutRestriction.RolloutActions

The actions at the given index.

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];

Returns
Type Description
int

The count of actions.

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];

Returns
Type Description
List<RolloutActions>

A list containing the actions.

getActionsValue(int index)

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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of 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];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for actions.

getDefaultInstanceForType()

public RolloutRestriction getDefaultInstanceForType()
Returns
Type Description
RolloutRestriction

getId()

public String getId()

Required. Restriction rule ID. Required and must be unique within a DeployPolicy. The format is a-z?.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Required. Restriction rule ID. Required and must be unique within a DeployPolicy. The format is a-z?.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for id.

getInvokers(int index)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
DeployPolicy.Invoker

The invokers at the given index.

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];

Returns
Type Description
int

The count of invokers.

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];

Returns
Type Description
List<Invoker>

A list containing the invokers.

getInvokersValue(int index)

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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of 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];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for invokers.

getParserForType()

public Parser<RolloutRestriction> getParserForType()
Returns
Type Description
Parser<RolloutRestriction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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];

Returns
Type Description
TimeWindows

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];

Returns
Type Description
TimeWindowsOrBuilder

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];

Returns
Type Description
boolean

Whether the timeWindows field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RolloutRestriction.Builder newBuilderForType()
Returns
Type Description
RolloutRestriction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RolloutRestriction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RolloutRestriction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RolloutRestriction.Builder toBuilder()
Returns
Type Description
RolloutRestriction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException