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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AllocationPolicy.LocationPolicy.Builder> implements AllocationPolicy.LocationPolicyOrBuilder
Protobuf typegoogle.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocationPolicy.LocationPolicy.Builder
addAllAllowedLocations(Iterable<String> values)
A list of allowed location names represented by internal URLs.AllocationPolicy.LocationPolicy.Builder
addAllDeniedLocations(Iterable<String> values)
A list of denied location names.AllocationPolicy.LocationPolicy.Builder
addAllowedLocations(String value)
A list of allowed location names represented by internal URLs.AllocationPolicy.LocationPolicy.Builder
addAllowedLocationsBytes(com.google.protobuf.ByteString value)
A list of allowed location names represented by internal URLs.AllocationPolicy.LocationPolicy.Builder
addDeniedLocations(String value)
A list of denied location names.AllocationPolicy.LocationPolicy.Builder
addDeniedLocationsBytes(com.google.protobuf.ByteString value)
A list of denied location names.AllocationPolicy.LocationPolicy.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocationPolicy.LocationPolicy
build()
AllocationPolicy.LocationPolicy
buildPartial()
AllocationPolicy.LocationPolicy.Builder
clear()
AllocationPolicy.LocationPolicy.Builder
clearAllowedLocations()
A list of allowed location names represented by internal URLs.AllocationPolicy.LocationPolicy.Builder
clearDeniedLocations()
A list of denied location names.AllocationPolicy.LocationPolicy.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AllocationPolicy.LocationPolicy.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AllocationPolicy.LocationPolicy.Builder
clone()
String
getAllowedLocations(int index)
A list of allowed location names represented by internal URLs.com.google.protobuf.ByteString
getAllowedLocationsBytes(int index)
A list of allowed location names represented by internal URLs.int
getAllowedLocationsCount()
A list of allowed location names represented by internal URLs.com.google.protobuf.ProtocolStringList
getAllowedLocationsList()
A list of allowed location names represented by internal URLs.AllocationPolicy.LocationPolicy
getDefaultInstanceForType()
String
getDeniedLocations(int index)
A list of denied location names.com.google.protobuf.ByteString
getDeniedLocationsBytes(int index)
A list of denied location names.int
getDeniedLocationsCount()
A list of denied location names.com.google.protobuf.ProtocolStringList
getDeniedLocationsList()
A list of denied location names.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AllocationPolicy.LocationPolicy.Builder
mergeFrom(AllocationPolicy.LocationPolicy other)
AllocationPolicy.LocationPolicy.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AllocationPolicy.LocationPolicy.Builder
mergeFrom(com.google.protobuf.Message other)
AllocationPolicy.LocationPolicy.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AllocationPolicy.LocationPolicy.Builder
setAllowedLocations(int index, String value)
A list of allowed location names represented by internal URLs.AllocationPolicy.LocationPolicy.Builder
setDeniedLocations(int index, String value)
A list of denied location names.AllocationPolicy.LocationPolicy.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocationPolicy.LocationPolicy.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AllocationPolicy.LocationPolicy.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.LocationPolicy.Builder>
-
clear
public AllocationPolicy.LocationPolicy.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.LocationPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.LocationPolicy.Builder>
-
getDefaultInstanceForType
public AllocationPolicy.LocationPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationPolicy.LocationPolicy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationPolicy.LocationPolicy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationPolicy.LocationPolicy.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.LocationPolicy.Builder>
-
setField
public AllocationPolicy.LocationPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.LocationPolicy.Builder>
-
clearField
public AllocationPolicy.LocationPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.LocationPolicy.Builder>
-
clearOneof
public AllocationPolicy.LocationPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.LocationPolicy.Builder>
-
setRepeatedField
public AllocationPolicy.LocationPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.LocationPolicy.Builder>
-
addRepeatedField
public AllocationPolicy.LocationPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.LocationPolicy.Builder>
-
mergeFrom
public AllocationPolicy.LocationPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.LocationPolicy.Builder>
-
mergeFrom
public AllocationPolicy.LocationPolicy.Builder mergeFrom(AllocationPolicy.LocationPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.LocationPolicy.Builder>
-
mergeFrom
public AllocationPolicy.LocationPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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. All locations end up in different regions would cause errors. For example, ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b", "zones/us-west1-a"] contains 2 regions "us-central1" and "us-west1". An error is expected in this case.
repeated string allowed_locations = 1;
- Specified by:
getAllowedLocationsList
in 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. All locations end up in different regions would cause errors. For example, ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b", "zones/us-west1-a"] contains 2 regions "us-central1" and "us-west1". An error is expected in this case.
repeated string allowed_locations = 1;
- Specified by:
getAllowedLocationsCount
in interfaceAllocationPolicy.LocationPolicyOrBuilder
- Returns:
- The count of allowedLocations.
-
getAllowedLocations
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. All locations end up in different regions would cause errors. For example, ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b", "zones/us-west1-a"] contains 2 regions "us-central1" and "us-west1". An error is expected in this case.
repeated string allowed_locations = 1;
- Specified by:
getAllowedLocations
in 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. All locations end up in different regions would cause errors. For example, ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b", "zones/us-west1-a"] contains 2 regions "us-central1" and "us-west1". An error is expected in this case.
repeated string allowed_locations = 1;
- Specified by:
getAllowedLocationsBytes
in interfaceAllocationPolicy.LocationPolicyOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the allowedLocations at the given index.
-
setAllowedLocations
public AllocationPolicy.LocationPolicy.Builder setAllowedLocations(int index, String 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. All locations end up in different regions would cause errors. For example, ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b", "zones/us-west1-a"] contains 2 regions "us-central1" and "us-west1". An error is expected in this case.
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
public AllocationPolicy.LocationPolicy.Builder addAllowedLocations(String 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. All locations end up in different regions would cause errors. For example, ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b", "zones/us-west1-a"] contains 2 regions "us-central1" and "us-west1". An error is expected in this case.
repeated string allowed_locations = 1;
- Parameters:
value
- The allowedLocations to add.- Returns:
- This builder for chaining.
-
addAllAllowedLocations
public AllocationPolicy.LocationPolicy.Builder addAllAllowedLocations(Iterable<String> values)
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. All locations end up in different regions would cause errors. For example, ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b", "zones/us-west1-a"] contains 2 regions "us-central1" and "us-west1". An error is expected in this case.
repeated string allowed_locations = 1;
- Parameters:
values
- The allowedLocations to add.- Returns:
- This builder for chaining.
-
clearAllowedLocations
public AllocationPolicy.LocationPolicy.Builder 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. All locations end up in different regions would cause errors. For example, ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b", "zones/us-west1-a"] contains 2 regions "us-central1" and "us-west1". An error is expected in this case.
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. All locations end up in different regions would cause errors. For example, ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b", "zones/us-west1-a"] contains 2 regions "us-central1" and "us-west1". An error is expected in this case.
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:
getDeniedLocationsList
in 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:
getDeniedLocationsCount
in interfaceAllocationPolicy.LocationPolicyOrBuilder
- Returns:
- The count of deniedLocations.
-
getDeniedLocations
public String getDeniedLocations(int index)
A list of denied location names. Not yet implemented.
repeated string denied_locations = 2;
- Specified by:
getDeniedLocations
in 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:
getDeniedLocationsBytes
in interfaceAllocationPolicy.LocationPolicyOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the deniedLocations at the given index.
-
setDeniedLocations
public AllocationPolicy.LocationPolicy.Builder setDeniedLocations(int index, String value)
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
public AllocationPolicy.LocationPolicy.Builder addDeniedLocations(String value)
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
public AllocationPolicy.LocationPolicy.Builder addAllDeniedLocations(Iterable<String> values)
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
public AllocationPolicy.LocationPolicy.Builder 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.
-
setUnknownFields
public final AllocationPolicy.LocationPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.LocationPolicy.Builder>
-
mergeUnknownFields
public final AllocationPolicy.LocationPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.LocationPolicy.Builder>
-
-