/* * Copyright 2019 The Grafeas Authors. All rights reserved. * * 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: grafeas/v1/upgrade.proto package io.grafeas.v1; /** * * *
 * Windows Update represents the metadata about the update for the Windows
 * operating system. The fields in this message come from the Windows Update API
 * documented at
 * https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate.
 * 
* * Protobuf type {@code grafeas.v1.WindowsUpdate} */ public final class WindowsUpdate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grafeas.v1.WindowsUpdate) WindowsUpdateOrBuilder { private static final long serialVersionUID = 0L; // Use WindowsUpdate.newBuilder() to construct. private WindowsUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WindowsUpdate() { title_ = ""; description_ = ""; categories_ = java.util.Collections.emptyList(); kbArticleIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; supportUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WindowsUpdate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.WindowsUpdate.class, io.grafeas.v1.WindowsUpdate.Builder.class); } public interface IdentityOrBuilder extends // @@protoc_insertion_point(interface_extends:grafeas.v1.WindowsUpdate.Identity) com.google.protobuf.MessageOrBuilder { /** * * *
     * The revision independent identifier of the update.
     * 
* * string update_id = 1; * * @return The updateId. */ java.lang.String getUpdateId(); /** * * *
     * The revision independent identifier of the update.
     * 
* * string update_id = 1; * * @return The bytes for updateId. */ com.google.protobuf.ByteString getUpdateIdBytes(); /** * * *
     * The revision number of the update.
     * 
* * int32 revision = 2; * * @return The revision. */ int getRevision(); } /** * * *
   * The unique identifier of the update.
   * 
* * Protobuf type {@code grafeas.v1.WindowsUpdate.Identity} */ public static final class Identity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grafeas.v1.WindowsUpdate.Identity) IdentityOrBuilder { private static final long serialVersionUID = 0L; // Use Identity.newBuilder() to construct. private Identity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Identity() { updateId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Identity(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_Identity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.Upgrade .internal_static_grafeas_v1_WindowsUpdate_Identity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.WindowsUpdate.Identity.class, io.grafeas.v1.WindowsUpdate.Identity.Builder.class); } public static final int UPDATE_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object updateId_ = ""; /** * * *
     * The revision independent identifier of the update.
     * 
* * string update_id = 1; * * @return The updateId. */ @java.lang.Override public java.lang.String getUpdateId() { java.lang.Object ref = updateId_; 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(); updateId_ = s; return s; } } /** * * *
     * The revision independent identifier of the update.
     * 
* * string update_id = 1; * * @return The bytes for updateId. */ @java.lang.Override public com.google.protobuf.ByteString getUpdateIdBytes() { java.lang.Object ref = updateId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); updateId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REVISION_FIELD_NUMBER = 2; private int revision_ = 0; /** * * *
     * The revision number of the update.
     * 
* * int32 revision = 2; * * @return The revision. */ @java.lang.Override public int getRevision() { return revision_; } 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(updateId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, updateId_); } if (revision_ != 0) { output.writeInt32(2, revision_); } 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(updateId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, updateId_); } if (revision_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, revision_); } 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 io.grafeas.v1.WindowsUpdate.Identity)) { return super.equals(obj); } io.grafeas.v1.WindowsUpdate.Identity other = (io.grafeas.v1.WindowsUpdate.Identity) obj; if (!getUpdateId().equals(other.getUpdateId())) return false; if (getRevision() != other.getRevision()) 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) + UPDATE_ID_FIELD_NUMBER; hash = (53 * hash) + getUpdateId().hashCode(); hash = (37 * hash) + REVISION_FIELD_NUMBER; hash = (53 * hash) + getRevision(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grafeas.v1.WindowsUpdate.Identity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.WindowsUpdate.Identity parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grafeas.v1.WindowsUpdate.Identity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.WindowsUpdate.Identity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grafeas.v1.WindowsUpdate.Identity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.WindowsUpdate.Identity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grafeas.v1.WindowsUpdate.Identity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.grafeas.v1.WindowsUpdate.Identity 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 io.grafeas.v1.WindowsUpdate.Identity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.grafeas.v1.WindowsUpdate.Identity 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 io.grafeas.v1.WindowsUpdate.Identity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.grafeas.v1.WindowsUpdate.Identity 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(io.grafeas.v1.WindowsUpdate.Identity 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; } /** * * *
     * The unique identifier of the update.
     * 
* * Protobuf type {@code grafeas.v1.WindowsUpdate.Identity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grafeas.v1.WindowsUpdate.Identity) io.grafeas.v1.WindowsUpdate.IdentityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_Identity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.Upgrade .internal_static_grafeas_v1_WindowsUpdate_Identity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.WindowsUpdate.Identity.class, io.grafeas.v1.WindowsUpdate.Identity.Builder.class); } // Construct using io.grafeas.v1.WindowsUpdate.Identity.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; updateId_ = ""; revision_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_Identity_descriptor; } @java.lang.Override public io.grafeas.v1.WindowsUpdate.Identity getDefaultInstanceForType() { return io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance(); } @java.lang.Override public io.grafeas.v1.WindowsUpdate.Identity build() { io.grafeas.v1.WindowsUpdate.Identity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grafeas.v1.WindowsUpdate.Identity buildPartial() { io.grafeas.v1.WindowsUpdate.Identity result = new io.grafeas.v1.WindowsUpdate.Identity(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grafeas.v1.WindowsUpdate.Identity result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.updateId_ = updateId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.revision_ = revision_; } } @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 io.grafeas.v1.WindowsUpdate.Identity) { return mergeFrom((io.grafeas.v1.WindowsUpdate.Identity) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grafeas.v1.WindowsUpdate.Identity other) { if (other == io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance()) return this; if (!other.getUpdateId().isEmpty()) { updateId_ = other.updateId_; bitField0_ |= 0x00000001; onChanged(); } if (other.getRevision() != 0) { setRevision(other.getRevision()); } 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: { updateId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { revision_ = input.readInt32(); 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 updateId_ = ""; /** * * *
       * The revision independent identifier of the update.
       * 
* * string update_id = 1; * * @return The updateId. */ public java.lang.String getUpdateId() { java.lang.Object ref = updateId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); updateId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The revision independent identifier of the update.
       * 
* * string update_id = 1; * * @return The bytes for updateId. */ public com.google.protobuf.ByteString getUpdateIdBytes() { java.lang.Object ref = updateId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); updateId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The revision independent identifier of the update.
       * 
* * string update_id = 1; * * @param value The updateId to set. * @return This builder for chaining. */ public Builder setUpdateId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } updateId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The revision independent identifier of the update.
       * 
* * string update_id = 1; * * @return This builder for chaining. */ public Builder clearUpdateId() { updateId_ = getDefaultInstance().getUpdateId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The revision independent identifier of the update.
       * 
* * string update_id = 1; * * @param value The bytes for updateId to set. * @return This builder for chaining. */ public Builder setUpdateIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); updateId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int revision_; /** * * *
       * The revision number of the update.
       * 
* * int32 revision = 2; * * @return The revision. */ @java.lang.Override public int getRevision() { return revision_; } /** * * *
       * The revision number of the update.
       * 
* * int32 revision = 2; * * @param value The revision to set. * @return This builder for chaining. */ public Builder setRevision(int value) { revision_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The revision number of the update.
       * 
* * int32 revision = 2; * * @return This builder for chaining. */ public Builder clearRevision() { bitField0_ = (bitField0_ & ~0x00000002); revision_ = 0; 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:grafeas.v1.WindowsUpdate.Identity) } // @@protoc_insertion_point(class_scope:grafeas.v1.WindowsUpdate.Identity) private static final io.grafeas.v1.WindowsUpdate.Identity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grafeas.v1.WindowsUpdate.Identity(); } public static io.grafeas.v1.WindowsUpdate.Identity getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Identity 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 io.grafeas.v1.WindowsUpdate.Identity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CategoryOrBuilder extends // @@protoc_insertion_point(interface_extends:grafeas.v1.WindowsUpdate.Category) com.google.protobuf.MessageOrBuilder { /** * * *
     * The identifier of the category.
     * 
* * string category_id = 1; * * @return The categoryId. */ java.lang.String getCategoryId(); /** * * *
     * The identifier of the category.
     * 
* * string category_id = 1; * * @return The bytes for categoryId. */ com.google.protobuf.ByteString getCategoryIdBytes(); /** * * *
     * The localized name of the category.
     * 
* * string name = 2; * * @return The name. */ java.lang.String getName(); /** * * *
     * The localized name of the category.
     * 
* * string name = 2; * * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } /** * * *
   * The category to which the update belongs.
   * 
* * Protobuf type {@code grafeas.v1.WindowsUpdate.Category} */ public static final class Category extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grafeas.v1.WindowsUpdate.Category) CategoryOrBuilder { private static final long serialVersionUID = 0L; // Use Category.newBuilder() to construct. private Category(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Category() { categoryId_ = ""; name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Category(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_Category_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.Upgrade .internal_static_grafeas_v1_WindowsUpdate_Category_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.WindowsUpdate.Category.class, io.grafeas.v1.WindowsUpdate.Category.Builder.class); } public static final int CATEGORY_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object categoryId_ = ""; /** * * *
     * The identifier of the category.
     * 
* * string category_id = 1; * * @return The categoryId. */ @java.lang.Override public java.lang.String getCategoryId() { java.lang.Object ref = categoryId_; 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(); categoryId_ = s; return s; } } /** * * *
     * The identifier of the category.
     * 
* * string category_id = 1; * * @return The bytes for categoryId. */ @java.lang.Override public com.google.protobuf.ByteString getCategoryIdBytes() { java.lang.Object ref = categoryId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); categoryId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
     * The localized name of the category.
     * 
* * string name = 2; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * * *
     * The localized name of the category.
     * 
