Class ListLunsResponse.Builder (0.20.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.Lun>
Returns
TypeDescription
ListLunsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueLun
Returns
TypeDescription
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
NameDescription
builderForValueLun.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueLun
Returns
TypeDescription
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
NameDescription
indexint
builderForValueLun.Builder
Returns
TypeDescription
ListLunsResponse.Builder

addLunsBuilder()

public Lun.Builder addLunsBuilder()

The list of luns.

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

Returns
TypeDescription
Lun.Builder

addLunsBuilder(int index)

public Lun.Builder addLunsBuilder(int index)

The list of luns.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Lun.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListLunsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListLunsResponse.Builder

This builder for chaining.

build()

public ListLunsResponse build()
Returns
TypeDescription
ListLunsResponse

buildPartial()

public ListLunsResponse buildPartial()
Returns
TypeDescription
ListLunsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLuns()

public ListLunsResponse.Builder clearLuns()

The list of luns.

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

Returns
TypeDescription
ListLunsResponse.Builder

clearNextPageToken()

public ListLunsResponse.Builder clearNextPageToken()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
TypeDescription
ListLunsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListLunsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListLunsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListLunsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListLunsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLuns(int index)

public Lun getLuns(int index)

The list of luns.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Lun

getLunsBuilder(int index)

public Lun.Builder getLunsBuilder(int index)

The list of luns.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Lun.Builder

getLunsBuilderList()

public List<Lun.Builder> getLunsBuilderList()

The list of luns.

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

Returns
TypeDescription
List<Builder>

getLunsCount()

public int getLunsCount()

The list of luns.

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

Returns
TypeDescription
int

getLunsList()

public List<Lun> getLunsList()

The list of luns.

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

Returns
TypeDescription
List<Lun>

getLunsOrBuilder(int index)

public LunOrBuilder getLunsOrBuilder(int index)

The list of luns.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LunOrBuilder

getLunsOrBuilderList()

public List<? extends LunOrBuilder> getLunsOrBuilderList()

The list of luns.

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

Returns
TypeDescription
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
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

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)

Locations that could not be reached.

repeated string unreachable = 3;

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

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListLunsResponse other)

public ListLunsResponse.Builder mergeFrom(ListLunsResponse other)
Parameter
NameDescription
otherListLunsResponse
Returns
TypeDescription
ListLunsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListLunsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListLunsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListLunsResponse.Builder

This builder for chaining.