public static final class LocationPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder> implements LocationPolicyOrBuilder
Configuration for location policy among multiple possible locations (e.g. preferences for zone selection among zones in a single region).Protobuf type
google.cloud.compute.v1.LocationPolicy| Modifier and Type | Method and Description |
|---|---|
LocationPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
LocationPolicy |
build() |
LocationPolicy |
buildPartial() |
LocationPolicy.Builder |
clear() |
LocationPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
LocationPolicy.Builder |
clearLocations() |
LocationPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
LocationPolicy.Builder |
clearTargetShape()
Strategy for distributing VMs across zones in a region.
|
LocationPolicy.Builder |
clone() |
boolean |
containsLocations(String key)
Location configurations mapped by location name.
|
LocationPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,LocationPolicyLocation> |
getLocations()
Deprecated.
|
int |
getLocationsCount()
Location configurations mapped by location name.
|
Map<String,LocationPolicyLocation> |
getLocationsMap()
Location configurations mapped by location name.
|
LocationPolicyLocation |
getLocationsOrDefault(String key,
LocationPolicyLocation defaultValue)
Location configurations mapped by location name.
|
LocationPolicyLocation |
getLocationsOrThrow(String key)
Location configurations mapped by location name.
|
Map<String,LocationPolicyLocation> |
getMutableLocations()
Deprecated.
|
String |
getTargetShape()
Strategy for distributing VMs across zones in a region.
|
com.google.protobuf.ByteString |
getTargetShapeBytes()
Strategy for distributing VMs across zones in a region.
|
boolean |
hasTargetShape()
Strategy for distributing VMs across zones in a region.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
LocationPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LocationPolicy.Builder |
mergeFrom(LocationPolicy other) |
LocationPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
LocationPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LocationPolicy.Builder |
putAllLocations(Map<String,LocationPolicyLocation> values)
Location configurations mapped by location name.
|
LocationPolicy.Builder |
putLocations(String key,
LocationPolicyLocation value)
Location configurations mapped by location name.
|
LocationPolicy.Builder |
removeLocations(String key)
Location configurations mapped by location name.
|
LocationPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
LocationPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
LocationPolicy.Builder |
setTargetShape(String value)
Strategy for distributing VMs across zones in a region.
|
LocationPolicy.Builder |
setTargetShapeBytes(com.google.protobuf.ByteString value)
Strategy for distributing VMs across zones in a region.
|
LocationPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder>public LocationPolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder>public LocationPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LocationPolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LocationPolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LocationPolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder>public LocationPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder>public LocationPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder>public LocationPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder>public LocationPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder>public LocationPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder>public LocationPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LocationPolicy.Builder>public LocationPolicy.Builder mergeFrom(LocationPolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder>public LocationPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LocationPolicy.Builder>IOExceptionpublic int getLocationsCount()
LocationPolicyOrBuilderLocation configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a.
map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454;
getLocationsCount in interface LocationPolicyOrBuilderpublic boolean containsLocations(String key)
Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a.
map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454;
containsLocations in interface LocationPolicyOrBuilder@Deprecated public Map<String,LocationPolicyLocation> getLocations()
getLocationsMap() instead.getLocations in interface LocationPolicyOrBuilderpublic Map<String,LocationPolicyLocation> getLocationsMap()
Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a.
map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454;
getLocationsMap in interface LocationPolicyOrBuilderpublic LocationPolicyLocation getLocationsOrDefault(String key, LocationPolicyLocation defaultValue)
Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a.
map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454;
getLocationsOrDefault in interface LocationPolicyOrBuilderpublic LocationPolicyLocation getLocationsOrThrow(String key)
Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a.
map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454;
getLocationsOrThrow in interface LocationPolicyOrBuilderpublic LocationPolicy.Builder clearLocations()
public LocationPolicy.Builder removeLocations(String key)
Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a.
map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454;
@Deprecated public Map<String,LocationPolicyLocation> getMutableLocations()
public LocationPolicy.Builder putLocations(String key, LocationPolicyLocation value)
Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a.
map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454;
public LocationPolicy.Builder putAllLocations(Map<String,LocationPolicyLocation> values)
Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a.
map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454;
public boolean hasTargetShape()
Strategy for distributing VMs across zones in a region. Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;hasTargetShape in interface LocationPolicyOrBuilderpublic String getTargetShape()
Strategy for distributing VMs across zones in a region. Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;getTargetShape in interface LocationPolicyOrBuilderpublic com.google.protobuf.ByteString getTargetShapeBytes()
Strategy for distributing VMs across zones in a region. Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;getTargetShapeBytes in interface LocationPolicyOrBuilderpublic LocationPolicy.Builder setTargetShape(String value)
Strategy for distributing VMs across zones in a region. Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;value - The targetShape to set.public LocationPolicy.Builder clearTargetShape()
Strategy for distributing VMs across zones in a region. Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;public LocationPolicy.Builder setTargetShapeBytes(com.google.protobuf.ByteString value)
Strategy for distributing VMs across zones in a region. Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;value - The bytes for targetShape to set.public final LocationPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder>public final LocationPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicy.Builder>Copyright © 2023 Google LLC. All rights reserved.