Class ListQuotaPreferencesResponse.Builder (0.51.0)

public static final class ListQuotaPreferencesResponse.Builder extends GeneratedMessage.Builder<ListQuotaPreferencesResponse.Builder> implements ListQuotaPreferencesResponseOrBuilder

Message for response to listing QuotaPreferences

Protobuf type google.api.cloudquotas.v1beta.ListQuotaPreferencesResponse

Static Methods

getDescriptor()

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

Methods

addAllQuotaPreferences(Iterable<? extends QuotaPreference> values)

public ListQuotaPreferencesResponse.Builder addAllQuotaPreferences(Iterable<? extends QuotaPreference> values)

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Parameter
Name Description
values Iterable<? extends com.google.api.cloudquotas.v1beta.QuotaPreference>
Returns
Type Description
ListQuotaPreferencesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addQuotaPreferences(QuotaPreference value)

public ListQuotaPreferencesResponse.Builder addQuotaPreferences(QuotaPreference value)

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Parameter
Name Description
value QuotaPreference
Returns
Type Description
ListQuotaPreferencesResponse.Builder

addQuotaPreferences(QuotaPreference.Builder builderForValue)

public ListQuotaPreferencesResponse.Builder addQuotaPreferences(QuotaPreference.Builder builderForValue)

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Parameter
Name Description
builderForValue QuotaPreference.Builder
Returns
Type Description
ListQuotaPreferencesResponse.Builder

addQuotaPreferences(int index, QuotaPreference value)

public ListQuotaPreferencesResponse.Builder addQuotaPreferences(int index, QuotaPreference value)

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Parameters
Name Description
index int
value QuotaPreference
Returns
Type Description
ListQuotaPreferencesResponse.Builder

addQuotaPreferences(int index, QuotaPreference.Builder builderForValue)

public ListQuotaPreferencesResponse.Builder addQuotaPreferences(int index, QuotaPreference.Builder builderForValue)

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Parameters
Name Description
index int
builderForValue QuotaPreference.Builder
Returns
Type Description
ListQuotaPreferencesResponse.Builder

addQuotaPreferencesBuilder()

public QuotaPreference.Builder addQuotaPreferencesBuilder()

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Returns
Type Description
QuotaPreference.Builder

addQuotaPreferencesBuilder(int index)

public QuotaPreference.Builder addQuotaPreferencesBuilder(int index)

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Parameter
Name Description
index int
Returns
Type Description
QuotaPreference.Builder

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListQuotaPreferencesResponse build()
Returns
Type Description
ListQuotaPreferencesResponse

buildPartial()

public ListQuotaPreferencesResponse buildPartial()
Returns
Type Description
ListQuotaPreferencesResponse

clear()

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

clearNextPageToken()

public ListQuotaPreferencesResponse.Builder clearNextPageToken()

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;

Returns
Type Description
ListQuotaPreferencesResponse.Builder

This builder for chaining.

clearQuotaPreferences()

public ListQuotaPreferencesResponse.Builder clearQuotaPreferences()

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Returns
Type Description
ListQuotaPreferencesResponse.Builder

clearUnreachable()

public ListQuotaPreferencesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListQuotaPreferencesResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListQuotaPreferencesResponse getDefaultInstanceForType()
Returns
Type Description
ListQuotaPreferencesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

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;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getQuotaPreferences(int index)

public QuotaPreference getQuotaPreferences(int index)

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Parameter
Name Description
index int
Returns
Type Description
QuotaPreference

getQuotaPreferencesBuilder(int index)

public QuotaPreference.Builder getQuotaPreferencesBuilder(int index)

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Parameter
Name Description
index int
Returns
Type Description
QuotaPreference.Builder

getQuotaPreferencesBuilderList()

public List<QuotaPreference.Builder> getQuotaPreferencesBuilderList()

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Returns
Type Description
List<Builder>

getQuotaPreferencesCount()

public int getQuotaPreferencesCount()

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Returns
Type Description
int

getQuotaPreferencesList()

public List<QuotaPreference> getQuotaPreferencesList()

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Returns
Type Description
List<QuotaPreference>

getQuotaPreferencesOrBuilder(int index)

public QuotaPreferenceOrBuilder getQuotaPreferencesOrBuilder(int index)

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Parameter
Name Description
index int
Returns
Type Description
QuotaPreferenceOrBuilder

getQuotaPreferencesOrBuilderList()

public List<? extends QuotaPreferenceOrBuilder> getQuotaPreferencesOrBuilderList()

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Returns
Type Description
List<? extends com.google.api.cloudquotas.v1beta.QuotaPreferenceOrBuilder>

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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListQuotaPreferencesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeQuotaPreferences(int index)

public ListQuotaPreferencesResponse.Builder removeQuotaPreferences(int index)

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Parameter
Name Description
index int
Returns
Type Description
ListQuotaPreferencesResponse.Builder

setNextPageToken(String value)

public ListQuotaPreferencesResponse.Builder setNextPageToken(String value)

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;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListQuotaPreferencesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListQuotaPreferencesResponse.Builder setNextPageTokenBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListQuotaPreferencesResponse.Builder

This builder for chaining.

setQuotaPreferences(int index, QuotaPreference value)

public ListQuotaPreferencesResponse.Builder setQuotaPreferences(int index, QuotaPreference value)

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Parameters
Name Description
index int
value QuotaPreference
Returns
Type Description
ListQuotaPreferencesResponse.Builder

setQuotaPreferences(int index, QuotaPreference.Builder builderForValue)

public ListQuotaPreferencesResponse.Builder setQuotaPreferences(int index, QuotaPreference.Builder builderForValue)

The list of QuotaPreference

repeated .google.api.cloudquotas.v1beta.QuotaPreference quota_preferences = 1;

Parameters
Name Description
index int
builderForValue QuotaPreference.Builder
Returns
Type Description
ListQuotaPreferencesResponse.Builder

setUnreachable(int index, String value)

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

This builder for chaining.