public static final class AllocationPolicy.LocationPolicy extends GeneratedMessageV3 implements AllocationPolicy.LocationPolicyOrBuilder
Protobuf type google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ALLOWED_LOCATIONS_FIELD_NUMBER
public static final int ALLOWED_LOCATIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DENIED_LOCATIONS_FIELD_NUMBER
public static final int DENIED_LOCATIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static AllocationPolicy.LocationPolicy getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AllocationPolicy.LocationPolicy.Builder newBuilder()
newBuilder(AllocationPolicy.LocationPolicy prototype)
public static AllocationPolicy.LocationPolicy.Builder newBuilder(AllocationPolicy.LocationPolicy prototype)
public static AllocationPolicy.LocationPolicy parseDelimitedFrom(InputStream input)
public static AllocationPolicy.LocationPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AllocationPolicy.LocationPolicy parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AllocationPolicy.LocationPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AllocationPolicy.LocationPolicy parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AllocationPolicy.LocationPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AllocationPolicy.LocationPolicy parseFrom(CodedInputStream input)
public static AllocationPolicy.LocationPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AllocationPolicy.LocationPolicy parseFrom(InputStream input)
public static AllocationPolicy.LocationPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AllocationPolicy.LocationPolicy parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AllocationPolicy.LocationPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AllocationPolicy.LocationPolicy> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAllowedLocations(int index)
public String getAllowedLocations(int index)
A list of allowed location names represented by internal URLs.
Each location can be a region or a zone.
Only one region or multiple zones in one region is supported now.
For example,
["regions/us-central1"] allow VMs in any zones in region us-central1.
["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
in zones us-central1-a and us-central1-c.
Mixing locations from different regions would cause errors.
For example,
["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
"zones/us-west1-a"] contains locations from two distinct regions:
us-central1 and us-west1. This combination will trigger an error.
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.
Each location can be a region or a zone.
Only one region or multiple zones in one region is supported now.
For example,
["regions/us-central1"] allow VMs in any zones in region us-central1.
["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
in zones us-central1-a and us-central1-c.
Mixing locations from different regions would cause errors.
For example,
["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
"zones/us-west1-a"] contains locations from two distinct regions:
us-central1 and us-west1. This combination will trigger an error.
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.
Each location can be a region or a zone.
Only one region or multiple zones in one region is supported now.
For example,
["regions/us-central1"] allow VMs in any zones in region us-central1.
["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
in zones us-central1-a and us-central1-c.
Mixing locations from different regions would cause errors.
For example,
["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
"zones/us-west1-a"] contains locations from two distinct regions:
us-central1 and us-west1. This combination will trigger an error.
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.
Each location can be a region or a zone.
Only one region or multiple zones in one region is supported now.
For example,
["regions/us-central1"] allow VMs in any zones in region us-central1.
["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
in zones us-central1-a and us-central1-c.
Mixing locations from different regions would cause errors.
For example,
["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
"zones/us-west1-a"] contains locations from two distinct regions:
us-central1 and us-west1. This combination will trigger an error.
repeated string allowed_locations = 1;
getDefaultInstanceForType()
public AllocationPolicy.LocationPolicy getDefaultInstanceForType()
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;
getParserForType()
public Parser<AllocationPolicy.LocationPolicy> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AllocationPolicy.LocationPolicy.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AllocationPolicy.LocationPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public AllocationPolicy.LocationPolicy.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides