Class ListQuotaPreferencesResponse.Builder (0.17.0)

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

Message for response to listing QuotaPreferences

Protobuf type google.api.cloudquotas.v1.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.v1.QuotaPreference quota_preferences = 1;

Parameter
Name Description
values Iterable<? extends com.google.api.cloudquotas.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.QuotaPreference quota_preferences = 1;

Parameter
Name Description
index int
Returns
Type Description
QuotaPreference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public ListQuotaPreferencesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuotaPreferences()

public ListQuotaPreferencesResponse.Builder clearQuotaPreferences()

The list of QuotaPreference

repeated .google.api.cloudquotas.v1.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.

clone()

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

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.v1.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.v1.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.v1.QuotaPreference quota_preferences = 1;

Returns
Type Description
List<Builder>

getQuotaPreferencesCount()

public int getQuotaPreferencesCount()

The list of QuotaPreference

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

Returns
Type Description
int

getQuotaPreferencesList()

public List<QuotaPreference> getQuotaPreferencesList()

The list of QuotaPreference

repeated .google.api.cloudquotas.v1.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.v1.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.v1.QuotaPreference quota_preferences = 1;

Returns
Type Description
List<? extends com.google.api.cloudquotas.v1.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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeQuotaPreferences(int index)

public ListQuotaPreferencesResponse.Builder removeQuotaPreferences(int index)

The list of QuotaPreference

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

Parameter
Name Description
index int
Returns
Type Description
ListQuotaPreferencesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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.v1.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.v1.QuotaPreference quota_preferences = 1;

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

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.