Class GetRegionCommitmentRequest.Builder (1.93.0)

public static final class GetRegionCommitmentRequest.Builder extends GeneratedMessage.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

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.

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.

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 GeneratedMessage.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

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.

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.