Class ListLunsResponse.Builder (0.49.0)

public static final class ListLunsResponse.Builder extends GeneratedMessageV3.Builder<ListLunsResponse.Builder> implements ListLunsResponseOrBuilder

Response message containing the list of storage volume luns.

Protobuf type google.cloud.baremetalsolution.v2.ListLunsResponse

Static Methods

getDescriptor()

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

Methods

addAllLuns(Iterable<? extends Lun> values)

public ListLunsResponse.Builder addAllLuns(Iterable<? extends Lun> values)

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.baremetalsolution.v2.Lun>
Returns
Type Description
ListLunsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListLunsResponse.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
ListLunsResponse.Builder

This builder for chaining.

addLuns(Lun value)

public ListLunsResponse.Builder addLuns(Lun value)

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Parameter
Name Description
value Lun
Returns
Type Description
ListLunsResponse.Builder

addLuns(Lun.Builder builderForValue)

public ListLunsResponse.Builder addLuns(Lun.Builder builderForValue)

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Parameter
Name Description
builderForValue Lun.Builder
Returns
Type Description
ListLunsResponse.Builder

addLuns(int index, Lun value)

public ListLunsResponse.Builder addLuns(int index, Lun value)

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Parameters
Name Description
index int
value Lun
Returns
Type Description
ListLunsResponse.Builder

addLuns(int index, Lun.Builder builderForValue)

public ListLunsResponse.Builder addLuns(int index, Lun.Builder builderForValue)

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Parameters
Name Description
index int
builderForValue Lun.Builder
Returns
Type Description
ListLunsResponse.Builder

addLunsBuilder()

public Lun.Builder addLunsBuilder()

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Returns
Type Description
Lun.Builder

addLunsBuilder(int index)

public Lun.Builder addLunsBuilder(int index)

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Parameter
Name Description
index int
Returns
Type Description
Lun.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListLunsResponse.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
ListLunsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListLunsResponse.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
ListLunsResponse.Builder

This builder for chaining.

build()

public ListLunsResponse build()
Returns
Type Description
ListLunsResponse

buildPartial()

public ListLunsResponse buildPartial()
Returns
Type Description
ListLunsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLuns()

public ListLunsResponse.Builder clearLuns()

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Returns
Type Description
ListLunsResponse.Builder

clearNextPageToken()

public ListLunsResponse.Builder clearNextPageToken()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
Type Description
ListLunsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListLunsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListLunsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListLunsResponse getDefaultInstanceForType()
Returns
Type Description
ListLunsResponse

getDescriptorForType()

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

getLuns(int index)

public Lun getLuns(int index)

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Parameter
Name Description
index int
Returns
Type Description
Lun

getLunsBuilder(int index)

public Lun.Builder getLunsBuilder(int index)

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Parameter
Name Description
index int
Returns
Type Description
Lun.Builder

getLunsBuilderList()

public List<Lun.Builder> getLunsBuilderList()

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Returns
Type Description
List<Builder>

getLunsCount()

public int getLunsCount()

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Returns
Type Description
int

getLunsList()

public List<Lun> getLunsList()

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Returns
Type Description
List<Lun>

getLunsOrBuilder(int index)

public LunOrBuilder getLunsOrBuilder(int index)

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Parameter
Name Description
index int
Returns
Type Description
LunOrBuilder

getLunsOrBuilderList()

public List<? extends LunOrBuilder> getLunsOrBuilderList()

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Returns
Type Description
List<? extends com.google.cloud.baremetalsolution.v2.LunOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results from the server.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeLuns(int index)

public ListLunsResponse.Builder removeLuns(int index)

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Parameter
Name Description
index int
Returns
Type Description
ListLunsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLuns(int index, Lun value)

public ListLunsResponse.Builder setLuns(int index, Lun value)

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Parameters
Name Description
index int
value Lun
Returns
Type Description
ListLunsResponse.Builder

setLuns(int index, Lun.Builder builderForValue)

public ListLunsResponse.Builder setLuns(int index, Lun.Builder builderForValue)

The list of luns.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 1;

Parameters
Name Description
index int
builderForValue Lun.Builder
Returns
Type Description
ListLunsResponse.Builder

setNextPageToken(String value)

public ListLunsResponse.Builder setNextPageToken(String value)

A token identifying a page of results from the server.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListLunsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListLunsResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results from the server.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListLunsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListLunsResponse.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
ListLunsResponse.Builder

This builder for chaining.