Class GetRegionCommitmentRequest.Builder (1.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRegionCommitmentRequest build()
Returns
TypeDescription
GetRegionCommitmentRequest

buildPartial()

public GetRegionCommitmentRequest buildPartial()
Returns
TypeDescription
GetRegionCommitmentRequest

clear()

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

clearCommitment()

public GetRegionCommitmentRequest.Builder clearCommitment()

Name of the commitment to return.

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

Returns
TypeDescription
GetRegionCommitmentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetRegionCommitmentRequest.Builder clearProject()

Project ID for this request.

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

Returns
TypeDescription
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
TypeDescription
GetRegionCommitmentRequest.Builder

This builder for chaining.

clone()

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

getCommitment()

public String getCommitment()

Name of the commitment to return.

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

Returns
TypeDescription
String

The commitment.

getCommitmentBytes()

public ByteString getCommitmentBytes()

Name of the commitment to return.

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

Returns
TypeDescription
ByteString

The bytes for commitment.

getDefaultInstanceForType()

public GetRegionCommitmentRequest getDefaultInstanceForType()
Returns
TypeDescription
GetRegionCommitmentRequest

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

public GetRegionCommitmentRequest.Builder mergeFrom(GetRegionCommitmentRequest other)
Parameter
NameDescription
otherGetRegionCommitmentRequest
Returns
TypeDescription
GetRegionCommitmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetRegionCommitmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The commitment to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for commitment to set.

Returns
TypeDescription
GetRegionCommitmentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GetRegionCommitmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The project to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
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
NameDescription
valueString

The region to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetRegionCommitmentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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