Class GetZoneRequest.Builder (1.32.0)

public static final class GetZoneRequest.Builder extends GeneratedMessageV3.Builder<GetZoneRequest.Builder> implements GetZoneRequestOrBuilder

A request message for Zones.Get. See the method description for details.

Protobuf type google.cloud.compute.v1.GetZoneRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetZoneRequest build()
Returns
TypeDescription
GetZoneRequest

buildPartial()

public GetZoneRequest buildPartial()
Returns
TypeDescription
GetZoneRequest

clear()

public GetZoneRequest.Builder clear()
Returns
TypeDescription
GetZoneRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public GetZoneRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetZoneRequest.Builder
Overrides

clearProject()

public GetZoneRequest.Builder clearProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GetZoneRequest.Builder

This builder for chaining.

clearZone()

public GetZoneRequest.Builder clearZone()

Name of the zone resource to return.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GetZoneRequest.Builder

This builder for chaining.

clone()

public GetZoneRequest.Builder clone()
Returns
TypeDescription
GetZoneRequest.Builder
Overrides

getDefaultInstanceForType()

public GetZoneRequest getDefaultInstanceForType()
Returns
TypeDescription
GetZoneRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProject()

public String getProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for project.

getZone()

public String getZone()

Name of the zone resource to return.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Name of the zone resource to return.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for zone.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetZoneRequest other)

public GetZoneRequest.Builder mergeFrom(GetZoneRequest other)
Parameter
NameDescription
otherGetZoneRequest
Returns
TypeDescription
GetZoneRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetZoneRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetZoneRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(String value)

public GetZoneRequest.Builder setProject(String value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The project to set.

Returns
TypeDescription
GetZoneRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetZoneRequest.Builder setProjectBytes(ByteString value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
GetZoneRequest.Builder

This builder for chaining.

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

public GetZoneRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetZoneRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetZoneRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetZoneRequest.Builder
Overrides

setZone(String value)

public GetZoneRequest.Builder setZone(String value)

Name of the zone resource to return.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The zone to set.

Returns
TypeDescription
GetZoneRequest.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public GetZoneRequest.Builder setZoneBytes(ByteString value)

Name of the zone resource to return.

string zone = 3744684 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
GetZoneRequest.Builder

This builder for chaining.