Class ListUnitsResponse.Builder (0.15.0)

public static final class ListUnitsResponse.Builder extends GeneratedMessage.Builder<ListUnitsResponse.Builder> implements ListUnitsResponseOrBuilder

The response structure for the ListUnits method.

Protobuf type google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse

Static Methods

getDescriptor()

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

Methods

addAllUnits(Iterable<? extends Unit> values)

public ListUnitsResponse.Builder addAllUnits(Iterable<? extends Unit> values)

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Parameter
Name Description
values Iterable<? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit>
Returns
Type Description
ListUnitsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 10511;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListUnitsResponse.Builder

This builder for chaining.

addUnits(Unit value)

public ListUnitsResponse.Builder addUnits(Unit value)

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Parameter
Name Description
value Unit
Returns
Type Description
ListUnitsResponse.Builder

addUnits(Unit.Builder builderForValue)

public ListUnitsResponse.Builder addUnits(Unit.Builder builderForValue)

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Parameter
Name Description
builderForValue Unit.Builder
Returns
Type Description
ListUnitsResponse.Builder

addUnits(int index, Unit value)

public ListUnitsResponse.Builder addUnits(int index, Unit value)

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Parameters
Name Description
index int
value Unit
Returns
Type Description
ListUnitsResponse.Builder

addUnits(int index, Unit.Builder builderForValue)

public ListUnitsResponse.Builder addUnits(int index, Unit.Builder builderForValue)

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Parameters
Name Description
index int
builderForValue Unit.Builder
Returns
Type Description
ListUnitsResponse.Builder

addUnitsBuilder()

public Unit.Builder addUnitsBuilder()

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Returns
Type Description
Unit.Builder

addUnitsBuilder(int index)

public Unit.Builder addUnitsBuilder(int index)

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Parameter
Name Description
index int
Returns
Type Description
Unit.Builder

addUnreachable(String value)

public ListUnitsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 10511;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListUnitsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListUnitsResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 10511;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListUnitsResponse.Builder

This builder for chaining.

build()

public ListUnitsResponse build()
Returns
Type Description
ListUnitsResponse

buildPartial()

public ListUnitsResponse buildPartial()
Returns
Type Description
ListUnitsResponse

clear()

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

clearNextPageToken()

public ListUnitsResponse.Builder clearNextPageToken()

If present, the next page token can be provided to a subsequent ListUnits call to list the next page. If empty, there are no more pages.

string next_page_token = 10510;

Returns
Type Description
ListUnitsResponse.Builder

This builder for chaining.

clearUnits()

public ListUnitsResponse.Builder clearUnits()

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Returns
Type Description
ListUnitsResponse.Builder

clearUnreachable()

public ListUnitsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 10511;

Returns
Type Description
ListUnitsResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListUnitsResponse getDefaultInstanceForType()
Returns
Type Description
ListUnitsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

If present, the next page token can be provided to a subsequent ListUnits call to list the next page. If empty, there are no more pages.

string next_page_token = 10510;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If present, the next page token can be provided to a subsequent ListUnits call to list the next page. If empty, there are no more pages.

string next_page_token = 10510;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnits(int index)

public Unit getUnits(int index)

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Parameter
Name Description
index int
Returns
Type Description
Unit

getUnitsBuilder(int index)

public Unit.Builder getUnitsBuilder(int index)

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Parameter
Name Description
index int
Returns
Type Description
Unit.Builder

getUnitsBuilderList()

public List<Unit.Builder> getUnitsBuilderList()

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Returns
Type Description
List<Builder>

getUnitsCount()

public int getUnitsCount()

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Returns
Type Description
int

getUnitsList()

public List<Unit> getUnitsList()

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Returns
Type Description
List<Unit>

getUnitsOrBuilder(int index)

public UnitOrBuilder getUnitsOrBuilder(int index)

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Parameter
Name Description
index int
Returns
Type Description
UnitOrBuilder

getUnitsOrBuilderList()

public List<? extends UnitOrBuilder> getUnitsOrBuilderList()

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Returns
Type Description
List<? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 10511;

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 = 10511;

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 = 10511;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 10511;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListUnitsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeUnits(int index)

public ListUnitsResponse.Builder removeUnits(int index)

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Parameter
Name Description
index int
Returns
Type Description
ListUnitsResponse.Builder

setNextPageToken(String value)

public ListUnitsResponse.Builder setNextPageToken(String value)

If present, the next page token can be provided to a subsequent ListUnits call to list the next page. If empty, there are no more pages.

string next_page_token = 10510;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListUnitsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListUnitsResponse.Builder setNextPageTokenBytes(ByteString value)

If present, the next page token can be provided to a subsequent ListUnits call to list the next page. If empty, there are no more pages.

string next_page_token = 10510;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListUnitsResponse.Builder

This builder for chaining.

setUnits(int index, Unit value)

public ListUnitsResponse.Builder setUnits(int index, Unit value)

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Parameters
Name Description
index int
value Unit
Returns
Type Description
ListUnitsResponse.Builder

setUnits(int index, Unit.Builder builderForValue)

public ListUnitsResponse.Builder setUnits(int index, Unit.Builder builderForValue)

The resulting units.

repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509;

Parameters
Name Description
index int
builderForValue Unit.Builder
Returns
Type Description
ListUnitsResponse.Builder

setUnreachable(int index, String value)

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

Locations that could not be reached.

repeated string unreachable = 10511;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListUnitsResponse.Builder

This builder for chaining.