Class GetRegionRequest.Builder (1.6.0-beta)

public static final class GetRegionRequest.Builder extends GeneratedMessageV3.Builder<GetRegionRequest.Builder> implements GetRegionRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetRegionRequest

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRegionRequest build()
Returns
TypeDescription
GetRegionRequest

buildPartial()

public GetRegionRequest buildPartial()
Returns
TypeDescription
GetRegionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetRegionRequest.Builder clearProject()

Project ID for this request.

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

Returns
TypeDescription
GetRegionRequest.Builder

This builder for chaining.

clearRegion()

public GetRegionRequest.Builder clearRegion()

Name of the region resource to return.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GetRegionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetRegionRequest getDefaultInstanceForType()
Returns
TypeDescription
GetRegionRequest

getDescriptor()

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

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.

getRegion()

public String getRegion()

Name of the region resource to return.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region resource to return.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for region.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetRegionRequest other)

public GetRegionRequest.Builder mergeFrom(GetRegionRequest other)
Parameter
NameDescription
otherGetRegionRequest
Returns
TypeDescription
GetRegionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(String value)

public GetRegionRequest.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
GetRegionRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetRegionRequest.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
GetRegionRequest.Builder

This builder for chaining.

setRegion(String value)

public GetRegionRequest.Builder setRegion(String value)

Name of the region resource to return.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The region to set.

Returns
TypeDescription
GetRegionRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public GetRegionRequest.Builder setRegionBytes(ByteString value)

Name of the region resource to return.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
GetRegionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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