* * string name = 2; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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(categoryId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, categoryId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } 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(categoryId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, categoryId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } 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 io.grafeas.v1.WindowsUpdate.Category)) { return super.equals(obj); } io.grafeas.v1.WindowsUpdate.Category other = (io.grafeas.v1.WindowsUpdate.Category) obj; if (!getCategoryId().equals(other.getCategoryId())) return false; if (!getName().equals(other.getName())) 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) + CATEGORY_ID_FIELD_NUMBER; hash = (53 * hash) + getCategoryId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grafeas.v1.WindowsUpdate.Category parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.WindowsUpdate.Category parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grafeas.v1.WindowsUpdate.Category parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.WindowsUpdate.Category parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grafeas.v1.WindowsUpdate.Category parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.WindowsUpdate.Category parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grafeas.v1.WindowsUpdate.Category parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.grafeas.v1.WindowsUpdate.Category 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 io.grafeas.v1.WindowsUpdate.Category parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.grafeas.v1.WindowsUpdate.Category 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 io.grafeas.v1.WindowsUpdate.Category parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.grafeas.v1.WindowsUpdate.Category 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(io.grafeas.v1.WindowsUpdate.Category 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; } /** * * *
     * The category to which the update belongs.
     * 
* * Protobuf type {@code grafeas.v1.WindowsUpdate.Category} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grafeas.v1.WindowsUpdate.Category) io.grafeas.v1.WindowsUpdate.CategoryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_Category_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.Upgrade .internal_static_grafeas_v1_WindowsUpdate_Category_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.WindowsUpdate.Category.class, io.grafeas.v1.WindowsUpdate.Category.Builder.class); } // Construct using io.grafeas.v1.WindowsUpdate.Category.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; categoryId_ = ""; name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_Category_descriptor; } @java.lang.Override public io.grafeas.v1.WindowsUpdate.Category getDefaultInstanceForType() { return io.grafeas.v1.WindowsUpdate.Category.getDefaultInstance(); } @java.lang.Override public io.grafeas.v1.WindowsUpdate.Category build() { io.grafeas.v1.WindowsUpdate.Category result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grafeas.v1.WindowsUpdate.Category buildPartial() { io.grafeas.v1.WindowsUpdate.Category result = new io.grafeas.v1.WindowsUpdate.Category(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grafeas.v1.WindowsUpdate.Category result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.categoryId_ = categoryId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.name_ = name_; } } @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 io.grafeas.v1.WindowsUpdate.Category) { return mergeFrom((io.grafeas.v1.WindowsUpdate.Category) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grafeas.v1.WindowsUpdate.Category other) { if (other == io.grafeas.v1.WindowsUpdate.Category.getDefaultInstance()) return this; if (!other.getCategoryId().isEmpty()) { categoryId_ = other.categoryId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000002; onChanged(); } 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: { categoryId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; 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 categoryId_ = ""; /** * * *
       * The identifier of the category.
       * 
* * string category_id = 1; * * @return The categoryId. */ public java.lang.String getCategoryId() { java.lang.Object ref = categoryId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); categoryId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The identifier of the category.
       * 
* * string category_id = 1; * * @return The bytes for categoryId. */ public com.google.protobuf.ByteString getCategoryIdBytes() { java.lang.Object ref = categoryId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); categoryId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The identifier of the category.
       * 
* * string category_id = 1; * * @param value The categoryId to set. * @return This builder for chaining. */ public Builder setCategoryId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } categoryId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The identifier of the category.
       * 
* * string category_id = 1; * * @return This builder for chaining. */ public Builder clearCategoryId() { categoryId_ = getDefaultInstance().getCategoryId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The identifier of the category.
       * 
* * string category_id = 1; * * @param value The bytes for categoryId to set. * @return This builder for chaining. */ public Builder setCategoryIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); categoryId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object name_ = ""; /** * * *
       * The localized name of the category.
       * 
* * string name = 2; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The localized name of the category.
       * 
* * string name = 2; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The localized name of the category.
       * 
* * string name = 2; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The localized name of the category.
       * 
* * string name = 2; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * The localized name of the category.
       * 
* * string name = 2; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000002; 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:grafeas.v1.WindowsUpdate.Category) } // @@protoc_insertion_point(class_scope:grafeas.v1.WindowsUpdate.Category) private static final io.grafeas.v1.WindowsUpdate.Category DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grafeas.v1.WindowsUpdate.Category(); } public static io.grafeas.v1.WindowsUpdate.Category getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Category 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 io.grafeas.v1.WindowsUpdate.Category getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int IDENTITY_FIELD_NUMBER = 1; private io.grafeas.v1.WindowsUpdate.Identity identity_; /** * * *
   * Required - The unique identifier for the update.
   * 
* * .grafeas.v1.WindowsUpdate.Identity identity = 1; * * @return Whether the identity field is set. */ @java.lang.Override public boolean hasIdentity() { return identity_ != null; } /** * * *
   * Required - The unique identifier for the update.
   * 
* * .grafeas.v1.WindowsUpdate.Identity identity = 1; * * @return The identity. */ @java.lang.Override public io.grafeas.v1.WindowsUpdate.Identity getIdentity() { return identity_ == null ? io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance() : identity_; } /** * * *
   * Required - The unique identifier for the update.
   * 
* * .grafeas.v1.WindowsUpdate.Identity identity = 1; */ @java.lang.Override public io.grafeas.v1.WindowsUpdate.IdentityOrBuilder getIdentityOrBuilder() { return identity_ == null ? io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance() : identity_; } public static final int TITLE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object title_ = ""; /** * * *
   * The localized title of the update.
   * 
* * string title = 2; * * @return The title. */ @java.lang.Override public java.lang.String getTitle() { java.lang.Object ref = title_; 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(); title_ = s; return s; } } /** * * *
   * The localized title of the update.
   * 
* * string title = 2; * * @return The bytes for title. */ @java.lang.Override public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * The localized description of the update.
   * 
* * string description = 3; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** * * *
   * The localized description of the update.
   * 
