All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.containeranalysis.v1beta1.PackagesSummaryResponse Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/devtools/containeranalysis/v1beta1/containeranalysis.proto

// Protobuf Java Version: 3.25.5
package com.google.containeranalysis.v1beta1;

/**
 *
 *
 * 
 * A summary of the packages found within the given resource.
 * 
* * Protobuf type {@code google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse} */ public final class PackagesSummaryResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse) PackagesSummaryResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PackagesSummaryResponse.newBuilder() to construct. private PackagesSummaryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PackagesSummaryResponse() { resourceUrl_ = ""; licensesSummary_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PackagesSummaryResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.containeranalysis.v1beta1.Containeranalysis .internal_static_google_devtools_containeranalysis_v1beta1_PackagesSummaryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.containeranalysis.v1beta1.Containeranalysis .internal_static_google_devtools_containeranalysis_v1beta1_PackagesSummaryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.containeranalysis.v1beta1.PackagesSummaryResponse.class, com.google.containeranalysis.v1beta1.PackagesSummaryResponse.Builder.class); } public interface LicensesSummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary) com.google.protobuf.MessageOrBuilder { /** * * *
     * The license of the package. Note that the format of this value is not
     * guaranteed. It may be nil, an empty string, a boolean value (A | B), a
     * differently formed boolean value (A OR B), etc...
     * 
* * string license = 1; * * @return The license. */ java.lang.String getLicense(); /** * * *
     * The license of the package. Note that the format of this value is not
     * guaranteed. It may be nil, an empty string, a boolean value (A | B), a
     * differently formed boolean value (A OR B), etc...
     * 
* * string license = 1; * * @return The bytes for license. */ com.google.protobuf.ByteString getLicenseBytes(); /** * * *
     * The number of fixable vulnerabilities associated with this resource.
     * 
* * int64 count = 2; * * @return The count. */ long getCount(); } /** * * *
   * Per license count
   * 
* * Protobuf type {@code * google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary} */ public static final class LicensesSummary extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary) LicensesSummaryOrBuilder { private static final long serialVersionUID = 0L; // Use LicensesSummary.newBuilder() to construct. private LicensesSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LicensesSummary() { license_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LicensesSummary(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.containeranalysis.v1beta1.Containeranalysis .internal_static_google_devtools_containeranalysis_v1beta1_PackagesSummaryResponse_LicensesSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.containeranalysis.v1beta1.Containeranalysis .internal_static_google_devtools_containeranalysis_v1beta1_PackagesSummaryResponse_LicensesSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary.class, com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary.Builder .class); } public static final int LICENSE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object license_ = ""; /** * * *
     * The license of the package. Note that the format of this value is not
     * guaranteed. It may be nil, an empty string, a boolean value (A | B), a
     * differently formed boolean value (A OR B), etc...
     * 
* * string license = 1; * * @return The license. */ @java.lang.Override public java.lang.String getLicense() { java.lang.Object ref = license_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); license_ = s; return s; } } /** * * *
     * The license of the package. Note that the format of this value is not
     * guaranteed. It may be nil, an empty string, a boolean value (A | B), a
     * differently formed boolean value (A OR B), etc...
     * 
* * string license = 1; * * @return The bytes for license. */ @java.lang.Override public com.google.protobuf.ByteString getLicenseBytes() { java.lang.Object ref = license_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); license_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COUNT_FIELD_NUMBER = 2; private long count_ = 0L; /** * * *
     * The number of fixable vulnerabilities associated with this resource.
     * 
* * int64 count = 2; * * @return The count. */ @java.lang.Override public long getCount() { return count_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(license_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, license_); } if (count_ != 0L) { output.writeInt64(2, count_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(license_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, license_); } if (count_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary)) { return super.equals(obj); } com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary other = (com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary) obj; if (!getLicense().equals(other.getLicense())) return false; if (getCount() != other.getCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LICENSE_FIELD_NUMBER; hash = (53 * hash) + getLicense().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Per license count
     * 
* * Protobuf type {@code * google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary) com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummaryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.containeranalysis.v1beta1.Containeranalysis .internal_static_google_devtools_containeranalysis_v1beta1_PackagesSummaryResponse_LicensesSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.containeranalysis.v1beta1.Containeranalysis .internal_static_google_devtools_containeranalysis_v1beta1_PackagesSummaryResponse_LicensesSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary.class, com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary.Builder .class); } // Construct using // com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; license_ = ""; count_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.containeranalysis.v1beta1.Containeranalysis .internal_static_google_devtools_containeranalysis_v1beta1_PackagesSummaryResponse_LicensesSummary_descriptor; } @java.lang.Override public com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary getDefaultInstanceForType() { return com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary .getDefaultInstance(); } @java.lang.Override public com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary build() { com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary buildPartial() { com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary result = new com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.license_ = license_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.count_ = count_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary) { return mergeFrom( (com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary other) { if (other == com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary .getDefaultInstance()) return this; if (!other.getLicense().isEmpty()) { license_ = other.license_; bitField0_ |= 0x00000001; onChanged(); } if (other.getCount() != 0L) { setCount(other.getCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { license_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { count_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object license_ = ""; /** * * *
       * The license of the package. Note that the format of this value is not
       * guaranteed. It may be nil, an empty string, a boolean value (A | B), a
       * differently formed boolean value (A OR B), etc...
       * 
