Class ListUtilizationReportsResponse.Builder (1.49.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
Type Description
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
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.vmmigration.v1.UtilizationReport>
Returns
Type Description
ListUtilizationReportsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListUtilizationReportsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The unreachable to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
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
Name Description
value UtilizationReport
Returns
Type Description
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
Name Description
builderForValue UtilizationReport.Builder
Returns
Type Description
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
Name Description
index int
value UtilizationReport
Returns
Type Description
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
Name Description
index int
builderForValue UtilizationReport.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
UtilizationReport.Builder

build()

public ListUtilizationReportsResponse build()
Returns
Type Description
ListUtilizationReportsResponse

buildPartial()

public ListUtilizationReportsResponse buildPartial()
Returns
Type Description
ListUtilizationReportsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListUtilizationReportsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
ListUtilizationReportsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListUtilizationReportsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
ListUtilizationReportsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListUtilizationReportsResponse getDefaultInstanceForType()
Returns
Type Description
ListUtilizationReportsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.vmmigration.v1.UtilizationReportOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListUtilizationReportsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListUtilizationReportsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
ListUtilizationReportsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListUtilizationReportsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListUtilizationReportsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListUtilizationReportsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
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
Name Description
index int
value UtilizationReport
Returns
Type Description
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
Name Description
index int
builderForValue UtilizationReport.Builder
Returns
Type Description
ListUtilizationReportsResponse.Builder