Class PackagesSummaryResponse.Builder (2.52.0)

publicstaticfinalclass PackagesSummaryResponse.BuilderextendsGeneratedMessageV3.Builder<PackagesSummaryResponse.Builder>implementsPackagesSummaryResponseOrBuilder

A summary of the packages found within the given resource.

Protobuf type google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllLicensesSummary(Iterable<? extends PackagesSummaryResponse.LicensesSummary> values)

publicPackagesSummaryResponse.BuilderaddAllLicensesSummary(Iterable<?extendsPackagesSummaryResponse.LicensesSummary>values)

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Parameter
Name Description
values Iterable<? extends com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary>
Returns
Type Description
PackagesSummaryResponse.Builder

addLicensesSummary(PackagesSummaryResponse.LicensesSummary value)

publicPackagesSummaryResponse.BuilderaddLicensesSummary(PackagesSummaryResponse.LicensesSummaryvalue)

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Parameter
Name Description
value PackagesSummaryResponse.LicensesSummary
Returns
Type Description
PackagesSummaryResponse.Builder

addLicensesSummary(PackagesSummaryResponse.LicensesSummary.Builder builderForValue)

publicPackagesSummaryResponse.BuilderaddLicensesSummary(PackagesSummaryResponse.LicensesSummary.BuilderbuilderForValue)

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Parameter
Name Description
builderForValue PackagesSummaryResponse.LicensesSummary.Builder
Returns
Type Description
PackagesSummaryResponse.Builder

addLicensesSummary(int index, PackagesSummaryResponse.LicensesSummary value)

publicPackagesSummaryResponse.BuilderaddLicensesSummary(intindex,PackagesSummaryResponse.LicensesSummaryvalue)

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Parameters
Name Description
index int
value PackagesSummaryResponse.LicensesSummary
Returns
Type Description
PackagesSummaryResponse.Builder

addLicensesSummary(int index, PackagesSummaryResponse.LicensesSummary.Builder builderForValue)

publicPackagesSummaryResponse.BuilderaddLicensesSummary(intindex,PackagesSummaryResponse.LicensesSummary.BuilderbuilderForValue)

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Parameters
Name Description
index int
builderForValue PackagesSummaryResponse.LicensesSummary.Builder
Returns
Type Description
PackagesSummaryResponse.Builder

addLicensesSummaryBuilder()

publicPackagesSummaryResponse.LicensesSummary.BuilderaddLicensesSummaryBuilder()

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Returns
Type Description
PackagesSummaryResponse.LicensesSummary.Builder

addLicensesSummaryBuilder(int index)

publicPackagesSummaryResponse.LicensesSummary.BuilderaddLicensesSummaryBuilder(intindex)

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Parameter
Name Description
index int
Returns
Type Description
PackagesSummaryResponse.LicensesSummary.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicPackagesSummaryResponse.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PackagesSummaryResponse.Builder
Overrides

build()

publicPackagesSummaryResponsebuild()
Returns
Type Description
PackagesSummaryResponse

buildPartial()

publicPackagesSummaryResponsebuildPartial()
Returns
Type Description
PackagesSummaryResponse

clear()

publicPackagesSummaryResponse.Builderclear()
Returns
Type Description
PackagesSummaryResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicPackagesSummaryResponse.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PackagesSummaryResponse.Builder
Overrides

clearLicensesSummary()

publicPackagesSummaryResponse.BuilderclearLicensesSummary()

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Returns
Type Description
PackagesSummaryResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicPackagesSummaryResponse.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PackagesSummaryResponse.Builder
Overrides

clearResourceUrl()

publicPackagesSummaryResponse.BuilderclearResourceUrl()

The unique URL of the image or the container for which this summary applies.

string resource_url = 1;

Returns
Type Description
PackagesSummaryResponse.Builder

This builder for chaining.

clone()

publicPackagesSummaryResponse.Builderclone()
Returns
Type Description
PackagesSummaryResponse.Builder
Overrides

getDefaultInstanceForType()

publicPackagesSummaryResponsegetDefaultInstanceForType()
Returns
Type Description
PackagesSummaryResponse

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLicensesSummary(int index)

publicPackagesSummaryResponse.LicensesSummarygetLicensesSummary(intindex)

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Parameter
Name Description
index int
Returns
Type Description
PackagesSummaryResponse.LicensesSummary

