Class LocationMetadata.Builder (0.12.0)

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

Metadata for a given google.cloud.location.Location.

Protobuf type google.cloud.edgecontainer.v1.LocationMetadata

Static Methods

getDescriptor()

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

Methods

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

clearAvailableZones()

public LocationMetadata.Builder clearAvailableZones()
Returns
TypeDescription
LocationMetadata.Builder

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

containsAvailableZones(String key)

public boolean containsAvailableZones(String key)

The set of available Google Distributed Cloud Edge zones in the location. The map is keyed by the lowercase ID of each zone.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata> available_zones = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAvailableZones()

public Map<String,ZoneMetadata> getAvailableZones()
Returns
TypeDescription
Map<String,ZoneMetadata>

getAvailableZonesCount()

public int getAvailableZonesCount()

The set of available Google Distributed Cloud Edge zones in the location. The map is keyed by the lowercase ID of each zone.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata> available_zones = 1;

Returns
TypeDescription
int

getAvailableZonesMap()

public Map<String,ZoneMetadata> getAvailableZonesMap()

The set of available Google Distributed Cloud Edge zones in the location. The map is keyed by the lowercase ID of each zone.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata> available_zones = 1;

Returns
TypeDescription
Map<String,ZoneMetadata>

getAvailableZonesOrDefault(String key, ZoneMetadata defaultValue)

public ZoneMetadata getAvailableZonesOrDefault(String key, ZoneMetadata defaultValue)

The set of available Google Distributed Cloud Edge zones in the location. The map is keyed by the lowercase ID of each zone.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata> available_zones = 1;

Parameters
NameDescription
keyString
defaultValueZoneMetadata
Returns
TypeDescription
ZoneMetadata

getAvailableZonesOrThrow(String key)

public ZoneMetadata getAvailableZonesOrThrow(String key)

The set of available Google Distributed Cloud Edge zones in the location. The map is keyed by the lowercase ID of each zone.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata> available_zones = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
ZoneMetadata

getDefaultInstanceForType()

public LocationMetadata getDefaultInstanceForType()
Returns
TypeDescription
LocationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableAvailableZones()

public Map<String,ZoneMetadata> getMutableAvailableZones()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,ZoneMetadata>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
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

putAllAvailableZones(Map<String,ZoneMetadata> values)

public LocationMetadata.Builder putAllAvailableZones(Map<String,ZoneMetadata> values)

The set of available Google Distributed Cloud Edge zones in the location. The map is keyed by the lowercase ID of each zone.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata> available_zones = 1;

Parameter
NameDescription
valuesMap<String,ZoneMetadata>
Returns
TypeDescription
LocationMetadata.Builder

putAvailableZones(String key, ZoneMetadata value)

public LocationMetadata.Builder putAvailableZones(String key, ZoneMetadata value)

The set of available Google Distributed Cloud Edge zones in the location. The map is keyed by the lowercase ID of each zone.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata> available_zones = 1;

Parameters
NameDescription
keyString
valueZoneMetadata
Returns
TypeDescription
LocationMetadata.Builder

removeAvailableZones(String key)

public LocationMetadata.Builder removeAvailableZones(String key)

The set of available Google Distributed Cloud Edge zones in the location. The map is keyed by the lowercase ID of each zone.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata> available_zones = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
LocationMetadata.Builder

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