Class ResourceInfoList.Builder (1.34.0)

public static final class ResourceInfoList.Builder extends GeneratedMessageV3.Builder<ResourceInfoList.Builder> implements ResourceInfoListOrBuilder

Message containing resource details in a batch mode.

Protobuf type google.api.servicecontrol.v2.ResourceInfoList

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllResources(Iterable<? extends ResourceInfo> values)

public ResourceInfoList.Builder addAllResources(Iterable<? extends ResourceInfo> values)

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.api.servicecontrol.v2.ResourceInfo>
Returns
TypeDescription
ResourceInfoList.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResources(ResourceInfo value)

public ResourceInfoList.Builder addResources(ResourceInfo value)

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Parameter
NameDescription
valueResourceInfo
Returns
TypeDescription
ResourceInfoList.Builder

addResources(ResourceInfo.Builder builderForValue)

public ResourceInfoList.Builder addResources(ResourceInfo.Builder builderForValue)

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Parameter
NameDescription
builderForValueResourceInfo.Builder
Returns
TypeDescription
ResourceInfoList.Builder

addResources(int index, ResourceInfo value)

public ResourceInfoList.Builder addResources(int index, ResourceInfo value)

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Parameters
NameDescription
indexint
valueResourceInfo
Returns
TypeDescription
ResourceInfoList.Builder

addResources(int index, ResourceInfo.Builder builderForValue)

public ResourceInfoList.Builder addResources(int index, ResourceInfo.Builder builderForValue)

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Parameters
NameDescription
indexint
builderForValueResourceInfo.Builder
Returns
TypeDescription
ResourceInfoList.Builder

addResourcesBuilder()

public ResourceInfo.Builder addResourcesBuilder()

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Returns
TypeDescription
ResourceInfo.Builder

addResourcesBuilder(int index)

public ResourceInfo.Builder addResourcesBuilder(int index)

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceInfo.Builder

build()

public ResourceInfoList build()
Returns
TypeDescription
ResourceInfoList

buildPartial()

public ResourceInfoList buildPartial()
Returns
TypeDescription
ResourceInfoList

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResources()

public ResourceInfoList.Builder clearResources()

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Returns
TypeDescription
ResourceInfoList.Builder

clone()

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

getDefaultInstanceForType()

public ResourceInfoList getDefaultInstanceForType()
Returns
TypeDescription
ResourceInfoList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getResources(int index)

public ResourceInfo getResources(int index)

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceInfo

getResourcesBuilder(int index)

public ResourceInfo.Builder getResourcesBuilder(int index)

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceInfo.Builder

getResourcesBuilderList()

public List<ResourceInfo.Builder> getResourcesBuilderList()

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Returns
TypeDescription
List<Builder>

getResourcesCount()

public int getResourcesCount()

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Returns
TypeDescription
int

getResourcesList()

public List<ResourceInfo> getResourcesList()

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Returns
TypeDescription
List<ResourceInfo>

getResourcesOrBuilder(int index)

public ResourceInfoOrBuilder getResourcesOrBuilder(int index)

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceInfoOrBuilder

getResourcesOrBuilderList()

public List<? extends ResourceInfoOrBuilder> getResourcesOrBuilderList()

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Returns
TypeDescription
List<? extends com.google.api.servicecontrol.v2.ResourceInfoOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResourceInfoList other)

public ResourceInfoList.Builder mergeFrom(ResourceInfoList other)
Parameter
NameDescription
otherResourceInfoList
Returns
TypeDescription
ResourceInfoList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceInfoList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResourceInfoList.Builder
Overrides

removeResources(int index)

public ResourceInfoList.Builder removeResources(int index)

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceInfoList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResources(int index, ResourceInfo value)

public ResourceInfoList.Builder setResources(int index, ResourceInfo value)

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Parameters
NameDescription
indexint
valueResourceInfo
Returns
TypeDescription
ResourceInfoList.Builder

setResources(int index, ResourceInfo.Builder builderForValue)

public ResourceInfoList.Builder setResources(int index, ResourceInfo.Builder builderForValue)

The resource details.

repeated .google.api.servicecontrol.v2.ResourceInfo resources = 1;

Parameters
NameDescription
indexint
builderForValueResourceInfo.Builder
Returns
TypeDescription
ResourceInfoList.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceInfoList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResourceInfoList.Builder
Overrides