Class LocationPolicyLocationConstraints (1.31.0)

public final class LocationPolicyLocationConstraints extends GeneratedMessageV3 implements LocationPolicyLocationConstraintsOrBuilder

Per-zone constraints on location policy for this zone.

Protobuf type google.cloud.compute.v1.LocationPolicyLocationConstraints

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > LocationPolicyLocationConstraints

Static Fields

MAX_COUNT_FIELD_NUMBER

public static final int MAX_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LocationPolicyLocationConstraints getDefaultInstance()
Returns
TypeDescription
LocationPolicyLocationConstraints

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static LocationPolicyLocationConstraints.Builder newBuilder()
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder

newBuilder(LocationPolicyLocationConstraints prototype)

public static LocationPolicyLocationConstraints.Builder newBuilder(LocationPolicyLocationConstraints prototype)
Parameter
NameDescription
prototypeLocationPolicyLocationConstraints
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder

parseDelimitedFrom(InputStream input)

public static LocationPolicyLocationConstraints parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LocationPolicyLocationConstraints
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LocationPolicyLocationConstraints parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationPolicyLocationConstraints
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LocationPolicyLocationConstraints parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LocationPolicyLocationConstraints
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LocationPolicyLocationConstraints parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationPolicyLocationConstraints
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LocationPolicyLocationConstraints parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LocationPolicyLocationConstraints
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LocationPolicyLocationConstraints parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationPolicyLocationConstraints
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LocationPolicyLocationConstraints parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LocationPolicyLocationConstraints
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LocationPolicyLocationConstraints parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationPolicyLocationConstraints
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LocationPolicyLocationConstraints parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LocationPolicyLocationConstraints
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LocationPolicyLocationConstraints parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationPolicyLocationConstraints
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LocationPolicyLocationConstraints parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LocationPolicyLocationConstraints
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LocationPolicyLocationConstraints parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationPolicyLocationConstraints
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LocationPolicyLocationConstraints> parser()
Returns
TypeDescription
Parser<LocationPolicyLocationConstraints>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public LocationPolicyLocationConstraints getDefaultInstanceForType()
Returns
TypeDescription
LocationPolicyLocationConstraints

getMaxCount()

public int getMaxCount()

Maximum number of items that are allowed to be placed in this zone. The value must be non-negative.

optional int32 max_count = 287620724;

Returns
TypeDescription
int

The maxCount.

getParserForType()

public Parser<LocationPolicyLocationConstraints> getParserForType()
Returns
TypeDescription
Parser<LocationPolicyLocationConstraints>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasMaxCount()

public boolean hasMaxCount()

Maximum number of items that are allowed to be placed in this zone. The value must be non-negative.

optional int32 max_count = 287620724;

Returns
TypeDescription
boolean

Whether the maxCount field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LocationPolicyLocationConstraints.Builder newBuilderForType()
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LocationPolicyLocationConstraints.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LocationPolicyLocationConstraints.Builder toBuilder()
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException