Class LocationMetadata.Builder (0.29.0)

public static final class LocationMetadata.Builder extends GeneratedMessageV3.Builder<LocationMetadata.Builder> implements LocationMetadataOrBuilder

VmwareEngine specific metadata for the given google.cloud.location.Location. It is returned as a content of the google.cloud.location.Location.metadata field.

Protobuf type google.cloud.vmwareengine.v1.LocationMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllCapabilities(Iterable<? extends LocationMetadata.Capability> values)

public LocationMetadata.Builder addAllCapabilities(Iterable<? extends LocationMetadata.Capability> values)

Output only. Capabilities of this location.

repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vmwareengine.v1.LocationMetadata.Capability>

The capabilities to add.

Returns
TypeDescription
LocationMetadata.Builder

This builder for chaining.

addAllCapabilitiesValue(Iterable<Integer> values)

public LocationMetadata.Builder addAllCapabilitiesValue(Iterable<Integer> values)

Output only. Capabilities of this location.

repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for capabilities to add.

Returns
TypeDescription
LocationMetadata.Builder

This builder for chaining.

addCapabilities(LocationMetadata.Capability value)

public LocationMetadata.Builder addCapabilities(LocationMetadata.Capability value)

Output only. Capabilities of this location.

repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueLocationMetadata.Capability

The capabilities to add.

Returns
TypeDescription
LocationMetadata.Builder

This builder for chaining.

addCapabilitiesValue(int value)

public LocationMetadata.Builder addCapabilitiesValue(int value)

Output only. Capabilities of this location.

repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for capabilities to add.

Returns
TypeDescription
LocationMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LocationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LocationMetadata.Builder
Overrides

build()

public LocationMetadata build()
Returns
TypeDescription
LocationMetadata

buildPartial()

public LocationMetadata buildPartial()
Returns
TypeDescription
LocationMetadata

clear()

public LocationMetadata.Builder clear()
Returns
TypeDescription
LocationMetadata.Builder
Overrides

clearCapabilities()

public LocationMetadata.Builder clearCapabilities()

Output only. Capabilities of this location.

repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
LocationMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LocationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LocationMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LocationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LocationMetadata.Builder
Overrides

clone()

public LocationMetadata.Builder clone()
Returns
TypeDescription
LocationMetadata.Builder
Overrides

getCapabilities(int index)

public LocationMetadata.Capability getCapabilities(int index)

Output only. Capabilities of this location.

repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
LocationMetadata.Capability

The capabilities at the given index.

getCapabilitiesCount()

public int getCapabilitiesCount()

Output only. Capabilities of this location.

repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The count of capabilities.

getCapabilitiesList()

public List<LocationMetadata.Capability> getCapabilitiesList()

Output only. Capabilities of this location.

repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Capability>

A list containing the capabilities.

getCapabilitiesValue(int index)

public int getCapabilitiesValue(int index)

Output only. Capabilities of this location.

repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of capabilities at the given index.

getCapabilitiesValueList()

public List<Integer> getCapabilitiesValueList()

Output only. Capabilities of this location.

repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for capabilities.

getDefaultInstanceForType()

public LocationMetadata getDefaultInstanceForType()
Returns
TypeDescription
LocationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LocationMetadata other)

public LocationMetadata.Builder mergeFrom(LocationMetadata other)
Parameter
NameDescription
otherLocationMetadata
Returns
TypeDescription
LocationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LocationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LocationMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LocationMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LocationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LocationMetadata.Builder
Overrides

setCapabilities(int index, LocationMetadata.Capability value)

public LocationMetadata.Builder setCapabilities(int index, LocationMetadata.Capability value)

Output only. Capabilities of this location.

repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint

The index to set the value at.

valueLocationMetadata.Capability

The capabilities to set.

Returns
TypeDescription
LocationMetadata.Builder

This builder for chaining.

setCapabilitiesValue(int index, int value)

public LocationMetadata.Builder setCapabilitiesValue(int index, int value)

Output only. Capabilities of this location.

repeated .google.cloud.vmwareengine.v1.LocationMetadata.Capability capabilities = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
LocationMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LocationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LocationMetadata.Builder
Overrides

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

public LocationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LocationMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LocationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LocationMetadata.Builder
Overrides