Class LocationIdentifier.Builder (0.1.0)

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

Static 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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LocationIdentifier.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LocationIdentifier.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public LocationIdentifier.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LocationIdentifier.Builder
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];

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public LocationIdentifier.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LocationIdentifier.Builder
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];

Returns
Type Description
LocationIdentifier.Builder

This builder for chaining.

clone()

public LocationIdentifier.Builder clone()
Returns
Type Description
LocationIdentifier.Builder
Overrides

getDefaultInstanceForType()

public LocationIdentifier getDefaultInstanceForType()
Returns
Type Description
LocationIdentifier

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LocationIdentifier.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LocationIdentifier.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LocationIdentifier.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LocationIdentifier.Builder
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
Returns
Type Description
LocationIdentifier.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LocationIdentifier.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LocationIdentifier.Builder
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];

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 LocationLevel

The 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 int

The enum numeric value on the wire for locationLevel to set.

Returns
Type Description
LocationIdentifier.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LocationIdentifier.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LocationIdentifier.Builder
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.

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 ByteString

The bytes for source to set.

Returns
Type Description
LocationIdentifier.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LocationIdentifier.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LocationIdentifier.Builder
Overrides