* * string description = 3; * * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CATEGORIES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List categories_; /** * * *
   * The list of categories to which the update belongs.
   * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ @java.lang.Override public java.util.List getCategoriesList() { return categories_; } /** * * *
   * The list of categories to which the update belongs.
   * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ @java.lang.Override public java.util.List getCategoriesOrBuilderList() { return categories_; } /** * * *
   * The list of categories to which the update belongs.
   * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ @java.lang.Override public int getCategoriesCount() { return categories_.size(); } /** * * *
   * The list of categories to which the update belongs.
   * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ @java.lang.Override public io.grafeas.v1.WindowsUpdate.Category getCategories(int index) { return categories_.get(index); } /** * * *
   * The list of categories to which the update belongs.
   * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ @java.lang.Override public io.grafeas.v1.WindowsUpdate.CategoryOrBuilder getCategoriesOrBuilder(int index) { return categories_.get(index); } public static final int KB_ARTICLE_IDS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList kbArticleIds_; /** * * *
   * The Microsoft Knowledge Base article IDs that are associated with the
   * update.
   * 
* * repeated string kb_article_ids = 5; * * @return A list containing the kbArticleIds. */ public com.google.protobuf.ProtocolStringList getKbArticleIdsList() { return kbArticleIds_; } /** * * *
   * The Microsoft Knowledge Base article IDs that are associated with the
   * update.
   * 
* * repeated string kb_article_ids = 5; * * @return The count of kbArticleIds. */ public int getKbArticleIdsCount() { return kbArticleIds_.size(); } /** * * *
   * The Microsoft Knowledge Base article IDs that are associated with the
   * update.
   * 
* * repeated string kb_article_ids = 5; * * @param index The index of the element to return. * @return The kbArticleIds at the given index. */ public java.lang.String getKbArticleIds(int index) { return kbArticleIds_.get(index); } /** * * *
   * The Microsoft Knowledge Base article IDs that are associated with the
   * update.
   * 
* * repeated string kb_article_ids = 5; * * @param index The index of the value to return. * @return The bytes of the kbArticleIds at the given index. */ public com.google.protobuf.ByteString getKbArticleIdsBytes(int index) { return kbArticleIds_.getByteString(index); } public static final int SUPPORT_URL_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object supportUrl_ = ""; /** * * *
   * The hyperlink to the support information for the update.
   * 
* * string support_url = 6; * * @return The supportUrl. */ @java.lang.Override public java.lang.String getSupportUrl() { java.lang.Object ref = supportUrl_; 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(); supportUrl_ = s; return s; } } /** * * *
   * The hyperlink to the support information for the update.
   * 
* * string support_url = 6; * * @return The bytes for supportUrl. */ @java.lang.Override public com.google.protobuf.ByteString getSupportUrlBytes() { java.lang.Object ref = supportUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); supportUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LAST_PUBLISHED_TIMESTAMP_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp lastPublishedTimestamp_; /** * * *
   * The last published timestamp of the update.
   * 
* * .google.protobuf.Timestamp last_published_timestamp = 7; * * @return Whether the lastPublishedTimestamp field is set. */ @java.lang.Override public boolean hasLastPublishedTimestamp() { return lastPublishedTimestamp_ != null; } /** * * *
   * The last published timestamp of the update.
   * 
* * .google.protobuf.Timestamp last_published_timestamp = 7; * * @return The lastPublishedTimestamp. */ @java.lang.Override public com.google.protobuf.Timestamp getLastPublishedTimestamp() { return lastPublishedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastPublishedTimestamp_; } /** * * *
   * The last published timestamp of the update.
   * 
* * .google.protobuf.Timestamp last_published_timestamp = 7; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastPublishedTimestampOrBuilder() { return lastPublishedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastPublishedTimestamp_; } 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 (identity_ != null) { output.writeMessage(1, getIdentity()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } for (int i = 0; i < categories_.size(); i++) { output.writeMessage(4, categories_.get(i)); } for (int i = 0; i < kbArticleIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, kbArticleIds_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(supportUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, supportUrl_); } if (lastPublishedTimestamp_ != null) { output.writeMessage(7, getLastPublishedTimestamp()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (identity_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIdentity()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < categories_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, categories_.get(i)); } { int dataSize = 0; for (int i = 0; i < kbArticleIds_.size(); i++) { dataSize += computeStringSizeNoTag(kbArticleIds_.getRaw(i)); } size += dataSize; size += 1 * getKbArticleIdsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(supportUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, supportUrl_); } if (lastPublishedTimestamp_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastPublishedTimestamp()); } 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 io.grafeas.v1.WindowsUpdate)) { return super.equals(obj); } io.grafeas.v1.WindowsUpdate other = (io.grafeas.v1.WindowsUpdate) obj; if (hasIdentity() != other.hasIdentity()) return false; if (hasIdentity()) { if (!getIdentity().equals(other.getIdentity())) return false; } if (!getTitle().equals(other.getTitle())) return false; if (!getDescription().equals(other.getDescription())) return false; if (!getCategoriesList().equals(other.getCategoriesList())) return false; if (!getKbArticleIdsList().equals(other.getKbArticleIdsList())) return false; if (!getSupportUrl().equals(other.getSupportUrl())) return false; if (hasLastPublishedTimestamp() != other.hasLastPublishedTimestamp()) return false; if (hasLastPublishedTimestamp()) { if (!getLastPublishedTimestamp().equals(other.getLastPublishedTimestamp())) 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(); if (hasIdentity()) { hash = (37 * hash) + IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getIdentity().hashCode(); } hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (getCategoriesCount() > 0) { hash = (37 * hash) + CATEGORIES_FIELD_NUMBER; hash = (53 * hash) + getCategoriesList().hashCode(); } if (getKbArticleIdsCount() > 0) { hash = (37 * hash) + KB_ARTICLE_IDS_FIELD_NUMBER; hash = (53 * hash) + getKbArticleIdsList().hashCode(); } hash = (37 * hash) + SUPPORT_URL_FIELD_NUMBER; hash = (53 * hash) + getSupportUrl().hashCode(); if (hasLastPublishedTimestamp()) { hash = (37 * hash) + LAST_PUBLISHED_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getLastPublishedTimestamp().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grafeas.v1.WindowsUpdate parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.WindowsUpdate parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grafeas.v1.WindowsUpdate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.WindowsUpdate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grafeas.v1.WindowsUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.WindowsUpdate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grafeas.v1.WindowsUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.grafeas.v1.WindowsUpdate 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 io.grafeas.v1.WindowsUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.grafeas.v1.WindowsUpdate 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 io.grafeas.v1.WindowsUpdate parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.grafeas.v1.WindowsUpdate 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(io.grafeas.v1.WindowsUpdate 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; } /** * * *
   * Windows Update represents the metadata about the update for the Windows
   * operating system. The fields in this message come from the Windows Update API
   * documented at
   * https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate.
   * 
* * Protobuf type {@code grafeas.v1.WindowsUpdate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grafeas.v1.WindowsUpdate) io.grafeas.v1.WindowsUpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.WindowsUpdate.class, io.grafeas.v1.WindowsUpdate.Builder.class); } // Construct using io.grafeas.v1.WindowsUpdate.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; identity_ = null; if (identityBuilder_ != null) { identityBuilder_.dispose(); identityBuilder_ = null; } title_ = ""; description_ = ""; if (categoriesBuilder_ == null) { categories_ = java.util.Collections.emptyList(); } else { categories_ = null; categoriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); kbArticleIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); supportUrl_ = ""; lastPublishedTimestamp_ = null; if (lastPublishedTimestampBuilder_ != null) { lastPublishedTimestampBuilder_.dispose(); lastPublishedTimestampBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_descriptor; } @java.lang.Override public io.grafeas.v1.WindowsUpdate getDefaultInstanceForType() { return io.grafeas.v1.WindowsUpdate.getDefaultInstance(); } @java.lang.Override public io.grafeas.v1.WindowsUpdate build() { io.grafeas.v1.WindowsUpdate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grafeas.v1.WindowsUpdate buildPartial() { io.grafeas.v1.WindowsUpdate result = new io.grafeas.v1.WindowsUpdate(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.grafeas.v1.WindowsUpdate result) { if (categoriesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { categories_ = java.util.Collections.unmodifiableList(categories_); bitField0_ = (bitField0_ & ~0x00000008); } result.categories_ = categories_; } else { result.categories_ = categoriesBuilder_.build(); } if (((bitField0_ & 0x00000010) != 0)) { kbArticleIds_ = kbArticleIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.kbArticleIds_ = kbArticleIds_; } private void buildPartial0(io.grafeas.v1.WindowsUpdate result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.identity_ = identityBuilder_ == null ? identity_ : identityBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.title_ = title_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.supportUrl_ = supportUrl_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.lastPublishedTimestamp_ = lastPublishedTimestampBuilder_ == null ? lastPublishedTimestamp_ : lastPublishedTimestampBuilder_.build(); } } @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 io.grafeas.v1.WindowsUpdate) { return mergeFrom((io.grafeas.v1.WindowsUpdate) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grafeas.v1.WindowsUpdate other) { if (other == io.grafeas.v1.WindowsUpdate.getDefaultInstance()) return this; if (other.hasIdentity()) { mergeIdentity(other.getIdentity()); } if (!other.getTitle().isEmpty()) { title_ = other.title_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000004; onChanged(); } if (categoriesBuilder_ == null) { if (!other.categories_.isEmpty()) { if (categories_.isEmpty()) { categories_ = other.categories_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureCategoriesIsMutable(); categories_.addAll(other.categories_); } onChanged(); } } else { if (!other.categories_.isEmpty()) { if (categoriesBuilder_.isEmpty()) { categoriesBuilder_.dispose(); categoriesBuilder_ = null; categories_ = other.categories_; bitField0_ = (bitField0_ & ~0x00000008); categoriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCategoriesFieldBuilder() : null; } else { categoriesBuilder_.addAllMessages(other.categories_); } } } if (!other.kbArticleIds_.isEmpty()) { if (kbArticleIds_.isEmpty()) { kbArticleIds_ = other.kbArticleIds_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureKbArticleIdsIsMutable(); kbArticleIds_.addAll(other.kbArticleIds_); } onChanged(); } if (!other.getSupportUrl().isEmpty()) { supportUrl_ = other.supportUrl_; bitField0_ |= 0x00000020; onChanged(); } if (other.hasLastPublishedTimestamp()) { mergeLastPublishedTimestamp(other.getLastPublishedTimestamp()); } 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: { input.readMessage(getIdentityFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { title_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { io.grafeas.v1.WindowsUpdate.Category m = input.readMessage( io.grafeas.v1.WindowsUpdate.Category.parser(), extensionRegistry); if (categoriesBuilder_ == null) { ensureCategoriesIsMutable(); categories_.add(m); } else { categoriesBuilder_.addMessage(m); } break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureKbArticleIdsIsMutable(); kbArticleIds_.add(s); break; } // case 42 case 50: { supportUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getLastPublishedTimestampFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 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 io.grafeas.v1.WindowsUpdate.Identity identity_; private com.google.protobuf.SingleFieldBuilderV3< io.grafeas.v1.WindowsUpdate.Identity, io.grafeas.v1.WindowsUpdate.Identity.Builder, io.grafeas.v1.WindowsUpdate.IdentityOrBuilder> identityBuilder_; /** * * *
     * Required - The unique identifier for the update.
     * 
* * .grafeas.v1.WindowsUpdate.Identity identity = 1; * * @return Whether the identity field is set. */ public boolean hasIdentity() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Required - The unique identifier for the update.
     * 
