Class ZoneMetadata.Builder (0.36.0)

public static final class ZoneMetadata.Builder extends GeneratedMessageV3.Builder<ZoneMetadata.Builder> implements ZoneMetadataOrBuilder

A Google Distributed Cloud Edge zone where edge machines are located.

Protobuf type google.cloud.edgecontainer.v1.ZoneMetadata

Static Methods

getDescriptor()

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

Methods

addAllQuota(Iterable<? extends Quota> values)

public ZoneMetadata.Builder addAllQuota(Iterable<? extends Quota> values)

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.edgecontainer.v1.Quota>
Returns
TypeDescription
ZoneMetadata.Builder

addQuota(Quota value)

public ZoneMetadata.Builder addQuota(Quota value)

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Parameter
NameDescription
valueQuota
Returns
TypeDescription
ZoneMetadata.Builder

addQuota(Quota.Builder builderForValue)

public ZoneMetadata.Builder addQuota(Quota.Builder builderForValue)

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Parameter
NameDescription
builderForValueQuota.Builder
Returns
TypeDescription
ZoneMetadata.Builder

addQuota(int index, Quota value)

public ZoneMetadata.Builder addQuota(int index, Quota value)

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Parameters
NameDescription
indexint
valueQuota
Returns
TypeDescription
ZoneMetadata.Builder

addQuota(int index, Quota.Builder builderForValue)

public ZoneMetadata.Builder addQuota(int index, Quota.Builder builderForValue)

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Parameters
NameDescription
indexint
builderForValueQuota.Builder
Returns
TypeDescription
ZoneMetadata.Builder

addQuotaBuilder()

public Quota.Builder addQuotaBuilder()

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Returns
TypeDescription
Quota.Builder

addQuotaBuilder(int index)

public Quota.Builder addQuotaBuilder(int index)

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Quota.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ZoneMetadata build()
Returns
TypeDescription
ZoneMetadata

buildPartial()

public ZoneMetadata buildPartial()
Returns
TypeDescription
ZoneMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuota()

public ZoneMetadata.Builder clearQuota()

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Returns
TypeDescription
ZoneMetadata.Builder

clearRackTypes()

public ZoneMetadata.Builder clearRackTypes()
Returns
TypeDescription
ZoneMetadata.Builder

clone()

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

containsRackTypes(String key)

public boolean containsRackTypes(String key)

The map keyed by rack name and has value of RackType.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata.RackType> rack_types = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public ZoneMetadata getDefaultInstanceForType()
Returns
TypeDescription
ZoneMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableRackTypes() (deprecated)

public Map<String,ZoneMetadata.RackType> getMutableRackTypes()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,RackType>

getMutableRackTypesValue() (deprecated)

public Map<String,Integer> getMutableRackTypesValue()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,java.lang.Integer>

getQuota(int index)

public Quota getQuota(int index)

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Quota

getQuotaBuilder(int index)

public Quota.Builder getQuotaBuilder(int index)

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Quota.Builder

getQuotaBuilderList()

public List<Quota.Builder> getQuotaBuilderList()

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Returns
TypeDescription
List<Builder>

getQuotaCount()

public int getQuotaCount()

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Returns
TypeDescription
int

getQuotaList()

public List<Quota> getQuotaList()

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Returns
TypeDescription
List<Quota>

getQuotaOrBuilder(int index)

public QuotaOrBuilder getQuotaOrBuilder(int index)

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
QuotaOrBuilder

getQuotaOrBuilderList()

public List<? extends QuotaOrBuilder> getQuotaOrBuilderList()

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Returns
TypeDescription
List<? extends com.google.cloud.edgecontainer.v1.QuotaOrBuilder>

getRackTypes() (deprecated)

public Map<String,ZoneMetadata.RackType> getRackTypes()

Use #getRackTypesMap() instead.

Returns
TypeDescription
Map<String,RackType>

getRackTypesCount()

public int getRackTypesCount()

The map keyed by rack name and has value of RackType.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata.RackType> rack_types = 2;

Returns
TypeDescription
int

getRackTypesMap()

public Map<String,ZoneMetadata.RackType> getRackTypesMap()

The map keyed by rack name and has value of RackType.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata.RackType> rack_types = 2;

Returns
TypeDescription
Map<String,RackType>

getRackTypesOrDefault(String key, ZoneMetadata.RackType defaultValue)

public ZoneMetadata.RackType getRackTypesOrDefault(String key, ZoneMetadata.RackType defaultValue)

The map keyed by rack name and has value of RackType.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata.RackType> rack_types = 2;

Parameters
NameDescription
keyString
defaultValueZoneMetadata.RackType
Returns
TypeDescription
ZoneMetadata.RackType

getRackTypesOrThrow(String key)

public ZoneMetadata.RackType getRackTypesOrThrow(String key)

The map keyed by rack name and has value of RackType.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata.RackType> rack_types = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
ZoneMetadata.RackType

getRackTypesValue() (deprecated)

public Map<String,Integer> getRackTypesValue()
Returns
TypeDescription
Map<String,java.lang.Integer>

getRackTypesValueMap()

public Map<String,Integer> getRackTypesValueMap()

The map keyed by rack name and has value of RackType.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata.RackType> rack_types = 2;

Returns
TypeDescription
Map<String,java.lang.Integer>

getRackTypesValueOrDefault(String key, int defaultValue)

public int getRackTypesValueOrDefault(String key, int defaultValue)

The map keyed by rack name and has value of RackType.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata.RackType> rack_types = 2;

Parameters
NameDescription
keyString
defaultValueint
Returns
TypeDescription
int

getRackTypesValueOrThrow(String key)

public int getRackTypesValueOrThrow(String key)

The map keyed by rack name and has value of RackType.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata.RackType> rack_types = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
int

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ZoneMetadata other)

public ZoneMetadata.Builder mergeFrom(ZoneMetadata other)
Parameter
NameDescription
otherZoneMetadata
Returns
TypeDescription
ZoneMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllRackTypes(Map<String,ZoneMetadata.RackType> values)

public ZoneMetadata.Builder putAllRackTypes(Map<String,ZoneMetadata.RackType> values)

The map keyed by rack name and has value of RackType.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata.RackType> rack_types = 2;

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

putAllRackTypesValue(Map<String,Integer> values)

public ZoneMetadata.Builder putAllRackTypesValue(Map<String,Integer> values)

The map keyed by rack name and has value of RackType.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata.RackType> rack_types = 2;

Parameter
NameDescription
valuesMap<String,java.lang.Integer>
Returns
TypeDescription
ZoneMetadata.Builder

putRackTypes(String key, ZoneMetadata.RackType value)

public ZoneMetadata.Builder putRackTypes(String key, ZoneMetadata.RackType value)

The map keyed by rack name and has value of RackType.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata.RackType> rack_types = 2;

Parameters
NameDescription
keyString
valueZoneMetadata.RackType
Returns
TypeDescription
ZoneMetadata.Builder

putRackTypesValue(String key, int value)

public ZoneMetadata.Builder putRackTypesValue(String key, int value)

The map keyed by rack name and has value of RackType.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata.RackType> rack_types = 2;

Parameters
NameDescription
keyString
valueint
Returns
TypeDescription
ZoneMetadata.Builder

removeQuota(int index)

public ZoneMetadata.Builder removeQuota(int index)

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ZoneMetadata.Builder

removeRackTypes(String key)

public ZoneMetadata.Builder removeRackTypes(String key)

The map keyed by rack name and has value of RackType.

map<string, .google.cloud.edgecontainer.v1.ZoneMetadata.RackType> rack_types = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
ZoneMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setQuota(int index, Quota value)

public ZoneMetadata.Builder setQuota(int index, Quota value)

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Parameters
NameDescription
indexint
valueQuota
Returns
TypeDescription
ZoneMetadata.Builder

setQuota(int index, Quota.Builder builderForValue)

public ZoneMetadata.Builder setQuota(int index, Quota.Builder builderForValue)

Quota for resources in this zone.

repeated .google.cloud.edgecontainer.v1.Quota quota = 1;

Parameters
NameDescription
indexint
builderForValueQuota.Builder
Returns
TypeDescription
ZoneMetadata.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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