Class GetRegionDiskRequest.Builder (1.26.0)

public static final class GetRegionDiskRequest.Builder extends GeneratedMessageV3.Builder<GetRegionDiskRequest.Builder> implements GetRegionDiskRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetRegionDiskRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRegionDiskRequest build()
Returns
TypeDescription
GetRegionDiskRequest

buildPartial()

public GetRegionDiskRequest buildPartial()
Returns
TypeDescription
GetRegionDiskRequest

clear()

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

clearDisk()

public GetRegionDiskRequest.Builder clearDisk()

Name of the regional persistent disk to return.

string disk = 3083677 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GetRegionDiskRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetRegionDiskRequest.Builder clearProject()

Project ID for this request.

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

Returns
TypeDescription
GetRegionDiskRequest.Builder

This builder for chaining.

clearRegion()

public GetRegionDiskRequest.Builder clearRegion()

Name of the region for this request.

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

Returns
TypeDescription
GetRegionDiskRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetRegionDiskRequest getDefaultInstanceForType()
Returns
TypeDescription
GetRegionDiskRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisk()

public String getDisk()

Name of the regional persistent disk to return.

string disk = 3083677 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The disk.

getDiskBytes()

public ByteString getDiskBytes()

Name of the regional persistent disk to return.

string disk = 3083677 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for disk.

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 for this request.

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

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region for this request.

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(GetRegionDiskRequest other)

public GetRegionDiskRequest.Builder mergeFrom(GetRegionDiskRequest other)
Parameter
NameDescription
otherGetRegionDiskRequest
Returns
TypeDescription
GetRegionDiskRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDisk(String value)

public GetRegionDiskRequest.Builder setDisk(String value)

Name of the regional persistent disk to return.

string disk = 3083677 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The disk to set.

Returns
TypeDescription
GetRegionDiskRequest.Builder

This builder for chaining.

setDiskBytes(ByteString value)

public GetRegionDiskRequest.Builder setDiskBytes(ByteString value)

Name of the regional persistent disk to return.

string disk = 3083677 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for disk to set.

Returns
TypeDescription
GetRegionDiskRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(String value)

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

This builder for chaining.

setProjectBytes(ByteString value)

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

This builder for chaining.

setRegion(String value)

public GetRegionDiskRequest.Builder setRegion(String value)

Name of the region for this request.

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

Parameter
NameDescription
valueString

The region to set.

Returns
TypeDescription
GetRegionDiskRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public GetRegionDiskRequest.Builder setRegionBytes(ByteString value)

Name of the region for this request.

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

Parameter
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
GetRegionDiskRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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