Class Zone.Builder (0.8.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Zone build()
Returns
TypeDescription
Zone

buildPartial()

public Zone buildPartial()
Returns
TypeDescription
Zone

clear()

public Zone.Builder clear()
Returns
TypeDescription
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
TypeDescription
Zone.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels() (deprecated)

public Zone.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Zone.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Zone.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Zone.Builder

clone()

public Zone.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Zone getDefaultInstanceForType()
Returns
TypeDescription
Zone

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount() (deprecated)

public int getLabelsCount()

Deprecated: not implemented. Labels as key value pairs.

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

Returns
TypeDescription
int

getLabelsMap() (deprecated)

public Map<String,String> getLabelsMap()

Deprecated: not implemented. Labels as key value pairs.

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

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for layoutName.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. The resource name of the zone.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the zone.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

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

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
NameDescription
valueTimestamp
Returns
TypeDescription
Zone.Builder

mergeFrom(Zone other)

public Zone.Builder mergeFrom(Zone other)
Parameter
NameDescription
otherZone
Returns
TypeDescription
Zone.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Zone.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Zone.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Zone.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The layoutName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for layoutName to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Zone.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Zone.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Zone.Builder