Class ListHardwareResponse.Builder (0.7.0)

public static final class ListHardwareResponse.Builder extends GeneratedMessageV3.Builder<ListHardwareResponse.Builder> implements ListHardwareResponseOrBuilder

A list of hardware.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse

Static Methods

getDescriptor()

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

Methods

addAllHardware(Iterable<? extends Hardware> values)

public ListHardwareResponse.Builder addAllHardware(Iterable<? extends Hardware> values)

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.gdchardwaremanagement.v1alpha.Hardware>
Returns
Type Description
ListHardwareResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListHardwareResponse.Builder

This builder for chaining.

addHardware(Hardware value)

public ListHardwareResponse.Builder addHardware(Hardware value)

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Parameter
Name Description
value Hardware
Returns
Type Description
ListHardwareResponse.Builder

addHardware(Hardware.Builder builderForValue)

public ListHardwareResponse.Builder addHardware(Hardware.Builder builderForValue)

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Parameter
Name Description
builderForValue Hardware.Builder
Returns
Type Description
ListHardwareResponse.Builder

addHardware(int index, Hardware value)

public ListHardwareResponse.Builder addHardware(int index, Hardware value)

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Parameters
Name Description
index int
value Hardware
Returns
Type Description
ListHardwareResponse.Builder

addHardware(int index, Hardware.Builder builderForValue)

public ListHardwareResponse.Builder addHardware(int index, Hardware.Builder builderForValue)

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Parameters
Name Description
index int
builderForValue Hardware.Builder
Returns
Type Description
ListHardwareResponse.Builder

addHardwareBuilder()

public Hardware.Builder addHardwareBuilder()

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Returns
Type Description
Hardware.Builder

addHardwareBuilder(int index)

public Hardware.Builder addHardwareBuilder(int index)

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Parameter
Name Description
index int
Returns
Type Description
Hardware.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListHardwareResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListHardwareResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListHardwareResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListHardwareResponse.Builder

This builder for chaining.

build()

public ListHardwareResponse build()
Returns
Type Description
ListHardwareResponse

buildPartial()

public ListHardwareResponse buildPartial()
Returns
Type Description
ListHardwareResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHardware()

public ListHardwareResponse.Builder clearHardware()

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Returns
Type Description
ListHardwareResponse.Builder

clearNextPageToken()

public ListHardwareResponse.Builder clearNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ListHardwareResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListHardwareResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListHardwareResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListHardwareResponse getDefaultInstanceForType()
Returns
Type Description
ListHardwareResponse

getDescriptorForType()

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

getHardware(int index)

public Hardware getHardware(int index)

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Parameter
Name Description
index int
Returns
Type Description
Hardware

getHardwareBuilder(int index)

public Hardware.Builder getHardwareBuilder(int index)

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Parameter
Name Description
index int
Returns
Type Description
Hardware.Builder

getHardwareBuilderList()

public List<Hardware.Builder> getHardwareBuilderList()

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Returns
Type Description
List<Builder>

getHardwareCount()

public int getHardwareCount()

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Returns
Type Description
int

getHardwareList()

public List<Hardware> getHardwareList()

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Returns
Type Description
List<Hardware>

getHardwareOrBuilder(int index)

public HardwareOrBuilder getHardwareOrBuilder(int index)

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Parameter
Name Description
index int
Returns
Type Description
HardwareOrBuilder

getHardwareOrBuilderList()

public List<? extends HardwareOrBuilder> getHardwareOrBuilderList()

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Returns
Type Description
List<? extends com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

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)

Locations that could not be reached.

repeated string unreachable = 3;

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()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListHardwareResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeHardware(int index)

public ListHardwareResponse.Builder removeHardware(int index)

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Parameter
Name Description
index int
Returns
Type Description
ListHardwareResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHardware(int index, Hardware value)

public ListHardwareResponse.Builder setHardware(int index, Hardware value)

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Parameters
Name Description
index int
value Hardware
Returns
Type Description
ListHardwareResponse.Builder

setHardware(int index, Hardware.Builder builderForValue)

public ListHardwareResponse.Builder setHardware(int index, Hardware.Builder builderForValue)

The list of hardware.

repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1;

Parameters
Name Description
index int
builderForValue Hardware.Builder
Returns
Type Description
ListHardwareResponse.Builder

setNextPageToken(String value)

public ListHardwareResponse.Builder setNextPageToken(String value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListHardwareResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListHardwareResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListHardwareResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListHardwareResponse.Builder

This builder for chaining.