Class ListUtilizationReportsResponse.Builder (1.32.0)

public static final class ListUtilizationReportsResponse.Builder extends GeneratedMessageV3.Builder<ListUtilizationReportsResponse.Builder> implements ListUtilizationReportsResponseOrBuilder

Response message for 'ListUtilizationReports' request.

Protobuf type google.cloud.vmmigration.v1.ListUtilizationReportsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllUnreachable(Iterable<String> values)

public ListUtilizationReportsResponse.Builder addAllUnreachable(Iterable<String> values)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListUtilizationReportsResponse.Builder

This builder for chaining.

addAllUtilizationReports(Iterable<? extends UtilizationReport> values)

public ListUtilizationReportsResponse.Builder addAllUtilizationReports(Iterable<? extends UtilizationReport> values)

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vmmigration.v1.UtilizationReport>
Returns
TypeDescription
ListUtilizationReportsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListUtilizationReportsResponse.Builder addUnreachable(String value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListUtilizationReportsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListUtilizationReportsResponse.Builder addUnreachableBytes(ByteString value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListUtilizationReportsResponse.Builder

This builder for chaining.

addUtilizationReports(UtilizationReport value)

public ListUtilizationReportsResponse.Builder addUtilizationReports(UtilizationReport value)

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueUtilizationReport
Returns
TypeDescription
ListUtilizationReportsResponse.Builder

addUtilizationReports(UtilizationReport.Builder builderForValue)

public ListUtilizationReportsResponse.Builder addUtilizationReports(UtilizationReport.Builder builderForValue)

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueUtilizationReport.Builder
Returns
TypeDescription
ListUtilizationReportsResponse.Builder

addUtilizationReports(int index, UtilizationReport value)

public ListUtilizationReportsResponse.Builder addUtilizationReports(int index, UtilizationReport value)

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueUtilizationReport
Returns
TypeDescription
ListUtilizationReportsResponse.Builder

addUtilizationReports(int index, UtilizationReport.Builder builderForValue)

public ListUtilizationReportsResponse.Builder addUtilizationReports(int index, UtilizationReport.Builder builderForValue)

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueUtilizationReport.Builder
Returns
TypeDescription
ListUtilizationReportsResponse.Builder

addUtilizationReportsBuilder()

public UtilizationReport.Builder addUtilizationReportsBuilder()

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UtilizationReport.Builder

addUtilizationReportsBuilder(int index)

public UtilizationReport.Builder addUtilizationReportsBuilder(int index)

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
UtilizationReport.Builder

build()

public ListUtilizationReportsResponse build()
Returns
TypeDescription
ListUtilizationReportsResponse

buildPartial()

public ListUtilizationReportsResponse buildPartial()
Returns
TypeDescription
ListUtilizationReportsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListUtilizationReportsResponse.Builder clearNextPageToken()

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ListUtilizationReportsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListUtilizationReportsResponse.Builder clearUnreachable()

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ListUtilizationReportsResponse.Builder

This builder for chaining.

clearUtilizationReports()

public ListUtilizationReportsResponse.Builder clearUtilizationReports()

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ListUtilizationReportsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListUtilizationReportsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListUtilizationReportsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

getUtilizationReports(int index)

public UtilizationReport getUtilizationReports(int index)

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
UtilizationReport

getUtilizationReportsBuilder(int index)

public UtilizationReport.Builder getUtilizationReportsBuilder(int index)

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
UtilizationReport.Builder

getUtilizationReportsBuilderList()

public List<UtilizationReport.Builder> getUtilizationReportsBuilderList()

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getUtilizationReportsCount()

public int getUtilizationReportsCount()

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getUtilizationReportsList()

public List<UtilizationReport> getUtilizationReportsList()

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<UtilizationReport>

getUtilizationReportsOrBuilder(int index)

public UtilizationReportOrBuilder getUtilizationReportsOrBuilder(int index)

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
UtilizationReportOrBuilder

getUtilizationReportsOrBuilderList()

public List<? extends UtilizationReportOrBuilder> getUtilizationReportsOrBuilderList()

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.vmmigration.v1.UtilizationReportOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListUtilizationReportsResponse other)

public ListUtilizationReportsResponse.Builder mergeFrom(ListUtilizationReportsResponse other)
Parameter
NameDescription
otherListUtilizationReportsResponse
Returns
TypeDescription
ListUtilizationReportsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListUtilizationReportsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListUtilizationReportsResponse.Builder
Overrides

removeUtilizationReports(int index)

public ListUtilizationReportsResponse.Builder removeUtilizationReports(int index)

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ListUtilizationReportsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListUtilizationReportsResponse.Builder setNextPageToken(String value)

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListUtilizationReportsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListUtilizationReportsResponse.Builder setNextPageTokenBytes(ByteString value)

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListUtilizationReportsResponse.Builder

This builder for chaining.

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

public ListUtilizationReportsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListUtilizationReportsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListUtilizationReportsResponse.Builder setUnreachable(int index, String value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListUtilizationReportsResponse.Builder

This builder for chaining.

setUtilizationReports(int index, UtilizationReport value)

public ListUtilizationReportsResponse.Builder setUtilizationReports(int index, UtilizationReport value)

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueUtilizationReport
Returns
TypeDescription
ListUtilizationReportsResponse.Builder

setUtilizationReports(int index, UtilizationReport.Builder builderForValue)

public ListUtilizationReportsResponse.Builder setUtilizationReports(int index, UtilizationReport.Builder builderForValue)

Output only. The list of reports.

repeated .google.cloud.vmmigration.v1.UtilizationReport utilization_reports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueUtilizationReport.Builder
Returns
TypeDescription
ListUtilizationReportsResponse.Builder