Class CreateUtilizationReportRequest.Builder (1.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateUtilizationReportRequest build()
Returns
TypeDescription
CreateUtilizationReportRequest

buildPartial()

public CreateUtilizationReportRequest buildPartial()
Returns
TypeDescription
CreateUtilizationReportRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateUtilizationReportRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CreateUtilizationReportRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateUtilizationReportRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateUtilizationReportRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
UtilizationReportOrBuilder

hasUtilizationReport()

public boolean hasUtilizationReport()

Required. The report to create.

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

Returns
TypeDescription
boolean

Whether the utilizationReport field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateUtilizationReportRequest other)

public CreateUtilizationReportRequest.Builder mergeFrom(CreateUtilizationReportRequest other)
Parameter
NameDescription
otherCreateUtilizationReportRequest
Returns
TypeDescription
CreateUtilizationReportRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

The requestId to set.

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

The bytes for requestId to set.

Returns
TypeDescription
CreateUtilizationReportRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateUtilizationReportRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueUtilizationReport
Returns
TypeDescription
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
NameDescription
builderForValueUtilizationReport.Builder
Returns
TypeDescription
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
NameDescription
valueString

The utilizationReportId to set.

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

The bytes for utilizationReportId to set.

Returns
TypeDescription
CreateUtilizationReportRequest.Builder

This builder for chaining.