Class LocationMetadata.Builder (0.50.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LocationMetadata build()
Returns
Type Description
LocationMetadata

buildPartial()

public LocationMetadata buildPartial()
Returns
Type Description
LocationMetadata

clear()

public LocationMetadata.Builder clear()
Returns
Type Description
LocationMetadata.Builder
Overrides

clearAvailableZones()

public LocationMetadata.Builder clearAvailableZones()
Returns
Type Description
LocationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public LocationMetadata.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getAvailableZones() (deprecated)

public Map<String,ZoneMetadata> getAvailableZones()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue ZoneMetadata
Returns
Type Description
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
Name Description
key String
Returns
Type Description
ZoneMetadata

getDefaultInstanceForType()

public LocationMetadata getDefaultInstanceForType()
Returns
Type Description
LocationMetadata

getDescriptorForType()

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

getMutableAvailableZones() (deprecated)

public Map<String,ZoneMetadata> getMutableAvailableZones()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ZoneMetadata>

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LocationMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LocationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,ZoneMetadata>
Returns
Type Description
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
Name Description
key String
value ZoneMetadata
Returns
Type Description
LocationMetadata.Builder

putAvailableZonesBuilderIfAbsent(String key)

public ZoneMetadata.Builder putAvailableZonesBuilderIfAbsent(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
Name Description
key String
Returns
Type Description
ZoneMetadata.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
Name Description
key String
Returns
Type Description
LocationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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