Class CreateUtilizationReportRequest.Builder (1.43.0)

public static final class CreateUtilizationReportRequest.Builder extends GeneratedMessageV3.Builder<CreateUtilizationReportRequest.Builder> implements CreateUtilizationReportRequestOrBuilder

Request message for 'CreateUtilizationReport' request.

Protobuf type google.cloud.vmmigration.v1.CreateUtilizationReportRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateUtilizationReportRequest build()
Returns
Type Description
CreateUtilizationReportRequest

buildPartial()

public CreateUtilizationReportRequest buildPartial()
Returns
Type Description
CreateUtilizationReportRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateUtilizationReportRequest.Builder clearParent()

Required. The Utilization Report's parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateUtilizationReportRequest.Builder

This builder for chaining.

clearRequestId()

public CreateUtilizationReportRequest.Builder clearRequestId()

A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Returns
Type Description
CreateUtilizationReportRequest.Builder

This builder for chaining.

clearUtilizationReport()

public CreateUtilizationReportRequest.Builder clearUtilizationReport()

Required. The report to create.

.google.cloud.vmmigration.v1.UtilizationReport utilization_report = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateUtilizationReportRequest.Builder

clearUtilizationReportId()

public CreateUtilizationReportRequest.Builder clearUtilizationReportId()

Required. The ID to use for the report, which will become the final component of the reports's resource name.

This value maximum length is 63 characters, and valid characters are /a-z-/. It must start with an english letter and must not end with a hyphen.

string utilization_report_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateUtilizationReportRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateUtilizationReportRequest getDefaultInstanceForType()
Returns
Type Description
CreateUtilizationReportRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The Utilization Report's parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The Utilization Report's parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Returns
Type Description
ByteString

The bytes for requestId.

getUtilizationReport()

public UtilizationReport getUtilizationReport()

Required. The report to create.

.google.cloud.vmmigration.v1.UtilizationReport utilization_report = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UtilizationReport

The utilizationReport.

getUtilizationReportBuilder()

public UtilizationReport.Builder getUtilizationReportBuilder()

Required. The report to create.

.google.cloud.vmmigration.v1.UtilizationReport utilization_report = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UtilizationReport.Builder

getUtilizationReportId()

public String getUtilizationReportId()

Required. The ID to use for the report, which will become the final component of the reports's resource name.

This value maximum length is 63 characters, and valid characters are /a-z-/. It must start with an english letter and must not end with a hyphen.

string utilization_report_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The utilizationReportId.

getUtilizationReportIdBytes()

public ByteString getUtilizationReportIdBytes()

Required. The ID to use for the report, which will become the final component of the reports's resource name.

This value maximum length is 63 characters, and valid characters are /a-z-/. It must start with an english letter and must not end with a hyphen.

string utilization_report_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for utilizationReportId.

getUtilizationReportOrBuilder()

public UtilizationReportOrBuilder getUtilizationReportOrBuilder()

Required. The report to create.

.google.cloud.vmmigration.v1.UtilizationReport utilization_report = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UtilizationReportOrBuilder

hasUtilizationReport()

public boolean hasUtilizationReport()

Required. The report to create.

.google.cloud.vmmigration.v1.UtilizationReport utilization_report = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the utilizationReport field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateUtilizationReportRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUtilizationReport(UtilizationReport value)

public CreateUtilizationReportRequest.Builder mergeUtilizationReport(UtilizationReport value)

Required. The report to create.

.google.cloud.vmmigration.v1.UtilizationReport utilization_report = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UtilizationReport
Returns
Type Description
CreateUtilizationReportRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateUtilizationReportRequest.Builder setParent(String value)

Required. The Utilization Report's parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateUtilizationReportRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateUtilizationReportRequest.Builder setParentBytes(ByteString value)

Required. The Utilization Report's parent.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateUtilizationReportRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateUtilizationReportRequest.Builder setRequestId(String value)

A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateUtilizationReportRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateUtilizationReportRequest.Builder setRequestIdBytes(ByteString value)

A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateUtilizationReportRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUtilizationReport(UtilizationReport value)

public CreateUtilizationReportRequest.Builder setUtilizationReport(UtilizationReport value)

Required. The report to create.

.google.cloud.vmmigration.v1.UtilizationReport utilization_report = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UtilizationReport
Returns
Type Description
CreateUtilizationReportRequest.Builder

setUtilizationReport(UtilizationReport.Builder builderForValue)

public CreateUtilizationReportRequest.Builder setUtilizationReport(UtilizationReport.Builder builderForValue)

Required. The report to create.

.google.cloud.vmmigration.v1.UtilizationReport utilization_report = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue UtilizationReport.Builder
Returns
Type Description
CreateUtilizationReportRequest.Builder

setUtilizationReportId(String value)

public CreateUtilizationReportRequest.Builder setUtilizationReportId(String value)

Required. The ID to use for the report, which will become the final component of the reports's resource name.

This value maximum length is 63 characters, and valid characters are /a-z-/. It must start with an english letter and must not end with a hyphen.

string utilization_report_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The utilizationReportId to set.

Returns
Type Description
CreateUtilizationReportRequest.Builder

This builder for chaining.

setUtilizationReportIdBytes(ByteString value)

public CreateUtilizationReportRequest.Builder setUtilizationReportIdBytes(ByteString value)

Required. The ID to use for the report, which will become the final component of the reports's resource name.

This value maximum length is 63 characters, and valid characters are /a-z-/. It must start with an english letter and must not end with a hyphen.

string utilization_report_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for utilizationReportId to set.

Returns
Type Description
CreateUtilizationReportRequest.Builder

This builder for chaining.