* * string license = 1; * * @return The license. */ public java.lang.String getLicense() { java.lang.Object ref = license_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); license_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The license of the package. Note that the format of this value is not
       * guaranteed. It may be nil, an empty string, a boolean value (A | B), a
       * differently formed boolean value (A OR B), etc...
       * 
* * string license = 1; * * @return The bytes for license. */ public com.google.protobuf.ByteString getLicenseBytes() { java.lang.Object ref = license_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); license_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The license of the package. Note that the format of this value is not
       * guaranteed. It may be nil, an empty string, a boolean value (A | B), a
       * differently formed boolean value (A OR B), etc...
       * 
* * string license = 1; * * @param value The license to set. * @return This builder for chaining. */ public Builder setLicense(java.lang.String value) { if (value == null) { throw new NullPointerException(); } license_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The license of the package. Note that the format of this value is not
       * guaranteed. It may be nil, an empty string, a boolean value (A | B), a
       * differently formed boolean value (A OR B), etc...
       * 
* * string license = 1; * * @return This builder for chaining. */ public Builder clearLicense() { license_ = getDefaultInstance().getLicense(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The license of the package. Note that the format of this value is not
       * guaranteed. It may be nil, an empty string, a boolean value (A | B), a
       * differently formed boolean value (A OR B), etc...
       * 
* * string license = 1; * * @param value The bytes for license to set. * @return This builder for chaining. */ public Builder setLicenseBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); license_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long count_; /** * * *
       * The number of fixable vulnerabilities associated with this resource.
       * 
* * int64 count = 2; * * @return The count. */ @java.lang.Override public long getCount() { return count_; } /** * * *
       * The number of fixable vulnerabilities associated with this resource.
       * 
* * int64 count = 2; * * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { count_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The number of fixable vulnerabilities associated with this resource.
       * 
* * int64 count = 2; * * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000002); count_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary) } // @@protoc_insertion_point(class_scope:google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary) private static final com.google.containeranalysis.v1beta1.PackagesSummaryResponse .LicensesSummary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary(); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LicensesSummary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int RESOURCE_URL_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object resourceUrl_ = ""; /** * * *
   * The unique URL of the image or the container for which this summary
   * applies.
   * 
* * string resource_url = 1; * * @return The resourceUrl. */ @java.lang.Override public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** * * *
   * The unique URL of the image or the container for which this summary
   * applies.
   * 
* * string resource_url = 1; * * @return The bytes for resourceUrl. */ @java.lang.Override public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LICENSES_SUMMARY_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List< com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary> licensesSummary_; /** * * *
   * A listing by license name of each of the licenses and their counts.
   * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ @java.lang.Override public java.util.List< com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary> getLicensesSummaryList() { return licensesSummary_; } /** * * *
   * A listing by license name of each of the licenses and their counts.
   * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ @java.lang.Override public java.util.List< ? extends com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummaryOrBuilder> getLicensesSummaryOrBuilderList() { return licensesSummary_; } /** * * *
   * A listing by license name of each of the licenses and their counts.
   * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ @java.lang.Override public int getLicensesSummaryCount() { return licensesSummary_.size(); } /** * * *
   * A listing by license name of each of the licenses and their counts.
   * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ @java.lang.Override public com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary getLicensesSummary(int index) { return licensesSummary_.get(index); } /** * * *
   * A listing by license name of each of the licenses and their counts.
   * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ @java.lang.Override public com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummaryOrBuilder getLicensesSummaryOrBuilder(int index) { return licensesSummary_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceUrl_); } for (int i = 0; i < licensesSummary_.size(); i++) { output.writeMessage(2, licensesSummary_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceUrl_); } for (int i = 0; i < licensesSummary_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, licensesSummary_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.containeranalysis.v1beta1.PackagesSummaryResponse)) { return super.equals(obj); } com.google.containeranalysis.v1beta1.PackagesSummaryResponse other = (com.google.containeranalysis.v1beta1.PackagesSummaryResponse) obj; if (!getResourceUrl().equals(other.getResourceUrl())) return false; if (!getLicensesSummaryList().equals(other.getLicensesSummaryList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESOURCE_URL_FIELD_NUMBER; hash = (53 * hash) + getResourceUrl().hashCode(); if (getLicensesSummaryCount() > 0) { hash = (37 * hash) + LICENSES_SUMMARY_FIELD_NUMBER; hash = (53 * hash) + getLicensesSummaryList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.containeranalysis.v1beta1.PackagesSummaryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * A summary of the packages found within the given resource.
   * 
* * Protobuf type {@code google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse) com.google.containeranalysis.v1beta1.PackagesSummaryResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.containeranalysis.v1beta1.Containeranalysis .internal_static_google_devtools_containeranalysis_v1beta1_PackagesSummaryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.containeranalysis.v1beta1.Containeranalysis .internal_static_google_devtools_containeranalysis_v1beta1_PackagesSummaryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.containeranalysis.v1beta1.PackagesSummaryResponse.class, com.google.containeranalysis.v1beta1.PackagesSummaryResponse.Builder.class); } // Construct using com.google.containeranalysis.v1beta1.PackagesSummaryResponse.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; resourceUrl_ = ""; if (licensesSummaryBuilder_ == null) { licensesSummary_ = java.util.Collections.emptyList(); } else { licensesSummary_ = null; licensesSummaryBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.containeranalysis.v1beta1.Containeranalysis .internal_static_google_devtools_containeranalysis_v1beta1_PackagesSummaryResponse_descriptor; } @java.lang.Override public com.google.containeranalysis.v1beta1.PackagesSummaryResponse getDefaultInstanceForType() { return com.google.containeranalysis.v1beta1.PackagesSummaryResponse.getDefaultInstance(); } @java.lang.Override public com.google.containeranalysis.v1beta1.PackagesSummaryResponse build() { com.google.containeranalysis.v1beta1.PackagesSummaryResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.containeranalysis.v1beta1.PackagesSummaryResponse buildPartial() { com.google.containeranalysis.v1beta1.PackagesSummaryResponse result = new com.google.containeranalysis.v1beta1.PackagesSummaryResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.containeranalysis.v1beta1.PackagesSummaryResponse result) { if (licensesSummaryBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { licensesSummary_ = java.util.Collections.unmodifiableList(licensesSummary_); bitField0_ = (bitField0_ & ~0x00000002); } result.licensesSummary_ = licensesSummary_; } else { result.licensesSummary_ = licensesSummaryBuilder_.build(); } } private void buildPartial0( com.google.containeranalysis.v1beta1.PackagesSummaryResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.resourceUrl_ = resourceUrl_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.containeranalysis.v1beta1.PackagesSummaryResponse) { return mergeFrom((com.google.containeranalysis.v1beta1.PackagesSummaryResponse) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.containeranalysis.v1beta1.PackagesSummaryResponse other) { if (other == com.google.containeranalysis.v1beta1.PackagesSummaryResponse.getDefaultInstance()) return this; if (!other.getResourceUrl().isEmpty()) { resourceUrl_ = other.resourceUrl_; bitField0_ |= 0x00000001; onChanged(); } if (licensesSummaryBuilder_ == null) { if (!other.licensesSummary_.isEmpty()) { if (licensesSummary_.isEmpty()) { licensesSummary_ = other.licensesSummary_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLicensesSummaryIsMutable(); licensesSummary_.addAll(other.licensesSummary_); } onChanged(); } } else { if (!other.licensesSummary_.isEmpty()) { if (licensesSummaryBuilder_.isEmpty()) { licensesSummaryBuilder_.dispose(); licensesSummaryBuilder_ = null; licensesSummary_ = other.licensesSummary_; bitField0_ = (bitField0_ & ~0x00000002); licensesSummaryBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLicensesSummaryFieldBuilder() : null; } else { licensesSummaryBuilder_.addAllMessages(other.licensesSummary_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { resourceUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary m = input.readMessage( com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary .parser(), extensionRegistry); if (licensesSummaryBuilder_ == null) { ensureLicensesSummaryIsMutable(); licensesSummary_.add(m); } else { licensesSummaryBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object resourceUrl_ = ""; /** * * *
     * The unique URL of the image or the container for which this summary
     * applies.
     * 
* * string resource_url = 1; * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The unique URL of the image or the container for which this summary
     * applies.
     * 
* * string resource_url = 1; * * @return The bytes for resourceUrl. */ public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The unique URL of the image or the container for which this summary
     * applies.
     * 
* * string resource_url = 1; * * @param value The resourceUrl to set. * @return This builder for chaining. */ public Builder setResourceUrl(java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceUrl_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The unique URL of the image or the container for which this summary
     * applies.
     * 
* * string resource_url = 1; * * @return This builder for chaining. */ public Builder clearResourceUrl() { resourceUrl_ = getDefaultInstance().getResourceUrl(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The unique URL of the image or the container for which this summary
     * applies.
     * 
* * string resource_url = 1; * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceUrl_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List< com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary> licensesSummary_ = java.util.Collections.emptyList(); private void ensureLicensesSummaryIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { licensesSummary_ = new java.util.ArrayList< com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary>( licensesSummary_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary, com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary.Builder, com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummaryOrBuilder> licensesSummaryBuilder_; /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public java.util.List< com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary> getLicensesSummaryList() { if (licensesSummaryBuilder_ == null) { return java.util.Collections.unmodifiableList(licensesSummary_); } else { return licensesSummaryBuilder_.getMessageList(); } } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public int getLicensesSummaryCount() { if (licensesSummaryBuilder_ == null) { return licensesSummary_.size(); } else { return licensesSummaryBuilder_.getCount(); } } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary getLicensesSummary(int index) { if (licensesSummaryBuilder_ == null) { return licensesSummary_.get(index); } else { return licensesSummaryBuilder_.getMessage(index); } } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public Builder setLicensesSummary( int index, com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary value) { if (licensesSummaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLicensesSummaryIsMutable(); licensesSummary_.set(index, value); onChanged(); } else { licensesSummaryBuilder_.setMessage(index, value); } return this; } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public Builder setLicensesSummary( int index, com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary.Builder builderForValue) { if (licensesSummaryBuilder_ == null) { ensureLicensesSummaryIsMutable(); licensesSummary_.set(index, builderForValue.build()); onChanged(); } else { licensesSummaryBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public Builder addLicensesSummary( com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary value) { if (licensesSummaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLicensesSummaryIsMutable(); licensesSummary_.add(value); onChanged(); } else { licensesSummaryBuilder_.addMessage(value); } return this; } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public Builder addLicensesSummary( int index, com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary value) { if (licensesSummaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLicensesSummaryIsMutable(); licensesSummary_.add(index, value); onChanged(); } else { licensesSummaryBuilder_.addMessage(index, value); } return this; } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public Builder addLicensesSummary( com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary.Builder builderForValue) { if (licensesSummaryBuilder_ == null) { ensureLicensesSummaryIsMutable(); licensesSummary_.add(builderForValue.build()); onChanged(); } else { licensesSummaryBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public Builder addLicensesSummary( int index, com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary.Builder builderForValue) { if (licensesSummaryBuilder_ == null) { ensureLicensesSummaryIsMutable(); licensesSummary_.add(index, builderForValue.build()); onChanged(); } else { licensesSummaryBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public Builder addAllLicensesSummary( java.lang.Iterable< ? extends com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary> values) { if (licensesSummaryBuilder_ == null) { ensureLicensesSummaryIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, licensesSummary_); onChanged(); } else { licensesSummaryBuilder_.addAllMessages(values); } return this; } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public Builder clearLicensesSummary() { if (licensesSummaryBuilder_ == null) { licensesSummary_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { licensesSummaryBuilder_.clear(); } return this; } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public Builder removeLicensesSummary(int index) { if (licensesSummaryBuilder_ == null) { ensureLicensesSummaryIsMutable(); licensesSummary_.remove(index); onChanged(); } else { licensesSummaryBuilder_.remove(index); } return this; } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary.Builder getLicensesSummaryBuilder(int index) { return getLicensesSummaryFieldBuilder().getBuilder(index); } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummaryOrBuilder getLicensesSummaryOrBuilder(int index) { if (licensesSummaryBuilder_ == null) { return licensesSummary_.get(index); } else { return licensesSummaryBuilder_.getMessageOrBuilder(index); } } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public java.util.List< ? extends com.google.containeranalysis.v1beta1.PackagesSummaryResponse .LicensesSummaryOrBuilder> getLicensesSummaryOrBuilderList() { if (licensesSummaryBuilder_ != null) { return licensesSummaryBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(licensesSummary_); } } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary.Builder addLicensesSummaryBuilder() { return getLicensesSummaryFieldBuilder() .addBuilder( com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary .getDefaultInstance()); } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary.Builder addLicensesSummaryBuilder(int index) { return getLicensesSummaryFieldBuilder() .addBuilder( index, com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary .getDefaultInstance()); } /** * * *
     * A listing by license name of each of the licenses and their counts.
     * 
* * * repeated .google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary licenses_summary = 2; * */ public java.util.List< com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary.Builder> getLicensesSummaryBuilderList() { return getLicensesSummaryFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary, com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary.Builder, com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummaryOrBuilder> getLicensesSummaryFieldBuilder() { if (licensesSummaryBuilder_ == null) { licensesSummaryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary, com.google.containeranalysis.v1beta1.PackagesSummaryResponse.LicensesSummary .Builder, com.google.containeranalysis.v1beta1.PackagesSummaryResponse .LicensesSummaryOrBuilder>( licensesSummary_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); licensesSummary_ = null; } return licensesSummaryBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse) } // @@protoc_insertion_point(class_scope:google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse) private static final com.google.containeranalysis.v1beta1.PackagesSummaryResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.containeranalysis.v1beta1.PackagesSummaryResponse(); } public static com.google.containeranalysis.v1beta1.PackagesSummaryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PackagesSummaryResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.containeranalysis.v1beta1.PackagesSummaryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy