Class ResourceInfoList.Builder (1.47.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
Type Description
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
Name Description
values Iterable<? extends com.google.api.servicecontrol.v2.ResourceInfo>
Returns
Type Description
ResourceInfoList.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResources(ResourceInfo value)

public ResourceInfoList.Builder addResources(ResourceInfo value)

The resource details.

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

Parameter
Name Description
value ResourceInfo
Returns
Type Description
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
Name Description
builderForValue ResourceInfo.Builder
Returns
Type Description
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
Name Description
index int
value ResourceInfo
Returns
Type Description
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
Name Description
index int
builderForValue ResourceInfo.Builder
Returns
Type Description
ResourceInfoList.Builder

addResourcesBuilder()

public ResourceInfo.Builder addResourcesBuilder()

The resource details.

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

Returns
Type Description
ResourceInfo.Builder

addResourcesBuilder(int index)

public ResourceInfo.Builder addResourcesBuilder(int index)

The resource details.

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

Parameter
Name Description
index int
Returns
Type Description
ResourceInfo.Builder

build()

public ResourceInfoList build()
Returns
Type Description
ResourceInfoList

buildPartial()

public ResourceInfoList buildPartial()
Returns
Type Description
ResourceInfoList

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ResourceInfoList.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResourceInfoList.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResources()

public ResourceInfoList.Builder clearResources()

The resource details.

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

Returns
Type Description
ResourceInfoList.Builder

clone()

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

getDefaultInstanceForType()

public ResourceInfoList getDefaultInstanceForType()
Returns
Type Description
ResourceInfoList

getDescriptorForType()

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

getResources(int index)

public ResourceInfo getResources(int index)

The resource details.

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

Parameter
Name Description
index int
Returns
Type Description
ResourceInfo

getResourcesBuilder(int index)

public ResourceInfo.Builder getResourcesBuilder(int index)

The resource details.

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

Parameter
Name Description
index int
Returns
Type Description
ResourceInfo.Builder

getResourcesBuilderList()

public List<ResourceInfo.Builder> getResourcesBuilderList()

The resource details.

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

Returns
Type Description
List<Builder>

getResourcesCount()

public int getResourcesCount()

The resource details.

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

Returns
Type Description
int

getResourcesList()

public List<ResourceInfo> getResourcesList()

The resource details.

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

Returns
Type Description
List<ResourceInfo>

getResourcesOrBuilder(int index)

public ResourceInfoOrBuilder getResourcesOrBuilder(int index)

The resource details.

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

Parameter
Name Description
index int
Returns
Type Description
ResourceInfoOrBuilder

getResourcesOrBuilderList()

public List<? extends ResourceInfoOrBuilder> getResourcesOrBuilderList()

The resource details.

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceInfoList other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeResources(int index)

public ResourceInfoList.Builder removeResources(int index)

The resource details.

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

Parameter
Name Description
index int
Returns
Type Description
ResourceInfoList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ResourceInfoList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int
value ResourceInfo
Returns
Type Description
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
Name Description
index int
builderForValue ResourceInfo.Builder
Returns
Type Description
ResourceInfoList.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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