Package com.google.cloud.batch.v1alpha
Class AllocationPolicy.LocationPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.LocationPolicy.Builder>
com.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy.Builder
- All Implemented Interfaces:
AllocationPolicy.LocationPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AllocationPolicy.LocationPolicy
public static final class AllocationPolicy.LocationPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.LocationPolicy.Builder>
implements AllocationPolicy.LocationPolicyOrBuilder
Protobuf type
google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowedLocations(Iterable<String> values) A list of allowed location names represented by internal URLs.addAllDeniedLocations(Iterable<String> values) A list of denied location names.addAllowedLocations(String value) A list of allowed location names represented by internal URLs.addAllowedLocationsBytes(com.google.protobuf.ByteString value) A list of allowed location names represented by internal URLs.addDeniedLocations(String value) A list of denied location names.addDeniedLocationsBytes(com.google.protobuf.ByteString value) A list of denied location names.build()clear()A list of allowed location names represented by internal URLs.A list of denied location names.getAllowedLocations(int index) A list of allowed location names represented by internal URLs.com.google.protobuf.ByteStringgetAllowedLocationsBytes(int index) A list of allowed location names represented by internal URLs.intA list of allowed location names represented by internal URLs.com.google.protobuf.ProtocolStringListA list of allowed location names represented by internal URLs.getDeniedLocations(int index) A list of denied location names.com.google.protobuf.ByteStringgetDeniedLocationsBytes(int index) A list of denied location names.intA list of denied location names.com.google.protobuf.ProtocolStringListA list of denied location names.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAllowedLocations(int index, String value) A list of allowed location names represented by internal URLs.setDeniedLocations(int index, String value) A list of denied location names.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.LocationPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.LocationPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.LocationPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.LocationPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.LocationPolicy.Builder>
-
mergeFrom
public AllocationPolicy.LocationPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.LocationPolicy.Builder>- Throws:
IOException
-
getAllowedLocationsList
public com.google.protobuf.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;- Specified by:
getAllowedLocationsListin interfaceAllocationPolicy.LocationPolicyOrBuilder- Returns:
- A list containing the allowedLocations.
-
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;- Specified by:
getAllowedLocationsCountin interfaceAllocationPolicy.LocationPolicyOrBuilder- Returns:
- The count of allowedLocations.
-
getAllowedLocations
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;- Specified by:
getAllowedLocationsin interfaceAllocationPolicy.LocationPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedLocations at the given index.
-
getAllowedLocationsBytes
public com.google.protobuf.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;- Specified by:
getAllowedLocationsBytesin interfaceAllocationPolicy.LocationPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowedLocations at the given index.
-
setAllowedLocations
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;- Parameters:
index- The index to set the value at.value- The allowedLocations to set.- Returns:
- This builder for chaining.
-
addAllowedLocations
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;- Parameters:
value- The allowedLocations to add.- Returns:
- This builder for chaining.
-
addAllAllowedLocations
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;- Parameters:
values- The allowedLocations to add.- Returns:
- This builder for chaining.
-
clearAllowedLocations
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:
- This builder for chaining.
-
addAllowedLocationsBytes
public AllocationPolicy.LocationPolicy.Builder addAllowedLocationsBytes(com.google.protobuf.ByteString value) 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;- Parameters:
value- The bytes of the allowedLocations to add.- Returns:
- This builder for chaining.
-
getDeniedLocationsList
public com.google.protobuf.ProtocolStringList getDeniedLocationsList()A list of denied location names. Not yet implemented.
repeated string denied_locations = 2;- Specified by:
getDeniedLocationsListin interfaceAllocationPolicy.LocationPolicyOrBuilder- Returns:
- A list containing the deniedLocations.
-
getDeniedLocationsCount
public int getDeniedLocationsCount()A list of denied location names. Not yet implemented.
repeated string denied_locations = 2;- Specified by:
getDeniedLocationsCountin interfaceAllocationPolicy.LocationPolicyOrBuilder- Returns:
- The count of deniedLocations.
-
getDeniedLocations
A list of denied location names. Not yet implemented.
repeated string denied_locations = 2;- Specified by:
getDeniedLocationsin interfaceAllocationPolicy.LocationPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The deniedLocations at the given index.
-
getDeniedLocationsBytes
public com.google.protobuf.ByteString getDeniedLocationsBytes(int index) A list of denied location names. Not yet implemented.
repeated string denied_locations = 2;- Specified by:
getDeniedLocationsBytesin interfaceAllocationPolicy.LocationPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the deniedLocations at the given index.
-
setDeniedLocations
A list of denied location names. Not yet implemented.
repeated string denied_locations = 2;- Parameters:
index- The index to set the value at.value- The deniedLocations to set.- Returns:
- This builder for chaining.
-
addDeniedLocations
A list of denied location names. Not yet implemented.
repeated string denied_locations = 2;- Parameters:
value- The deniedLocations to add.- Returns:
- This builder for chaining.
-
addAllDeniedLocations
A list of denied location names. Not yet implemented.
repeated string denied_locations = 2;- Parameters:
values- The deniedLocations to add.- Returns:
- This builder for chaining.
-
clearDeniedLocations
A list of denied location names. Not yet implemented.
repeated string denied_locations = 2;- Returns:
- This builder for chaining.
-
addDeniedLocationsBytes
public AllocationPolicy.LocationPolicy.Builder addDeniedLocationsBytes(com.google.protobuf.ByteString value) A list of denied location names. Not yet implemented.
repeated string denied_locations = 2;- Parameters:
value- The bytes of the deniedLocations to add.- Returns:
- This builder for chaining.
-