getLicensesSummaryBuilder(int index)

publicPackagesSummaryResponse.LicensesSummary.BuildergetLicensesSummaryBuilder(intindex)

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Parameter
Name Description
index int
Returns
Type Description
PackagesSummaryResponse.LicensesSummary.Builder

getLicensesSummaryBuilderList()

publicList<PackagesSummaryResponse.LicensesSummary.Builder>getLicensesSummaryBuilderList()

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Returns
Type Description
List<Builder>

getLicensesSummaryCount()

publicintgetLicensesSummaryCount()

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Returns
Type Description
int

getLicensesSummaryList()

publicList<PackagesSummaryResponse.LicensesSummary>getLicensesSummaryList()

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Returns
Type Description
List<LicensesSummary>

getLicensesSummaryOrBuilder(int index)

publicPackagesSummaryResponse.LicensesSummaryOrBuildergetLicensesSummaryOrBuilder(intindex)

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Parameter
Name Description
index int
Returns
Type Description
PackagesSummaryResponse.LicensesSummaryOrBuilder

getLicensesSummaryOrBuilderList()

publicList<?extendsPackagesSummaryResponse.LicensesSummaryOrBuilder>getLicensesSummaryOrBuilderList()

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Returns
Type Description
List<? extends com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummaryOrBuilder>

getResourceUrl()

publicStringgetResourceUrl()

The unique URL of the image or the container for which this summary applies.

string resource_url = 1;

Returns
Type Description
String

The resourceUrl.

getResourceUrlBytes()

publicByteStringgetResourceUrlBytes()

The unique URL of the image or the container for which this summary applies.

string resource_url = 1;

Returns
Type Description
ByteString

The bytes for resourceUrl.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PackagesSummaryResponse other)

publicPackagesSummaryResponse.BuildermergeFrom(PackagesSummaryResponseother)
Parameter
Name Description
other PackagesSummaryResponse
Returns
Type Description
PackagesSummaryResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicPackagesSummaryResponse.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PackagesSummaryResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicPackagesSummaryResponse.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
PackagesSummaryResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalPackagesSummaryResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PackagesSummaryResponse.Builder
Overrides

removeLicensesSummary(int index)

publicPackagesSummaryResponse.BuilderremoveLicensesSummary(intindex)

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Parameter
Name Description
index int
Returns
Type Description
PackagesSummaryResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicPackagesSummaryResponse.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PackagesSummaryResponse.Builder
Overrides

setLicensesSummary(int index, PackagesSummaryResponse.LicensesSummary value)

publicPackagesSummaryResponse.BuildersetLicensesSummary(intindex,PackagesSummaryResponse.LicensesSummaryvalue)

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Parameters
Name Description
index int
value PackagesSummaryResponse.LicensesSummary
Returns
Type Description
PackagesSummaryResponse.Builder

setLicensesSummary(int index, PackagesSummaryResponse.LicensesSummary.Builder builderForValue)

publicPackagesSummaryResponse.BuildersetLicensesSummary(intindex,PackagesSummaryResponse.LicensesSummary.BuilderbuilderForValue)

A listing by license name of each of the licenses and their counts.

repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2;

Parameters
Name Description
index int
builderForValue PackagesSummaryResponse.LicensesSummary.Builder
Returns
Type Description
PackagesSummaryResponse.Builder

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

publicPackagesSummaryResponse.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PackagesSummaryResponse.Builder
Overrides

setResourceUrl(String value)

publicPackagesSummaryResponse.BuildersetResourceUrl(Stringvalue)

The unique URL of the image or the container for which this summary applies.

string resource_url = 1;

Parameter
Name Description
value String

The resourceUrl to set.

Returns
Type Description
PackagesSummaryResponse.Builder

This builder for chaining.

setResourceUrlBytes(ByteString value)

publicPackagesSummaryResponse.BuildersetResourceUrlBytes(ByteStringvalue)

The unique URL of the image or the container for which this summary applies.

string resource_url = 1;

Parameter
Name Description
value ByteString

The bytes for resourceUrl to set.

Returns
Type Description
PackagesSummaryResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalPackagesSummaryResponse.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PackagesSummaryResponse.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.