Class LocationIdentifier.LinkedLocation.Builder (0.1.0)

public static final class LocationIdentifier.LinkedLocation.Builder extends GeneratedMessageV3.Builder<LocationIdentifier.LinkedLocation.Builder> implements LocationIdentifier.LinkedLocationOrBuilder

Protobuf type google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LocationIdentifier.LinkedLocation build()
Returns
Type Description
LocationIdentifier.LinkedLocation

buildPartial()

public LocationIdentifier.LinkedLocation buildPartial()
Returns
Type Description
LocationIdentifier.LinkedLocation

clear()

public LocationIdentifier.LinkedLocation.Builder clear()
Returns
Type Description
LocationIdentifier.LinkedLocation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public LocationIdentifier.LinkedLocation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LocationIdentifier.LinkedLocation.Builder
Overrides

clearLabel()

public LocationIdentifier.LinkedLocation.Builder clearLabel()

string label = 3;

Returns
Type Description
LocationIdentifier.LinkedLocation.Builder

This builder for chaining.

clearLocation()

public LocationIdentifier.LinkedLocation.Builder clearLocation()

Required. The linked cloud location.

string location = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LocationIdentifier.LinkedLocation.Builder

This builder for chaining.

clearLocationLevel()

public LocationIdentifier.LinkedLocation.Builder clearLocationLevel()

The location level such as a region.

.google.cloud.capacityplanner.v1beta.LocationLevel location_level = 1;

Returns
Type Description
LocationIdentifier.LinkedLocation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LocationIdentifier.LinkedLocation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LocationIdentifier.LinkedLocation.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public LocationIdentifier.LinkedLocation getDefaultInstanceForType()
Returns
Type Description
LocationIdentifier.LinkedLocation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLabel()

public String getLabel()

string label = 3;

Returns
Type Description
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

string label = 3;

Returns
Type Description
ByteString

The bytes for label.

getLocation()

public String getLocation()

Required. The linked cloud location.

string location = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Required. The linked cloud location.

string location = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for location.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LocationIdentifier.LinkedLocation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LocationIdentifier.LinkedLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocationIdentifier.LinkedLocation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLabel(String value)

public LocationIdentifier.LinkedLocation.Builder setLabel(String value)

string label = 3;

Parameter
Name Description
value String

The label to set.

Returns
Type Description
LocationIdentifier.LinkedLocation.Builder

This builder for chaining.

setLabelBytes(ByteString value)

public LocationIdentifier.LinkedLocation.Builder setLabelBytes(ByteString value)

string label = 3;

Parameter
Name Description
value ByteString

The bytes for label to set.

Returns
Type Description
LocationIdentifier.LinkedLocation.Builder

This builder for chaining.

setLocation(String value)

public LocationIdentifier.LinkedLocation.Builder setLocation(String value)

Required. The linked cloud location.

string location = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The location to set.

Returns
Type Description
LocationIdentifier.LinkedLocation.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public LocationIdentifier.LinkedLocation.Builder setLocationBytes(ByteString value)

Required. The linked cloud location.

string location = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
LocationIdentifier.LinkedLocation.Builder

This builder for chaining.

setLocationLevel(LocationLevel value)

public LocationIdentifier.LinkedLocation.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.LinkedLocation.Builder

This builder for chaining.

setLocationLevelValue(int value)

public LocationIdentifier.LinkedLocation.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.LinkedLocation.Builder

This builder for chaining.

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

public LocationIdentifier.LinkedLocation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LocationIdentifier.LinkedLocation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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