Class LocationPolicyLocation (1.44.0)

public final class LocationPolicyLocation extends GeneratedMessageV3 implements LocationPolicyLocationOrBuilder

Protobuf type google.cloud.compute.v1.LocationPolicyLocation

Static Fields

CONSTRAINTS_FIELD_NUMBER

public static final int CONSTRAINTS_FIELD_NUMBER
Field Value
TypeDescription
int

PREFERENCE_FIELD_NUMBER

public static final int PREFERENCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LocationPolicyLocation getDefaultInstance()
Returns
TypeDescription
LocationPolicyLocation

getDescriptor()

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

newBuilder()

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

newBuilder(LocationPolicyLocation prototype)

public static LocationPolicyLocation.Builder newBuilder(LocationPolicyLocation prototype)
Parameter
NameDescription
prototypeLocationPolicyLocation
Returns
TypeDescription
LocationPolicyLocation.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getConstraints()

public LocationPolicyLocationConstraints getConstraints()

Constraints that the caller requires on the result distribution in this zone.

optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;

Returns
TypeDescription
LocationPolicyLocationConstraints

The constraints.

getConstraintsOrBuilder()

public LocationPolicyLocationConstraintsOrBuilder getConstraintsOrBuilder()

Constraints that the caller requires on the result distribution in this zone.

optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;

Returns
TypeDescription
LocationPolicyLocationConstraintsOrBuilder

getDefaultInstanceForType()

public LocationPolicyLocation getDefaultInstanceForType()
Returns
TypeDescription
LocationPolicyLocation

getParserForType()

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

getPreference()

public String getPreference()

Preference for a given location. Set to either ALLOW or DENY. Check the Preference enum for the list of possible values.

optional string preference = 150781147;

Returns
TypeDescription
String

The preference.

getPreferenceBytes()

public ByteString getPreferenceBytes()

Preference for a given location. Set to either ALLOW or DENY. Check the Preference enum for the list of possible values.

optional string preference = 150781147;

Returns
TypeDescription
ByteString

The bytes for preference.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasConstraints()

public boolean hasConstraints()

Constraints that the caller requires on the result distribution in this zone.

optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174;

Returns
TypeDescription
boolean

Whether the constraints field is set.

hasPreference()

public boolean hasPreference()

Preference for a given location. Set to either ALLOW or DENY. Check the Preference enum for the list of possible values.

optional string preference = 150781147;

Returns
TypeDescription
boolean

Whether the preference 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 LocationPolicyLocation.Builder newBuilderForType()
Returns
TypeDescription
LocationPolicyLocation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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