public static final class LocationIdentifier.Builder extends GeneratedMessageV3.Builder<LocationIdentifier.Builder> implements LocationIdentifierOrBuilder
Identifier for a Google Cloud Platform location.
Protobuf type google.cloud.capacityplanner.v1beta.LocationIdentifier
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllLinkedLocations(Iterable<? extends LocationIdentifier.LinkedLocation> values)
public LocationIdentifier.Builder addAllLinkedLocations(Iterable<? extends LocationIdentifier.LinkedLocation> values)
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation>
|
addLinkedLocations(LocationIdentifier.LinkedLocation value)
public LocationIdentifier.Builder addLinkedLocations(LocationIdentifier.LinkedLocation value)
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
addLinkedLocations(LocationIdentifier.LinkedLocation.Builder builderForValue)
public LocationIdentifier.Builder addLinkedLocations(LocationIdentifier.LinkedLocation.Builder builderForValue)
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
addLinkedLocations(int index, LocationIdentifier.LinkedLocation value)
public LocationIdentifier.Builder addLinkedLocations(int index, LocationIdentifier.LinkedLocation value)
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
addLinkedLocations(int index, LocationIdentifier.LinkedLocation.Builder builderForValue)
public LocationIdentifier.Builder addLinkedLocations(int index, LocationIdentifier.LinkedLocation.Builder builderForValue)
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
addLinkedLocationsBuilder()
public LocationIdentifier.LinkedLocation.Builder addLinkedLocationsBuilder()
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
addLinkedLocationsBuilder(int index)
public LocationIdentifier.LinkedLocation.Builder addLinkedLocationsBuilder(int index)
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LocationIdentifier.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public LocationIdentifier build()
buildPartial()
public LocationIdentifier buildPartial()
clear()
public LocationIdentifier.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public LocationIdentifier.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLinkedLocations()
public LocationIdentifier.Builder clearLinkedLocations()
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
clearLocationLevel()
public LocationIdentifier.Builder clearLocationLevel()
The location level such as a region.
.google.cloud.capacityplanner.v1beta.LocationLevel location_level = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public LocationIdentifier.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSource()
public LocationIdentifier.Builder clearSource()
Required. Location where resource is sourced. For Cloud Storage, the
alphabetically first location is the source.
string source = 2 [(.google.api.field_behavior) = REQUIRED];
clone()
public LocationIdentifier.Builder clone()
Overrides
getDefaultInstanceForType()
public LocationIdentifier getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLinkedLocations(int index)
public LocationIdentifier.LinkedLocation getLinkedLocations(int index)
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getLinkedLocationsBuilder(int index)
public LocationIdentifier.LinkedLocation.Builder getLinkedLocationsBuilder(int index)
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getLinkedLocationsBuilderList()
public List<LocationIdentifier.LinkedLocation.Builder> getLinkedLocationsBuilderList()
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
getLinkedLocationsCount()
public int getLinkedLocationsCount()
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getLinkedLocationsList()
public List<LocationIdentifier.LinkedLocation> getLinkedLocationsList()
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
getLinkedLocationsOrBuilder(int index)
public LocationIdentifier.LinkedLocationOrBuilder getLinkedLocationsOrBuilder(int index)
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getLinkedLocationsOrBuilderList()
public List<? extends LocationIdentifier.LinkedLocationOrBuilder> getLinkedLocationsOrBuilderList()
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocationOrBuilder> |
|
getLocationLevel()
public LocationLevel getLocationLevel()
The location level such as a region.
.google.cloud.capacityplanner.v1beta.LocationLevel location_level = 1;
getLocationLevelValue()
public int getLocationLevelValue()
The location level such as a region.
.google.cloud.capacityplanner.v1beta.LocationLevel location_level = 1;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for locationLevel.
|
getSource()
public String getSource()
Required. Location where resource is sourced. For Cloud Storage, the
alphabetically first location is the source.
string source = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
String |
The source.
|
getSourceBytes()
public ByteString getSourceBytes()
Required. Location where resource is sourced. For Cloud Storage, the
alphabetically first location is the source.
string source = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
ByteString |
The bytes for source.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(LocationIdentifier other)
public LocationIdentifier.Builder mergeFrom(LocationIdentifier other)
public LocationIdentifier.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public LocationIdentifier.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LocationIdentifier.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeLinkedLocations(int index)
public LocationIdentifier.Builder removeLinkedLocations(int index)
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public LocationIdentifier.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLinkedLocations(int index, LocationIdentifier.LinkedLocation value)
public LocationIdentifier.Builder setLinkedLocations(int index, LocationIdentifier.LinkedLocation value)
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
setLinkedLocations(int index, LocationIdentifier.LinkedLocation.Builder builderForValue)
public LocationIdentifier.Builder setLinkedLocations(int index, LocationIdentifier.LinkedLocation.Builder builderForValue)
Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
setLocationLevel(LocationLevel value)
public LocationIdentifier.Builder setLocationLevel(LocationLevel value)
The location level such as a region.
.google.cloud.capacityplanner.v1beta.LocationLevel location_level = 1;
| Parameter |
| Name |
Description |
value |
LocationLevel
The locationLevel to set.
|
setLocationLevelValue(int value)
public LocationIdentifier.Builder setLocationLevelValue(int value)
The location level such as a region.
.google.cloud.capacityplanner.v1beta.LocationLevel location_level = 1;
| Parameter |
| Name |
Description |
value |
int
The enum numeric value on the wire for locationLevel to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LocationIdentifier.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSource(String value)
public LocationIdentifier.Builder setSource(String value)
Required. Location where resource is sourced. For Cloud Storage, the
alphabetically first location is the source.
string source = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
value |
String
The source to set.
|
setSourceBytes(ByteString value)
public LocationIdentifier.Builder setSourceBytes(ByteString value)
Required. Location where resource is sourced. For Cloud Storage, the
alphabetically first location is the source.
string source = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for source to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final LocationIdentifier.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides