Class CreateZoneRequest.Builder (0.8.0)

public static final class CreateZoneRequest.Builder extends GeneratedMessageV3.Builder<CreateZoneRequest.Builder> implements CreateZoneRequestOrBuilder

A request to create a zone.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateZoneRequest build()
Returns
Type Description
CreateZoneRequest

buildPartial()

public CreateZoneRequest buildPartial()
Returns
Type Description
CreateZoneRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateZoneRequest.Builder clearParent()

Required. The project and location to create the zone in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateZoneRequest.Builder

This builder for chaining.

clearRequestId()

public CreateZoneRequest.Builder clearRequestId()

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
CreateZoneRequest.Builder

This builder for chaining.

clearZone()

public CreateZoneRequest.Builder clearZone()

Required. The zone to create.

.google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateZoneRequest.Builder

clearZoneId()

public CreateZoneRequest.Builder clearZoneId()

Optional. ID used to uniquely identify the Zone within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The zone.name field in the request will be ignored.

string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateZoneRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateZoneRequest getDefaultInstanceForType()
Returns
Type Description
CreateZoneRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The project and location to create the zone in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project and location to create the zone in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for requestId.

getZone()

public Zone getZone()

Required. The zone to create.

.google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Zone

The zone.

getZoneBuilder()

public Zone.Builder getZoneBuilder()

Required. The zone to create.

.google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Zone.Builder

getZoneId()

public String getZoneId()

Optional. ID used to uniquely identify the Zone within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The zone.name field in the request will be ignored.

string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The zoneId.

getZoneIdBytes()

public ByteString getZoneIdBytes()

Optional. ID used to uniquely identify the Zone within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The zone.name field in the request will be ignored.

string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for zoneId.

getZoneOrBuilder()

public ZoneOrBuilder getZoneOrBuilder()

Required. The zone to create.

.google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ZoneOrBuilder

hasZone()

public boolean hasZone()

Required. The zone to create.

.google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the zone field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateZoneRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeZone(Zone value)

public CreateZoneRequest.Builder mergeZone(Zone value)

Required. The zone to create.

.google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Zone
Returns
Type Description
CreateZoneRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateZoneRequest.Builder setParent(String value)

Required. The project and location to create the zone in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateZoneRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateZoneRequest.Builder setParentBytes(ByteString value)

Required. The project and location to create the zone in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateZoneRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateZoneRequest.Builder setRequestId(String value)

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateZoneRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateZoneRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateZoneRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setZone(Zone value)

public CreateZoneRequest.Builder setZone(Zone value)

Required. The zone to create.

.google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Zone
Returns
Type Description
CreateZoneRequest.Builder

setZone(Zone.Builder builderForValue)

public CreateZoneRequest.Builder setZone(Zone.Builder builderForValue)

Required. The zone to create.

.google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Zone.Builder
Returns
Type Description
CreateZoneRequest.Builder

setZoneId(String value)

public CreateZoneRequest.Builder setZoneId(String value)

Optional. ID used to uniquely identify the Zone within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The zone.name field in the request will be ignored.

string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The zoneId to set.

Returns
Type Description
CreateZoneRequest.Builder

This builder for chaining.

setZoneIdBytes(ByteString value)

public CreateZoneRequest.Builder setZoneIdBytes(ByteString value)

Optional. ID used to uniquely identify the Zone within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The zone.name field in the request will be ignored.

string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for zoneId to set.

Returns
Type Description
CreateZoneRequest.Builder

This builder for chaining.