Class CapacityAdviceRpcRequest.Builder (1.109.0)

public static final class CapacityAdviceRpcRequest.Builder extends GeneratedMessage.Builder<CapacityAdviceRpcRequest.Builder> implements CapacityAdviceRpcRequestOrBuilder

A request message for Advice.Capacity. See the method description for details.

Protobuf type google.cloud.compute.v1.CapacityAdviceRpcRequest

Static Methods

getDescriptor()

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

Methods

build()

public CapacityAdviceRpcRequest build()
Returns
Type Description
CapacityAdviceRpcRequest

buildPartial()

public CapacityAdviceRpcRequest buildPartial()
Returns
Type Description
CapacityAdviceRpcRequest

clear()

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

clearCapacityAdviceRequestResource()

public CapacityAdviceRpcRequest.Builder clearCapacityAdviceRequestResource()

The body resource for this request

.google.cloud.compute.v1.CapacityAdviceRequest capacity_advice_request_resource = 176354208 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CapacityAdviceRpcRequest.Builder

clearProject()

public CapacityAdviceRpcRequest.Builder clearProject()

Project ID for this request.

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

Returns
Type Description
CapacityAdviceRpcRequest.Builder

This builder for chaining.

clearRegion()

public CapacityAdviceRpcRequest.Builder clearRegion()

Name of the region for this request.

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

Returns
Type Description
CapacityAdviceRpcRequest.Builder

This builder for chaining.

getCapacityAdviceRequestResource()

public CapacityAdviceRequest getCapacityAdviceRequestResource()

The body resource for this request

.google.cloud.compute.v1.CapacityAdviceRequest capacity_advice_request_resource = 176354208 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CapacityAdviceRequest

The capacityAdviceRequestResource.

getCapacityAdviceRequestResourceBuilder()

public CapacityAdviceRequest.Builder getCapacityAdviceRequestResourceBuilder()

The body resource for this request

.google.cloud.compute.v1.CapacityAdviceRequest capacity_advice_request_resource = 176354208 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CapacityAdviceRequest.Builder

getCapacityAdviceRequestResourceOrBuilder()

public CapacityAdviceRequestOrBuilder getCapacityAdviceRequestResourceOrBuilder()

The body resource for this request

.google.cloud.compute.v1.CapacityAdviceRequest capacity_advice_request_resource = 176354208 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CapacityAdviceRequestOrBuilder

getDefaultInstanceForType()

public CapacityAdviceRpcRequest getDefaultInstanceForType()
Returns
Type Description
CapacityAdviceRpcRequest

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.

hasCapacityAdviceRequestResource()

public boolean hasCapacityAdviceRequestResource()

The body resource for this request

.google.cloud.compute.v1.CapacityAdviceRequest capacity_advice_request_resource = 176354208 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the capacityAdviceRequestResource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCapacityAdviceRequestResource(CapacityAdviceRequest value)

public CapacityAdviceRpcRequest.Builder mergeCapacityAdviceRequestResource(CapacityAdviceRequest value)

The body resource for this request

.google.cloud.compute.v1.CapacityAdviceRequest capacity_advice_request_resource = 176354208 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CapacityAdviceRequest
Returns
Type Description
CapacityAdviceRpcRequest.Builder

mergeFrom(CapacityAdviceRpcRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCapacityAdviceRequestResource(CapacityAdviceRequest value)

public CapacityAdviceRpcRequest.Builder setCapacityAdviceRequestResource(CapacityAdviceRequest value)

The body resource for this request

.google.cloud.compute.v1.CapacityAdviceRequest capacity_advice_request_resource = 176354208 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CapacityAdviceRequest
Returns
Type Description
CapacityAdviceRpcRequest.Builder

setCapacityAdviceRequestResource(CapacityAdviceRequest.Builder builderForValue)

public CapacityAdviceRpcRequest.Builder setCapacityAdviceRequestResource(CapacityAdviceRequest.Builder builderForValue)

The body resource for this request

.google.cloud.compute.v1.CapacityAdviceRequest capacity_advice_request_resource = 176354208 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CapacityAdviceRequest.Builder
Returns
Type Description
CapacityAdviceRpcRequest.Builder

setProject(String value)

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

This builder for chaining.

setProjectBytes(ByteString value)

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

This builder for chaining.

setRegion(String value)

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

This builder for chaining.

setRegionBytes(ByteString value)

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

This builder for chaining.