Class Zone.Builder (0.21.0)

public static final class Zone.Builder extends GeneratedMessageV3.Builder<Zone.Builder> implements ZoneOrBuilder

A Google Edge Cloud zone.

Protobuf type google.cloud.edgenetwork.v1.Zone

Implements

ZoneOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Zone build()
Returns
Type Description
Zone

buildPartial()

public Zone buildPartial()
Returns
Type Description
Zone

clear()

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

clearCreateTime()

public Zone.Builder clearCreateTime()

Output only. The time when the zone was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Zone.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels() (deprecated)

public Zone.Builder clearLabels()
Returns
Type Description
Zone.Builder

clearLayoutName() (deprecated)

public Zone.Builder clearLayoutName()

Deprecated. google.cloud.edgenetwork.v1.Zone.layout_name is deprecated. See google/cloud/edgenetwork/v1/resources.proto;l=79

Deprecated: not implemented. The deployment layout type.

string layout_name = 5 [deprecated = true];

Returns
Type Description
Zone.Builder

This builder for chaining.

clearName()

public Zone.Builder clearName()

Required. The resource name of the zone.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Zone.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public Zone.Builder clearUpdateTime()

Output only. The time when the zone was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Zone.Builder

clone()

public Zone.Builder clone()
Returns
Type Description
Zone.Builder
Overrides

containsLabels(String key) (deprecated)

public boolean containsLabels(String key)

Deprecated: not implemented. Labels as key value pairs.

map<string, string> labels = 4 [deprecated = true];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the zone was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the zone was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the zone was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Zone getDefaultInstanceForType()
Returns
Type Description
Zone

getDescriptorForType()

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

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount() (deprecated)

public int getLabelsCount()

Deprecated: not implemented. Labels as key value pairs.

map<string, string> labels = 4 [deprecated = true];

Returns
Type Description
int

getLabelsMap() (deprecated)

public Map<String,String> getLabelsMap()

Deprecated: not implemented. Labels as key value pairs.

map<string, string> labels = 4 [deprecated = true];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue) (deprecated)

public String getLabelsOrDefault(String key, String defaultValue)

Deprecated: not implemented. Labels as key value pairs.

map<string, string> labels = 4 [deprecated = true];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key) (deprecated)

public String getLabelsOrThrow(String key)

Deprecated: not implemented. Labels as key value pairs.

map<string, string> labels = 4 [deprecated = true];

Parameter
Name Description
key String
Returns
Type Description
String

getLayoutName() (deprecated)

public String getLayoutName()

Deprecated. google.cloud.edgenetwork.v1.Zone.layout_name is deprecated. See google/cloud/edgenetwork/v1/resources.proto;l=79

Deprecated: not implemented. The deployment layout type.

string layout_name = 5 [deprecated = true];

Returns
Type Description
String

The layoutName.

getLayoutNameBytes() (deprecated)

public ByteString getLayoutNameBytes()

Deprecated. google.cloud.edgenetwork.v1.Zone.layout_name is deprecated. See google/cloud/edgenetwork/v1/resources.proto;l=79

Deprecated: not implemented. The deployment layout type.

string layout_name = 5 [deprecated = true];

Returns
Type Description
ByteString

The bytes for layoutName.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Required. The resource name of the zone.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the zone.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the zone was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when the zone was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the zone was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the zone was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the zone was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

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

mergeCreateTime(Timestamp value)

public Zone.Builder mergeCreateTime(Timestamp value)

Output only. The time when the zone was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Zone.Builder

mergeFrom(Zone other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Zone.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Zone.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Zone.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the zone was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Zone.Builder

putAllLabels(Map<String,String> values) (deprecated)

public Zone.Builder putAllLabels(Map<String,String> values)

Deprecated: not implemented. Labels as key value pairs.

map<string, string> labels = 4 [deprecated = true];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Zone.Builder

putLabels(String key, String value) (deprecated)

public Zone.Builder putLabels(String key, String value)

Deprecated: not implemented. Labels as key value pairs.

map<string, string> labels = 4 [deprecated = true];

Parameters
Name Description
key String
value String
Returns
Type Description
Zone.Builder

removeLabels(String key) (deprecated)

public Zone.Builder removeLabels(String key)

Deprecated: not implemented. Labels as key value pairs.

map<string, string> labels = 4 [deprecated = true];

Parameter
Name Description
key String
Returns
Type Description
Zone.Builder

setCreateTime(Timestamp value)

public Zone.Builder setCreateTime(Timestamp value)

Output only. The time when the zone was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Zone.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Zone.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the zone was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Zone.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLayoutName(String value) (deprecated)

public Zone.Builder setLayoutName(String value)

Deprecated. google.cloud.edgenetwork.v1.Zone.layout_name is deprecated. See google/cloud/edgenetwork/v1/resources.proto;l=79

Deprecated: not implemented. The deployment layout type.

string layout_name = 5 [deprecated = true];

Parameter
Name Description
value String

The layoutName to set.

Returns
Type Description
Zone.Builder

This builder for chaining.

setLayoutNameBytes(ByteString value) (deprecated)

public Zone.Builder setLayoutNameBytes(ByteString value)

Deprecated. google.cloud.edgenetwork.v1.Zone.layout_name is deprecated. See google/cloud/edgenetwork/v1/resources.proto;l=79

Deprecated: not implemented. The deployment layout type.

string layout_name = 5 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for layoutName to set.

Returns
Type Description
Zone.Builder

This builder for chaining.

setName(String value)

public Zone.Builder setName(String value)

Required. The resource name of the zone.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Zone.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Zone.Builder setNameBytes(ByteString value)

Required. The resource name of the zone.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Zone.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Zone.Builder setUpdateTime(Timestamp value)

Output only. The time when the zone was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Zone.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Zone.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the zone was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Zone.Builder