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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Zone.BuilderImplements
ZoneOrBuilderStatic 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 |
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 |
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 |
clearLabels()
public Zone.Builder clearLabels()
Returns | |
---|---|
Type | Description |
Zone.Builder |
clearLayoutName()
public Zone.Builder clearLayoutName()
The deployment layout type.
string layout_name = 5;
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 |
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 |
containsLabels(String key)
public boolean containsLabels(String key)
Labels as key value pairs
map<string, string> labels = 4;
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 |
getLabels() (deprecated)
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Labels as key value pairs
map<string, string> labels = 4;
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Labels as key value pairs
map<string, string> labels = 4;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs
map<string, string> labels = 4;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Labels as key value pairs
map<string, string> labels = 4;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getLayoutName()
public String getLayoutName()
The deployment layout type.
string layout_name = 5;
Returns | |
---|---|
Type | Description |
String | The layoutName. |
getLayoutNameBytes()
public ByteString getLayoutNameBytes()
The deployment layout type.
string layout_name = 5;
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 |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Zone.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Zone.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Zone.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Zone.Builder |
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)
public Zone.Builder putAllLabels(Map<String,String> values)
Labels as key value pairs
map<string, string> labels = 4;
Parameter | |
---|---|
Name | Description |
values | Map<String,String> |
Returns | |
---|---|
Type | Description |
Zone.Builder |
putLabels(String key, String value)
public Zone.Builder putLabels(String key, String value)
Labels as key value pairs
map<string, string> labels = 4;
Parameters | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
Type | Description |
Zone.Builder |
removeLabels(String key)
public Zone.Builder removeLabels(String key)
Labels as key value pairs
map<string, string> labels = 4;
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 |
setLayoutName(String value)
public Zone.Builder setLayoutName(String value)
The deployment layout type.
string layout_name = 5;
Parameter | |
---|---|
Name | Description |
value | String The layoutName to set. |
Returns | |
---|---|
Type | Description |
Zone.Builder | This builder for chaining. |
setLayoutNameBytes(ByteString value)
public Zone.Builder setLayoutNameBytes(ByteString value)
The deployment layout type.
string layout_name = 5;
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final Zone.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Zone.Builder |
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 |