* * .grafeas.v1.WindowsUpdate.Identity identity = 1; * * @return The identity. */ public io.grafeas.v1.WindowsUpdate.Identity getIdentity() { if (identityBuilder_ == null) { return identity_ == null ? io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance() : identity_; } else { return identityBuilder_.getMessage(); } } /** * * *
     * Required - The unique identifier for the update.
     * 
* * .grafeas.v1.WindowsUpdate.Identity identity = 1; */ public Builder setIdentity(io.grafeas.v1.WindowsUpdate.Identity value) { if (identityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } identity_ = value; } else { identityBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Required - The unique identifier for the update.
     * 
* * .grafeas.v1.WindowsUpdate.Identity identity = 1; */ public Builder setIdentity(io.grafeas.v1.WindowsUpdate.Identity.Builder builderForValue) { if (identityBuilder_ == null) { identity_ = builderForValue.build(); } else { identityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Required - The unique identifier for the update.
     * 
* * .grafeas.v1.WindowsUpdate.Identity identity = 1; */ public Builder mergeIdentity(io.grafeas.v1.WindowsUpdate.Identity value) { if (identityBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && identity_ != null && identity_ != io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance()) { getIdentityBuilder().mergeFrom(value); } else { identity_ = value; } } else { identityBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Required - The unique identifier for the update.
     * 
* * .grafeas.v1.WindowsUpdate.Identity identity = 1; */ public Builder clearIdentity() { bitField0_ = (bitField0_ & ~0x00000001); identity_ = null; if (identityBuilder_ != null) { identityBuilder_.dispose(); identityBuilder_ = null; } onChanged(); return this; } /** * * *
     * Required - The unique identifier for the update.
     * 
* * .grafeas.v1.WindowsUpdate.Identity identity = 1; */ public io.grafeas.v1.WindowsUpdate.Identity.Builder getIdentityBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIdentityFieldBuilder().getBuilder(); } /** * * *
     * Required - The unique identifier for the update.
     * 
* * .grafeas.v1.WindowsUpdate.Identity identity = 1; */ public io.grafeas.v1.WindowsUpdate.IdentityOrBuilder getIdentityOrBuilder() { if (identityBuilder_ != null) { return identityBuilder_.getMessageOrBuilder(); } else { return identity_ == null ? io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance() : identity_; } } /** * * *
     * Required - The unique identifier for the update.
     * 
* * .grafeas.v1.WindowsUpdate.Identity identity = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.grafeas.v1.WindowsUpdate.Identity, io.grafeas.v1.WindowsUpdate.Identity.Builder, io.grafeas.v1.WindowsUpdate.IdentityOrBuilder> getIdentityFieldBuilder() { if (identityBuilder_ == null) { identityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grafeas.v1.WindowsUpdate.Identity, io.grafeas.v1.WindowsUpdate.Identity.Builder, io.grafeas.v1.WindowsUpdate.IdentityOrBuilder>( getIdentity(), getParentForChildren(), isClean()); identity_ = null; } return identityBuilder_; } private java.lang.Object title_ = ""; /** * * *
     * The localized title of the update.
     * 
* * string title = 2; * * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The localized title of the update.
     * 
* * string title = 2; * * @return The bytes for title. */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The localized title of the update.
     * 
* * string title = 2; * * @param value The title to set. * @return This builder for chaining. */ public Builder setTitle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } title_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The localized title of the update.
     * 
* * string title = 2; * * @return This builder for chaining. */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * The localized title of the update.
     * 
* * string title = 2; * * @param value The bytes for title to set. * @return This builder for chaining. */ public Builder setTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object description_ = ""; /** * * *
     * The localized description of the update.
     * 
* * string description = 3; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The localized description of the update.
     * 
* * string description = 3; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The localized description of the update.
     * 
* * string description = 3; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The localized description of the update.
     * 
* * string description = 3; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * The localized description of the update.
     * 
* * string description = 3; * * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.util.List categories_ = java.util.Collections.emptyList(); private void ensureCategoriesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { categories_ = new java.util.ArrayList(categories_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.grafeas.v1.WindowsUpdate.Category, io.grafeas.v1.WindowsUpdate.Category.Builder, io.grafeas.v1.WindowsUpdate.CategoryOrBuilder> categoriesBuilder_; /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public java.util.List getCategoriesList() { if (categoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(categories_); } else { return categoriesBuilder_.getMessageList(); } } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public int getCategoriesCount() { if (categoriesBuilder_ == null) { return categories_.size(); } else { return categoriesBuilder_.getCount(); } } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public io.grafeas.v1.WindowsUpdate.Category getCategories(int index) { if (categoriesBuilder_ == null) { return categories_.get(index); } else { return categoriesBuilder_.getMessage(index); } } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public Builder setCategories(int index, io.grafeas.v1.WindowsUpdate.Category value) { if (categoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCategoriesIsMutable(); categories_.set(index, value); onChanged(); } else { categoriesBuilder_.setMessage(index, value); } return this; } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public Builder setCategories( int index, io.grafeas.v1.WindowsUpdate.Category.Builder builderForValue) { if (categoriesBuilder_ == null) { ensureCategoriesIsMutable(); categories_.set(index, builderForValue.build()); onChanged(); } else { categoriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public Builder addCategories(io.grafeas.v1.WindowsUpdate.Category value) { if (categoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCategoriesIsMutable(); categories_.add(value); onChanged(); } else { categoriesBuilder_.addMessage(value); } return this; } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public Builder addCategories(int index, io.grafeas.v1.WindowsUpdate.Category value) { if (categoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCategoriesIsMutable(); categories_.add(index, value); onChanged(); } else { categoriesBuilder_.addMessage(index, value); } return this; } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public Builder addCategories(io.grafeas.v1.WindowsUpdate.Category.Builder builderForValue) { if (categoriesBuilder_ == null) { ensureCategoriesIsMutable(); categories_.add(builderForValue.build()); onChanged(); } else { categoriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public Builder addCategories( int index, io.grafeas.v1.WindowsUpdate.Category.Builder builderForValue) { if (categoriesBuilder_ == null) { ensureCategoriesIsMutable(); categories_.add(index, builderForValue.build()); onChanged(); } else { categoriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public Builder addAllCategories( java.lang.Iterable values) { if (categoriesBuilder_ == null) { ensureCategoriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, categories_); onChanged(); } else { categoriesBuilder_.addAllMessages(values); } return this; } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public Builder clearCategories() { if (categoriesBuilder_ == null) { categories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { categoriesBuilder_.clear(); } return this; } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public Builder removeCategories(int index) { if (categoriesBuilder_ == null) { ensureCategoriesIsMutable(); categories_.remove(index); onChanged(); } else { categoriesBuilder_.remove(index); } return this; } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public io.grafeas.v1.WindowsUpdate.Category.Builder getCategoriesBuilder(int index) { return getCategoriesFieldBuilder().getBuilder(index); } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public io.grafeas.v1.WindowsUpdate.CategoryOrBuilder getCategoriesOrBuilder(int index) { if (categoriesBuilder_ == null) { return categories_.get(index); } else { return categoriesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public java.util.List getCategoriesOrBuilderList() { if (categoriesBuilder_ != null) { return categoriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(categories_); } } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public io.grafeas.v1.WindowsUpdate.Category.Builder addCategoriesBuilder() { return getCategoriesFieldBuilder() .addBuilder(io.grafeas.v1.WindowsUpdate.Category.getDefaultInstance()); } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public io.grafeas.v1.WindowsUpdate.Category.Builder addCategoriesBuilder(int index) { return getCategoriesFieldBuilder() .addBuilder(index, io.grafeas.v1.WindowsUpdate.Category.getDefaultInstance()); } /** * * *
     * The list of categories to which the update belongs.
     * 
* * repeated .grafeas.v1.WindowsUpdate.Category categories = 4; */ public java.util.List getCategoriesBuilderList() { return getCategoriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.grafeas.v1.WindowsUpdate.Category, io.grafeas.v1.WindowsUpdate.Category.Builder, io.grafeas.v1.WindowsUpdate.CategoryOrBuilder> getCategoriesFieldBuilder() { if (categoriesBuilder_ == null) { categoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.grafeas.v1.WindowsUpdate.Category, io.grafeas.v1.WindowsUpdate.Category.Builder, io.grafeas.v1.WindowsUpdate.CategoryOrBuilder>( categories_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); categories_ = null; } return categoriesBuilder_; } private com.google.protobuf.LazyStringList kbArticleIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureKbArticleIdsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { kbArticleIds_ = new com.google.protobuf.LazyStringArrayList(kbArticleIds_); bitField0_ |= 0x00000010; } } /** * * *
     * The Microsoft Knowledge Base article IDs that are associated with the
     * update.
     * 
* * repeated string kb_article_ids = 5; * * @return A list containing the kbArticleIds. */ public com.google.protobuf.ProtocolStringList getKbArticleIdsList() { return kbArticleIds_.getUnmodifiableView(); } /** * * *
     * The Microsoft Knowledge Base article IDs that are associated with the
     * update.
     * 
* * repeated string kb_article_ids = 5; * * @return The count of kbArticleIds. */ public int getKbArticleIdsCount() { return kbArticleIds_.size(); } /** * * *
     * The Microsoft Knowledge Base article IDs that are associated with the
     * update.
     * 
* * repeated string kb_article_ids = 5; * * @param index The index of the element to return. * @return The kbArticleIds at the given index. */ public java.lang.String getKbArticleIds(int index) { return kbArticleIds_.get(index); } /** * * *
     * The Microsoft Knowledge Base article IDs that are associated with the
     * update.
     * 
* * repeated string kb_article_ids = 5; * * @param index The index of the value to return. * @return The bytes of the kbArticleIds at the given index. */ public com.google.protobuf.ByteString getKbArticleIdsBytes(int index) { return kbArticleIds_.getByteString(index); } /** * * *
     * The Microsoft Knowledge Base article IDs that are associated with the
     * update.
     * 
* * repeated string kb_article_ids = 5; * * @param index The index to set the value at. * @param value The kbArticleIds to set. * @return This builder for chaining. */ public Builder setKbArticleIds(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureKbArticleIdsIsMutable(); kbArticleIds_.set(index, value); onChanged(); return this; } /** * * *
     * The Microsoft Knowledge Base article IDs that are associated with the
     * update.
     * 
* * repeated string kb_article_ids = 5; * * @param value The kbArticleIds to add. * @return This builder for chaining. */ public Builder addKbArticleIds(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureKbArticleIdsIsMutable(); kbArticleIds_.add(value); onChanged(); return this; } /** * * *
     * The Microsoft Knowledge Base article IDs that are associated with the
     * update.
     * 
* * repeated string kb_article_ids = 5; * * @param values The kbArticleIds to add. * @return This builder for chaining. */ public Builder addAllKbArticleIds(java.lang.Iterable values) { ensureKbArticleIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kbArticleIds_); onChanged(); return this; } /** * * *
     * The Microsoft Knowledge Base article IDs that are associated with the
     * update.
     * 
* * repeated string kb_article_ids = 5; * * @return This builder for chaining. */ public Builder clearKbArticleIds() { kbArticleIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * The Microsoft Knowledge Base article IDs that are associated with the
     * update.
     * 
* * repeated string kb_article_ids = 5; * * @param value The bytes of the kbArticleIds to add. * @return This builder for chaining. */ public Builder addKbArticleIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureKbArticleIdsIsMutable(); kbArticleIds_.add(value); onChanged(); return this; } private java.lang.Object supportUrl_ = ""; /** * * *
     * The hyperlink to the support information for the update.
     * 
* * string support_url = 6; * * @return The supportUrl. */ public java.lang.String getSupportUrl() { java.lang.Object ref = supportUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); supportUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The hyperlink to the support information for the update.
     * 
* * string support_url = 6; * * @return The bytes for supportUrl. */ public com.google.protobuf.ByteString getSupportUrlBytes() { java.lang.Object ref = supportUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); supportUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The hyperlink to the support information for the update.
     * 
* * string support_url = 6; * * @param value The supportUrl to set. * @return This builder for chaining. */ public Builder setSupportUrl(java.lang.String value) { if (value == null) { throw new NullPointerException(); } supportUrl_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * The hyperlink to the support information for the update.
     * 
* * string support_url = 6; * * @return This builder for chaining. */ public Builder clearSupportUrl() { supportUrl_ = getDefaultInstance().getSupportUrl(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * The hyperlink to the support information for the update.
     * 
* * string support_url = 6; * * @param value The bytes for supportUrl to set. * @return This builder for chaining. */ public Builder setSupportUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); supportUrl_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private com.google.protobuf.Timestamp lastPublishedTimestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastPublishedTimestampBuilder_; /** * * *
     * The last published timestamp of the update.
     * 
* * .google.protobuf.Timestamp last_published_timestamp = 7; * * @return Whether the lastPublishedTimestamp field is set. */ public boolean hasLastPublishedTimestamp() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
     * The last published timestamp of the update.
     * 
* * .google.protobuf.Timestamp last_published_timestamp = 7; * * @return The lastPublishedTimestamp. */ public com.google.protobuf.Timestamp getLastPublishedTimestamp() { if (lastPublishedTimestampBuilder_ == null) { return lastPublishedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastPublishedTimestamp_; } else { return lastPublishedTimestampBuilder_.getMessage(); } } /** * * *
     * The last published timestamp of the update.
     * 
* * .google.protobuf.Timestamp last_published_timestamp = 7; */ public Builder setLastPublishedTimestamp(com.google.protobuf.Timestamp value) { if (lastPublishedTimestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastPublishedTimestamp_ = value; } else { lastPublishedTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * The last published timestamp of the update.
     * 
* * .google.protobuf.Timestamp last_published_timestamp = 7; */ public Builder setLastPublishedTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastPublishedTimestampBuilder_ == null) { lastPublishedTimestamp_ = builderForValue.build(); } else { lastPublishedTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * The last published timestamp of the update.
     * 
* * .google.protobuf.Timestamp last_published_timestamp = 7; */ public Builder mergeLastPublishedTimestamp(com.google.protobuf.Timestamp value) { if (lastPublishedTimestampBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && lastPublishedTimestamp_ != null && lastPublishedTimestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastPublishedTimestampBuilder().mergeFrom(value); } else { lastPublishedTimestamp_ = value; } } else { lastPublishedTimestampBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * The last published timestamp of the update.
     * 
* * .google.protobuf.Timestamp last_published_timestamp = 7; */ public Builder clearLastPublishedTimestamp() { bitField0_ = (bitField0_ & ~0x00000040); lastPublishedTimestamp_ = null; if (lastPublishedTimestampBuilder_ != null) { lastPublishedTimestampBuilder_.dispose(); lastPublishedTimestampBuilder_ = null; } onChanged(); return this; } /** * * *
     * The last published timestamp of the update.
     * 
* * .google.protobuf.Timestamp last_published_timestamp = 7; */ public com.google.protobuf.Timestamp.Builder getLastPublishedTimestampBuilder() { bitField0_ |= 0x00000040; onChanged(); return getLastPublishedTimestampFieldBuilder().getBuilder(); } /** * * *
     * The last published timestamp of the update.
     * 
* * .google.protobuf.Timestamp last_published_timestamp = 7; */ public com.google.protobuf.TimestampOrBuilder getLastPublishedTimestampOrBuilder() { if (lastPublishedTimestampBuilder_ != null) { return lastPublishedTimestampBuilder_.getMessageOrBuilder(); } else { return lastPublishedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastPublishedTimestamp_; } } /** * * *
     * The last published timestamp of the update.
     * 
* * .google.protobuf.Timestamp last_published_timestamp = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastPublishedTimestampFieldBuilder() { if (lastPublishedTimestampBuilder_ == null) { lastPublishedTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastPublishedTimestamp(), getParentForChildren(), isClean()); lastPublishedTimestamp_ = null; } return lastPublishedTimestampBuilder_; } @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:grafeas.v1.WindowsUpdate) } // @@protoc_insertion_point(class_scope:grafeas.v1.WindowsUpdate) private static final io.grafeas.v1.WindowsUpdate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grafeas.v1.WindowsUpdate(); } public static io.grafeas.v1.WindowsUpdate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WindowsUpdate 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 io.grafeas.v1.WindowsUpdate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }