Class ZoneMetadata.Builder (0.43.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.edgecontainer.v1.Quota>
Returns
Type Description
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
Name Description
value Quota
Returns
Type Description
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
Name Description
builderForValue Quota.Builder
Returns
Type Description
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
Name Description
index int
value Quota
Returns
Type Description
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
Name Description
index int
builderForValue Quota.Builder
Returns
Type Description
ZoneMetadata.Builder

addQuotaBuilder()

public Quota.Builder addQuotaBuilder()

Quota for resources in this zone.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
Quota.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ZoneMetadata build()
Returns
Type Description
ZoneMetadata

buildPartial()

public ZoneMetadata buildPartial()
Returns
Type Description
ZoneMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuota()

public ZoneMetadata.Builder clearQuota()

Quota for resources in this zone.

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

Returns
Type Description
ZoneMetadata.Builder

clearRackTypes()

public ZoneMetadata.Builder clearRackTypes()
Returns
Type Description
ZoneMetadata.Builder

clone()

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

getDefaultInstanceForType()

public ZoneMetadata getDefaultInstanceForType()
Returns
Type Description
ZoneMetadata

getDescriptorForType()

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

getMutableRackTypes() (deprecated)

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

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,RackType>

getMutableRackTypesValue() (deprecated)

public Map<String,Integer> getMutableRackTypesValue()

Use alternate mutation accessors instead.

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
Quota.Builder

getQuotaBuilderList()

public List<Quota.Builder> getQuotaBuilderList()

Quota for resources in this zone.

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

Returns
Type Description
List<Builder>

getQuotaCount()

public int getQuotaCount()

Quota for resources in this zone.

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

Returns
Type Description
int

getQuotaList()

public List<Quota> getQuotaList()

Quota for resources in this zone.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
QuotaOrBuilder

getQuotaOrBuilderList()

public List<? extends QuotaOrBuilder> getQuotaOrBuilderList()

Quota for resources in this zone.

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

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

getRackTypes() (deprecated)

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

Use #getRackTypesMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue ZoneMetadata.RackType
Returns
Type Description
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
Name Description
key String
Returns
Type Description
ZoneMetadata.RackType

getRackTypesValue() (deprecated)

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

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(ZoneMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ZoneMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value Quota
Returns
Type Description
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
Name Description
index int
builderForValue Quota.Builder
Returns
Type Description
ZoneMetadata.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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