public static final class AllocationPolicy.LocationPolicy extends GeneratedMessageV3 implements AllocationPolicy.LocationPolicyOrBuilder
Protobuf type google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy
Static Fields
ALLOWED_LOCATIONS_FIELD_NUMBER
public static final int ALLOWED_LOCATIONS_FIELD_NUMBER
Field Value
DENIED_LOCATIONS_FIELD_NUMBER
public static final int DENIED_LOCATIONS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AllocationPolicy.LocationPolicy getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AllocationPolicy.LocationPolicy.Builder newBuilder()
Returns
newBuilder(AllocationPolicy.LocationPolicy prototype)
public static AllocationPolicy.LocationPolicy.Builder newBuilder(AllocationPolicy.LocationPolicy prototype)
Parameter
Returns
public static AllocationPolicy.LocationPolicy parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AllocationPolicy.LocationPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AllocationPolicy.LocationPolicy parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AllocationPolicy.LocationPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AllocationPolicy.LocationPolicy parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AllocationPolicy.LocationPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AllocationPolicy.LocationPolicy parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AllocationPolicy.LocationPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AllocationPolicy.LocationPolicy parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AllocationPolicy.LocationPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AllocationPolicy.LocationPolicy parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AllocationPolicy.LocationPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AllocationPolicy.LocationPolicy> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAllowedLocations(int index)
public String getAllowedLocations(int index)
A list of allowed location names represented by internal URLs,
First location in the list must be a region.
for example,
["regions/us-central1"] allow VMs in region us-central1,
["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
us-central1-a.
repeated string allowed_locations = 1;
Parameter
Name |
Description |
index |
int
The index of the element to return.
|
Returns
Type |
Description |
String |
The allowedLocations at the given index.
|
getAllowedLocationsBytes(int index)
public ByteString getAllowedLocationsBytes(int index)
A list of allowed location names represented by internal URLs,
First location in the list must be a region.
for example,
["regions/us-central1"] allow VMs in region us-central1,
["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
us-central1-a.
repeated string allowed_locations = 1;
Parameter
Name |
Description |
index |
int
The index of the value to return.
|
Returns
Type |
Description |
ByteString |
The bytes of the allowedLocations at the given index.
|
getAllowedLocationsCount()
public int getAllowedLocationsCount()
A list of allowed location names represented by internal URLs,
First location in the list must be a region.
for example,
["regions/us-central1"] allow VMs in region us-central1,
["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
us-central1-a.
repeated string allowed_locations = 1;
Returns
Type |
Description |
int |
The count of allowedLocations.
|
getAllowedLocationsList()
public ProtocolStringList getAllowedLocationsList()
A list of allowed location names represented by internal URLs,
First location in the list must be a region.
for example,
["regions/us-central1"] allow VMs in region us-central1,
["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
us-central1-a.
repeated string allowed_locations = 1;
Returns
getDefaultInstanceForType()
public AllocationPolicy.LocationPolicy getDefaultInstanceForType()
Returns
getDeniedLocations(int index)
public String getDeniedLocations(int index)
A list of denied location names.
Not yet implemented.
repeated string denied_locations = 2;
Parameter
Name |
Description |
index |
int
The index of the element to return.
|
Returns
Type |
Description |
String |
The deniedLocations at the given index.
|
getDeniedLocationsBytes(int index)
public ByteString getDeniedLocationsBytes(int index)
A list of denied location names.
Not yet implemented.
repeated string denied_locations = 2;
Parameter
Name |
Description |
index |
int
The index of the value to return.
|
Returns
Type |
Description |
ByteString |
The bytes of the deniedLocations at the given index.
|
getDeniedLocationsCount()
public int getDeniedLocationsCount()
A list of denied location names.
Not yet implemented.
repeated string denied_locations = 2;
Returns
Type |
Description |
int |
The count of deniedLocations.
|
getDeniedLocationsList()
public ProtocolStringList getDeniedLocationsList()
A list of denied location names.
Not yet implemented.
repeated string denied_locations = 2;
Returns
getParserForType()
public Parser<AllocationPolicy.LocationPolicy> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AllocationPolicy.LocationPolicy.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AllocationPolicy.LocationPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AllocationPolicy.LocationPolicy.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions