Class GetRegionCommitmentRequest.Builder (1.61.0)

public static final class GetRegionCommitmentRequest.Builder extends GeneratedMessageV3.Builder<GetRegionCommitmentRequest.Builder> implements GetRegionCommitmentRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetRegionCommitmentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRegionCommitmentRequest build()
Returns
Type Description
GetRegionCommitmentRequest

buildPartial()

public GetRegionCommitmentRequest buildPartial()
Returns
Type Description
GetRegionCommitmentRequest

clear()

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

clearCommitment()

public GetRegionCommitmentRequest.Builder clearCommitment()

Name of the commitment to return.

string commitment = 482134805 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetRegionCommitmentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetRegionCommitmentRequest.Builder clearProject()

Project ID for this request.

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

Returns
Type Description
GetRegionCommitmentRequest.Builder

This builder for chaining.

clearRegion()

public GetRegionCommitmentRequest.Builder clearRegion()

Name of the region for this request.

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

Returns
Type Description
GetRegionCommitmentRequest.Builder

This builder for chaining.

clone()

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

getCommitment()

public String getCommitment()

Name of the commitment to return.

string commitment = 482134805 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The commitment.

getCommitmentBytes()

public ByteString getCommitmentBytes()

Name of the commitment to return.

string commitment = 482134805 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for commitment.

getDefaultInstanceForType()

public GetRegionCommitmentRequest getDefaultInstanceForType()
Returns
Type Description
GetRegionCommitmentRequest

getDescriptorForType()

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

getProject()

public String getProject()

Project ID for this request.

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

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

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

Returns
Type Description
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
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region for this request.

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

Returns
Type Description
ByteString

The bytes for region.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetRegionCommitmentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCommitment(String value)

public GetRegionCommitmentRequest.Builder setCommitment(String value)

Name of the commitment to return.

string commitment = 482134805 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The commitment to set.

Returns
Type Description
GetRegionCommitmentRequest.Builder

This builder for chaining.

setCommitmentBytes(ByteString value)

public GetRegionCommitmentRequest.Builder setCommitmentBytes(ByteString value)

Name of the commitment to return.

string commitment = 482134805 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for commitment to set.

Returns
Type Description
GetRegionCommitmentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(String value)

public GetRegionCommitmentRequest.Builder setProject(String value)

Project ID for this request.

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

Parameter
Name Description
value String

The project to set.

Returns
Type Description
GetRegionCommitmentRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetRegionCommitmentRequest.Builder setProjectBytes(ByteString value)

Project ID for this request.

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

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
GetRegionCommitmentRequest.Builder

This builder for chaining.

setRegion(String value)

public GetRegionCommitmentRequest.Builder setRegion(String value)

Name of the region for this request.

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

Parameter
Name Description
value String

The region to set.

Returns
Type Description
GetRegionCommitmentRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public GetRegionCommitmentRequest.Builder setRegionBytes(ByteString value)

Name of the region for this request.

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

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
GetRegionCommitmentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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