Class ListQuotaPreferencesResponse.Builder (0.3.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.cloudquotas.v1.QuotaPreference>
Returns
TypeDescription
ListQuotaPreferencesResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListQuotaPreferencesResponse.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
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
NameDescription
valueQuotaPreference
Returns
TypeDescription
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
NameDescription
builderForValueQuotaPreference.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueQuotaPreference
Returns
TypeDescription
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
NameDescription
indexint
builderForValueQuotaPreference.Builder
Returns
TypeDescription
ListQuotaPreferencesResponse.Builder

addQuotaPreferencesBuilder()

public QuotaPreference.Builder addQuotaPreferencesBuilder()

The list of QuotaPreference

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
QuotaPreference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListQuotaPreferencesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListQuotaPreferencesResponse.Builder

This builder for chaining.

build()

public ListQuotaPreferencesResponse build()
Returns
TypeDescription
ListQuotaPreferencesResponse

buildPartial()

public ListQuotaPreferencesResponse buildPartial()
Returns
TypeDescription
ListQuotaPreferencesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListQuotaPreferencesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListQuotaPreferencesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuotaPreferences()

public ListQuotaPreferencesResponse.Builder clearQuotaPreferences()

The list of QuotaPreference

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

Returns
TypeDescription
ListQuotaPreferencesResponse.Builder

clearUnreachable()

public ListQuotaPreferencesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListQuotaPreferencesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListQuotaPreferencesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListQuotaPreferencesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
QuotaPreference

getQuotaPreferencesBuilder(int index)

public QuotaPreference.Builder getQuotaPreferencesBuilder(int index)

The list of QuotaPreference

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

Parameter
NameDescription
indexint
Returns
TypeDescription
QuotaPreference.Builder

getQuotaPreferencesBuilderList()

public List<QuotaPreference.Builder> getQuotaPreferencesBuilderList()

The list of QuotaPreference

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

Returns
TypeDescription
List<Builder>

getQuotaPreferencesCount()

public int getQuotaPreferencesCount()

The list of QuotaPreference

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

Returns
TypeDescription
int

getQuotaPreferencesList()

public List<QuotaPreference> getQuotaPreferencesList()

The list of QuotaPreference

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

Returns
TypeDescription
List<QuotaPreference>

getQuotaPreferencesOrBuilder(int index)

public QuotaPreferenceOrBuilder getQuotaPreferencesOrBuilder(int index)

The list of QuotaPreference

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

Parameter
NameDescription
indexint
Returns
TypeDescription
QuotaPreferenceOrBuilder

getQuotaPreferencesOrBuilderList()

public List<? extends QuotaPreferenceOrBuilder> getQuotaPreferencesOrBuilderList()

The list of QuotaPreference

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

Returns
TypeDescription
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
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(ListQuotaPreferencesResponse other)

public ListQuotaPreferencesResponse.Builder mergeFrom(ListQuotaPreferencesResponse other)
Parameter
NameDescription
otherListQuotaPreferencesResponse
Returns
TypeDescription
ListQuotaPreferencesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valueQuotaPreference
Returns
TypeDescription
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
NameDescription
indexint
builderForValueQuotaPreference.Builder
Returns
TypeDescription
ListQuotaPreferencesResponse.Builder

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

public ListQuotaPreferencesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListQuotaPreferencesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListQuotaPreferencesResponse.Builder

This builder for chaining.