- 1.63.0 (latest)
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class LocationPolicy.Builder extends 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > LocationPolicy.BuilderImplements
LocationPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LocationPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LocationPolicy.Builder |
build()
public LocationPolicy build()
Type | Description |
LocationPolicy |
buildPartial()
public LocationPolicy buildPartial()
Type | Description |
LocationPolicy |
clear()
public LocationPolicy.Builder clear()
Type | Description |
LocationPolicy.Builder |
clearField(Descriptors.FieldDescriptor field)
public LocationPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
LocationPolicy.Builder |
clearLocations()
public LocationPolicy.Builder clearLocations()
Type | Description |
LocationPolicy.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public LocationPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
LocationPolicy.Builder |
clone()
public LocationPolicy.Builder clone()
Type | Description |
LocationPolicy.Builder |
containsLocations(String key)
public 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;
Name | Description |
key | String |
Type | Description |
boolean |
getDefaultInstanceForType()
public LocationPolicy getDefaultInstanceForType()
Type | Description |
LocationPolicy |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLocations()
public Map<String,LocationPolicyLocation> getLocations()
Use #getLocationsMap() instead.
Type | Description |
Map<String,LocationPolicyLocation> |
getLocationsCount()
public int getLocationsCount()
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;
Type | Description |
int |
getLocationsMap()
public 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;
Type | Description |
Map<String,LocationPolicyLocation> |
getLocationsOrDefault(String key, LocationPolicyLocation defaultValue)
public 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;
Name | Description |
key | String |
defaultValue | LocationPolicyLocation |
Type | Description |
LocationPolicyLocation |
getLocationsOrThrow(String key)
public 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;
Name | Description |
key | String |
Type | Description |
LocationPolicyLocation |
getMutableLocations()
public Map<String,LocationPolicyLocation> getMutableLocations()
Use alternate mutation accessors instead.
Type | Description |
Map<String,LocationPolicyLocation> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(LocationPolicy other)
public LocationPolicy.Builder mergeFrom(LocationPolicy other)
Name | Description |
other | LocationPolicy |
Type | Description |
LocationPolicy.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LocationPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
LocationPolicy.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public LocationPolicy.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
LocationPolicy.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LocationPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LocationPolicy.Builder |
putAllLocations(Map<String,LocationPolicyLocation> values)
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;
Name | Description |
values | Map<String,LocationPolicyLocation> |
Type | Description |
LocationPolicy.Builder |
putLocations(String key, LocationPolicyLocation value)
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;
Name | Description |
key | String |
value | LocationPolicyLocation |
Type | Description |
LocationPolicy.Builder |
removeLocations(String key)
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;
Name | Description |
key | String |
Type | Description |
LocationPolicy.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public LocationPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LocationPolicy.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LocationPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
LocationPolicy.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final LocationPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LocationPolicy.Builder |