Class PackagesSummaryResponse.Builder (2.54.0)

public static final class PackagesSummaryResponse.Builder extends GeneratedMessageV3.Builder<PackagesSummaryResponse.Builder> implements PackagesSummaryResponseOrBuilder

A summary of the packages found within the given resource.

Protobuf type google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

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

public PackagesSummaryResponse.Builder addAllLicensesSummary(Iterable<? extends PackagesSummaryResponse.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)

public PackagesSummaryResponse.Builder addLicensesSummary(PackagesSummaryResponse.LicensesSummary value)

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)

public PackagesSummaryResponse.Builder addLicensesSummary(PackagesSummaryResponse.LicensesSummary.Builder builderForValue)

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)

public PackagesSummaryResponse.Builder addLicensesSummary(int index, PackagesSummaryResponse.LicensesSummary value)

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)

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

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()

public PackagesSummaryResponse.LicensesSummary.Builder addLicensesSummaryBuilder()

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)

public PackagesSummaryResponse.LicensesSummary.Builder addLicensesSummaryBuilder(int index)

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)

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

build()

public PackagesSummaryResponse build()
Returns
Type Description
PackagesSummaryResponse

buildPartial()

public PackagesSummaryResponse buildPartial()
Returns
Type Description
PackagesSummaryResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLicensesSummary()

public PackagesSummaryResponse.Builder clearLicensesSummary()

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)

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

clearResourceUrl()

public PackagesSummaryResponse.Builder clearResourceUrl()

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()

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

getDefaultInstanceForType()

public PackagesSummaryResponse getDefaultInstanceForType()
Returns
Type Description
PackagesSummaryResponse

getDescriptorForType()

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

getLicensesSummary(int index)

public PackagesSummaryResponse.LicensesSummary getLicensesSummary(int index)

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)

public PackagesSummaryResponse.LicensesSummary.Builder getLicensesSummaryBuilder(int index)

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()

public List<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()

public int getLicensesSummaryCount()

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()

public List<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)

public PackagesSummaryResponse.LicensesSummaryOrBuilder getLicensesSummaryOrBuilder(int index)

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()

public List<? extends PackagesSummaryResponse.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()

public String getResourceUrl()

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()

public ByteString getResourceUrlBytes()

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()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PackagesSummaryResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeLicensesSummary(int index)

public PackagesSummaryResponse.Builder removeLicensesSummary(int index)

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)

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

setLicensesSummary(int index, PackagesSummaryResponse.LicensesSummary value)

public PackagesSummaryResponse.Builder setLicensesSummary(int index, PackagesSummaryResponse.LicensesSummary value)

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)

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

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)

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

setResourceUrl(String value)

public PackagesSummaryResponse.Builder setResourceUrl(String value)

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)

public PackagesSummaryResponse.Builder setResourceUrlBytes(ByteString value)

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)

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