public static final class LocationIdentifier.Builder extends GeneratedMessage.Builder<LocationIdentifier.Builder> implements LocationIdentifierOrBuilderIdentifier for a Google Cloud Platform location.
Protobuf type google.cloud.capacityplanner.v1beta.LocationIdentifier
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > LocationIdentifier.BuilderImplements
LocationIdentifierOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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> |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
|
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];
| Parameter | |
|---|---|
| Name | Description |
value |
LocationIdentifier.LinkedLocation |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
|
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
LocationIdentifier.LinkedLocation.Builder |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
|
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
LocationIdentifier.LinkedLocation |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
|
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
LocationIdentifier.LinkedLocation.Builder |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.LinkedLocation.Builder |
|
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 |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.LinkedLocation.Builder |
|
build()
public LocationIdentifier build()| Returns | |
|---|---|
| Type | Description |
LocationIdentifier |
|
buildPartial()
public LocationIdentifier buildPartial()| Returns | |
|---|---|
| Type | Description |
LocationIdentifier |
|
clear()
public LocationIdentifier.Builder clear()| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
|
clearLinkedLocations()
public LocationIdentifier.Builder clearLinkedLocations()Optional. Other linked locations.
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
|
clearLocationLevel()
public LocationIdentifier.Builder clearLocationLevel()The location level such as a region.
.google.cloud.capacityplanner.v1beta.LocationLevel location_level = 1;
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
This builder for chaining. |
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];
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public LocationIdentifier getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
LocationIdentifier |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.LinkedLocation |
|
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 |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.LinkedLocation.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
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];
| Returns | |
|---|---|
| Type | Description |
List<LinkedLocation> |
|
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 |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.LinkedLocationOrBuilder |
|
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;
| Returns | |
|---|---|
| Type | Description |
LocationLevel |
The locationLevel. |
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(LocationIdentifier other)
public LocationIdentifier.Builder mergeFrom(LocationIdentifier other)| Parameter | |
|---|---|
| Name | Description |
other |
LocationIdentifier |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LocationIdentifier.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public LocationIdentifier.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
|
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 |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
|
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
LocationIdentifier.LinkedLocation |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
|
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
LocationIdentifier.LinkedLocation.Builder |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
|
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 |
LocationLevelThe locationLevel to set. |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
This builder for chaining. |
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 |
intThe enum numeric value on the wire for locationLevel to set. |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
This builder for chaining. |
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 |
StringThe source to set. |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
This builder for chaining. |
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 |
ByteStringThe bytes for source to set. |
| Returns | |
|---|---|
| Type | Description |
LocationIdentifier.Builder |
This builder for chaining. |