WindowsUpdate.java
/*
* 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;
/**
*
*
* <pre>
* 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.
* </pre>
*
* 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 {
/**
*
*
* <pre>
* The revision independent identifier of the update.
* </pre>
*
* <code>string update_id = 1;</code>
*
* @return The updateId.
*/
java.lang.String getUpdateId();
/**
*
*
* <pre>
* The revision independent identifier of the update.
* </pre>
*
* <code>string update_id = 1;</code>
*
* @return The bytes for updateId.
*/
com.google.protobuf.ByteString getUpdateIdBytes();
/**
*
*
* <pre>
* The revision number of the update.
* </pre>
*
* <code>int32 revision = 2;</code>
*
* @return The revision.
*/
int getRevision();
}
/**
*
*
* <pre>
* The unique identifier of the update.
* </pre>
*
* 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;
private volatile java.lang.Object updateId_;
/**
*
*
* <pre>
* The revision independent identifier of the update.
* </pre>
*
* <code>string update_id = 1;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The revision independent identifier of the update.
* </pre>
*
* <code>string update_id = 1;</code>
*
* @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_;
/**
*
*
* <pre>
* The revision number of the update.
* </pre>
*
* <code>int32 revision = 2;</code>
*
* @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;
}
/**
*
*
* <pre>
* The unique identifier of the update.
* </pre>
*
* Protobuf type {@code grafeas.v1.WindowsUpdate.Identity}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<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();
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);
result.updateId_ = updateId_;
result.revision_ = revision_;
onBuilt();
return result;
}
@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_;
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();
break;
} // case 10
case 16:
{
revision_ = input.readInt32();
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 java.lang.Object updateId_ = "";
/**
*
*
* <pre>
* The revision independent identifier of the update.
* </pre>
*
* <code>string update_id = 1;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The revision independent identifier of the update.
* </pre>
*
* <code>string update_id = 1;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The revision independent identifier of the update.
* </pre>
*
* <code>string update_id = 1;</code>
*
* @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;
onChanged();
return this;
}
/**
*
*
* <pre>
* The revision independent identifier of the update.
* </pre>
*
* <code>string update_id = 1;</code>
*
* @return This builder for chaining.
*/
public Builder clearUpdateId() {
updateId_ = getDefaultInstance().getUpdateId();
onChanged();
return this;
}
/**
*
*
* <pre>
* The revision independent identifier of the update.
* </pre>
*
* <code>string update_id = 1;</code>
*
* @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;
onChanged();
return this;
}
private int revision_;
/**
*
*
* <pre>
* The revision number of the update.
* </pre>
*
* <code>int32 revision = 2;</code>
*
* @return The revision.
*/
@java.lang.Override
public int getRevision() {
return revision_;
}
/**
*
*
* <pre>
* The revision number of the update.
* </pre>
*
* <code>int32 revision = 2;</code>
*
* @param value The revision to set.
* @return This builder for chaining.
*/
public Builder setRevision(int value) {
revision_ = value;
onChanged();
return this;
}
/**
*
*
* <pre>
* The revision number of the update.
* </pre>
*
* <code>int32 revision = 2;</code>
*
* @return This builder for chaining.
*/
public Builder clearRevision() {
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<Identity> PARSER =
new com.google.protobuf.AbstractParser<Identity>() {
@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<Identity> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Identity> 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 {
/**
*
*
* <pre>
* The identifier of the category.
* </pre>
*
* <code>string category_id = 1;</code>
*
* @return The categoryId.
*/
java.lang.String getCategoryId();
/**
*
*
* <pre>
* The identifier of the category.
* </pre>
*
* <code>string category_id = 1;</code>
*
* @return The bytes for categoryId.
*/
com.google.protobuf.ByteString getCategoryIdBytes();
/**
*
*
* <pre>
* The localized name of the category.
* </pre>
*
* <code>string name = 2;</code>
*
* @return The name.
*/
java.lang.String getName();
/**
*
*
* <pre>
* The localized name of the category.
* </pre>
*
* <code>string name = 2;</code>
*
* @return The bytes for name.
*/
com.google.protobuf.ByteString getNameBytes();
}
/**
*
*
* <pre>
* The category to which the update belongs.
* </pre>
*
* 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;
private volatile java.lang.Object categoryId_;
/**
*
*
* <pre>
* The identifier of the category.
* </pre>
*
* <code>string category_id = 1;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The identifier of the category.
* </pre>
*
* <code>string category_id = 1;</code>
*
* @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;
private volatile java.lang.Object name_;
/**
*
*
* <pre>
* The localized name of the category.
* </pre>
*
* <code>string name = 2;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The localized name of the category.
* </pre>
*
* <code>string name = 2;</code>
*
* @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;
}
/**
*
*
* <pre>
* The category to which the update belongs.
* </pre>
*
* Protobuf type {@code grafeas.v1.WindowsUpdate.Category}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<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();
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);
result.categoryId_ = categoryId_;
result.name_ = name_;
onBuilt();
return result;
}
@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_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
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();
break;
} // case 10
case 18:
{
name_ = input.readStringRequireUtf8();
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 java.lang.Object categoryId_ = "";
/**
*
*
* <pre>
* The identifier of the category.
* </pre>
*
* <code>string category_id = 1;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The identifier of the category.
* </pre>
*
* <code>string category_id = 1;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The identifier of the category.
* </pre>
*
* <code>string category_id = 1;</code>
*
* @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;
onChanged();
return this;
}
/**
*
*
* <pre>
* The identifier of the category.
* </pre>
*
* <code>string category_id = 1;</code>
*
* @return This builder for chaining.
*/
public Builder clearCategoryId() {
categoryId_ = getDefaultInstance().getCategoryId();
onChanged();
return this;
}
/**
*
*
* <pre>
* The identifier of the category.
* </pre>
*
* <code>string category_id = 1;</code>
*
* @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;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
*
* <pre>
* The localized name of the category.
* </pre>
*
* <code>string name = 2;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The localized name of the category.
* </pre>
*
* <code>string name = 2;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The localized name of the category.
* </pre>
*
* <code>string name = 2;</code>
*
* @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;
onChanged();
return this;
}
/**
*
*
* <pre>
* The localized name of the category.
* </pre>
*
* <code>string name = 2;</code>
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
*
* <pre>
* The localized name of the category.
* </pre>
*
* <code>string name = 2;</code>
*
* @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;
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<Category> PARSER =
new com.google.protobuf.AbstractParser<Category>() {
@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<Category> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Category> 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_;
/**
*
*
* <pre>
* Required - The unique identifier for the update.
* </pre>
*
* <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code>
*
* @return Whether the identity field is set.
*/
@java.lang.Override
public boolean hasIdentity() {
return identity_ != null;
}
/**
*
*
* <pre>
* Required - The unique identifier for the update.
* </pre>
*
* <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code>
*
* @return The identity.
*/
@java.lang.Override
public io.grafeas.v1.WindowsUpdate.Identity getIdentity() {
return identity_ == null
? io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance()
: identity_;
}
/**
*
*
* <pre>
* Required - The unique identifier for the update.
* </pre>
*
* <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code>
*/
@java.lang.Override
public io.grafeas.v1.WindowsUpdate.IdentityOrBuilder getIdentityOrBuilder() {
return getIdentity();
}
public static final int TITLE_FIELD_NUMBER = 2;
private volatile java.lang.Object title_;
/**
*
*
* <pre>
* The localized title of the update.
* </pre>
*
* <code>string title = 2;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The localized title of the update.
* </pre>
*
* <code>string title = 2;</code>
*
* @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;
private volatile java.lang.Object description_;
/**
*
*
* <pre>
* The localized description of the update.
* </pre>
*
* <code>string description = 3;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The localized description of the update.
* </pre>
*
* <code>string description = 3;</code>
*
* @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;
private java.util.List<io.grafeas.v1.WindowsUpdate.Category> categories_;
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
@java.lang.Override
public java.util.List<io.grafeas.v1.WindowsUpdate.Category> getCategoriesList() {
return categories_;
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
@java.lang.Override
public java.util.List<? extends io.grafeas.v1.WindowsUpdate.CategoryOrBuilder>
getCategoriesOrBuilderList() {
return categories_;
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
@java.lang.Override
public int getCategoriesCount() {
return categories_.size();
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
@java.lang.Override
public io.grafeas.v1.WindowsUpdate.Category getCategories(int index) {
return categories_.get(index);
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
@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;
private com.google.protobuf.LazyStringList kbArticleIds_;
/**
*
*
* <pre>
* The Microsoft Knowledge Base article IDs that are associated with the
* update.
* </pre>
*
* <code>repeated string kb_article_ids = 5;</code>
*
* @return A list containing the kbArticleIds.
*/
public com.google.protobuf.ProtocolStringList getKbArticleIdsList() {
return kbArticleIds_;
}
/**
*
*
* <pre>
* The Microsoft Knowledge Base article IDs that are associated with the
* update.
* </pre>
*
* <code>repeated string kb_article_ids = 5;</code>
*
* @return The count of kbArticleIds.
*/
public int getKbArticleIdsCount() {
return kbArticleIds_.size();
}
/**
*
*
* <pre>
* The Microsoft Knowledge Base article IDs that are associated with the
* update.
* </pre>
*
* <code>repeated string kb_article_ids = 5;</code>
*
* @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);
}
/**
*
*
* <pre>
* The Microsoft Knowledge Base article IDs that are associated with the
* update.
* </pre>
*
* <code>repeated string kb_article_ids = 5;</code>
*
* @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;
private volatile java.lang.Object supportUrl_;
/**
*
*
* <pre>
* The hyperlink to the support information for the update.
* </pre>
*
* <code>string support_url = 6;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The hyperlink to the support information for the update.
* </pre>
*
* <code>string support_url = 6;</code>
*
* @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_;
/**
*
*
* <pre>
* The last published timestamp of the update.
* </pre>
*
* <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code>
*
* @return Whether the lastPublishedTimestamp field is set.
*/
@java.lang.Override
public boolean hasLastPublishedTimestamp() {
return lastPublishedTimestamp_ != null;
}
/**
*
*
* <pre>
* The last published timestamp of the update.
* </pre>
*
* <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code>
*
* @return The lastPublishedTimestamp.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getLastPublishedTimestamp() {
return lastPublishedTimestamp_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: lastPublishedTimestamp_;
}
/**
*
*
* <pre>
* The last published timestamp of the update.
* </pre>
*
* <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code>
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastPublishedTimestampOrBuilder() {
return getLastPublishedTimestamp();
}
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;
}
/**
*
*
* <pre>
* 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.
* </pre>
*
* Protobuf type {@code grafeas.v1.WindowsUpdate}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<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();
if (identityBuilder_ == null) {
identity_ = null;
} else {
identity_ = null;
identityBuilder_ = null;
}
title_ = "";
description_ = "";
if (categoriesBuilder_ == null) {
categories_ = java.util.Collections.emptyList();
} else {
categories_ = null;
categoriesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
kbArticleIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
supportUrl_ = "";
if (lastPublishedTimestampBuilder_ == null) {
lastPublishedTimestamp_ = null;
} else {
lastPublishedTimestamp_ = null;
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);
int from_bitField0_ = bitField0_;
if (identityBuilder_ == null) {
result.identity_ = identity_;
} else {
result.identity_ = identityBuilder_.build();
}
result.title_ = title_;
result.description_ = description_;
if (categoriesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
categories_ = java.util.Collections.unmodifiableList(categories_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.categories_ = categories_;
} else {
result.categories_ = categoriesBuilder_.build();
}
if (((bitField0_ & 0x00000002) != 0)) {
kbArticleIds_ = kbArticleIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.kbArticleIds_ = kbArticleIds_;
result.supportUrl_ = supportUrl_;
if (lastPublishedTimestampBuilder_ == null) {
result.lastPublishedTimestamp_ = lastPublishedTimestamp_;
} else {
result.lastPublishedTimestamp_ = lastPublishedTimestampBuilder_.build();
}
onBuilt();
return result;
}
@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_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (categoriesBuilder_ == null) {
if (!other.categories_.isEmpty()) {
if (categories_.isEmpty()) {
categories_ = other.categories_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCategoriesIsMutable();
categories_.addAll(other.categories_);
}
onChanged();
}
} else {
if (!other.categories_.isEmpty()) {
if (categoriesBuilder_.isEmpty()) {
categoriesBuilder_.dispose();
categoriesBuilder_ = null;
categories_ = other.categories_;
bitField0_ = (bitField0_ & ~0x00000001);
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_ & ~0x00000002);
} else {
ensureKbArticleIdsIsMutable();
kbArticleIds_.addAll(other.kbArticleIds_);
}
onChanged();
}
if (!other.getSupportUrl().isEmpty()) {
supportUrl_ = other.supportUrl_;
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);
break;
} // case 10
case 18:
{
title_ = input.readStringRequireUtf8();
break;
} // case 18
case 26:
{
description_ = input.readStringRequireUtf8();
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();
break;
} // case 50
case 58:
{
input.readMessage(
getLastPublishedTimestampFieldBuilder().getBuilder(), extensionRegistry);
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_;
/**
*
*
* <pre>
* Required - The unique identifier for the update.
* </pre>
*
* <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code>
*
* @return Whether the identity field is set.
*/
public boolean hasIdentity() {
return identityBuilder_ != null || identity_ != null;
}
/**
*
*
* <pre>
* Required - The unique identifier for the update.
* </pre>
*
* <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code>
*
* @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();
}
}
/**
*
*
* <pre>
* Required - The unique identifier for the update.
* </pre>
*
* <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code>
*/
public Builder setIdentity(io.grafeas.v1.WindowsUpdate.Identity value) {
if (identityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identity_ = value;
onChanged();
} else {
identityBuilder_.setMessage(value);
}
return this;
}
/**
*
*
* <pre>
* Required - The unique identifier for the update.
* </pre>
*
* <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code>
*/
public Builder setIdentity(io.grafeas.v1.WindowsUpdate.Identity.Builder builderForValue) {
if (identityBuilder_ == null) {
identity_ = builderForValue.build();
onChanged();
} else {
identityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
* <pre>
* Required - The unique identifier for the update.
* </pre>
*
* <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code>
*/
public Builder mergeIdentity(io.grafeas.v1.WindowsUpdate.Identity value) {
if (identityBuilder_ == null) {
if (identity_ != null) {
identity_ =
io.grafeas.v1.WindowsUpdate.Identity.newBuilder(identity_)
.mergeFrom(value)
.buildPartial();
} else {
identity_ = value;
}
onChanged();
} else {
identityBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
* <pre>
* Required - The unique identifier for the update.
* </pre>
*
* <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code>
*/
public Builder clearIdentity() {
if (identityBuilder_ == null) {
identity_ = null;
onChanged();
} else {
identity_ = null;
identityBuilder_ = null;
}
return this;
}
/**
*
*
* <pre>
* Required - The unique identifier for the update.
* </pre>
*
* <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code>
*/
public io.grafeas.v1.WindowsUpdate.Identity.Builder getIdentityBuilder() {
onChanged();
return getIdentityFieldBuilder().getBuilder();
}
/**
*
*
* <pre>
* Required - The unique identifier for the update.
* </pre>
*
* <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code>
*/
public io.grafeas.v1.WindowsUpdate.IdentityOrBuilder getIdentityOrBuilder() {
if (identityBuilder_ != null) {
return identityBuilder_.getMessageOrBuilder();
} else {
return identity_ == null
? io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance()
: identity_;
}
}
/**
*
*
* <pre>
* Required - The unique identifier for the update.
* </pre>
*
* <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code>
*/
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_ = "";
/**
*
*
* <pre>
* The localized title of the update.
* </pre>
*
* <code>string title = 2;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The localized title of the update.
* </pre>
*
* <code>string title = 2;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The localized title of the update.
* </pre>
*
* <code>string title = 2;</code>
*
* @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;
onChanged();
return this;
}
/**
*
*
* <pre>
* The localized title of the update.
* </pre>
*
* <code>string title = 2;</code>
*
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
*
*
* <pre>
* The localized title of the update.
* </pre>
*
* <code>string title = 2;</code>
*
* @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;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
* <pre>
* The localized description of the update.
* </pre>
*
* <code>string description = 3;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The localized description of the update.
* </pre>
*
* <code>string description = 3;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The localized description of the update.
* </pre>
*
* <code>string description = 3;</code>
*
* @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;
onChanged();
return this;
}
/**
*
*
* <pre>
* The localized description of the update.
* </pre>
*
* <code>string description = 3;</code>
*
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
*
* <pre>
* The localized description of the update.
* </pre>
*
* <code>string description = 3;</code>
*
* @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;
onChanged();
return this;
}
private java.util.List<io.grafeas.v1.WindowsUpdate.Category> categories_ =
java.util.Collections.emptyList();
private void ensureCategoriesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
categories_ = new java.util.ArrayList<io.grafeas.v1.WindowsUpdate.Category>(categories_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.grafeas.v1.WindowsUpdate.Category,
io.grafeas.v1.WindowsUpdate.Category.Builder,
io.grafeas.v1.WindowsUpdate.CategoryOrBuilder>
categoriesBuilder_;
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
public java.util.List<io.grafeas.v1.WindowsUpdate.Category> getCategoriesList() {
if (categoriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(categories_);
} else {
return categoriesBuilder_.getMessageList();
}
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
public int getCategoriesCount() {
if (categoriesBuilder_ == null) {
return categories_.size();
} else {
return categoriesBuilder_.getCount();
}
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
public io.grafeas.v1.WindowsUpdate.Category getCategories(int index) {
if (categoriesBuilder_ == null) {
return categories_.get(index);
} else {
return categoriesBuilder_.getMessage(index);
}
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
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;
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
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;
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
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;
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
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;
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
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;
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
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;
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
public Builder addAllCategories(
java.lang.Iterable<? extends io.grafeas.v1.WindowsUpdate.Category> values) {
if (categoriesBuilder_ == null) {
ensureCategoriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, categories_);
onChanged();
} else {
categoriesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
public Builder clearCategories() {
if (categoriesBuilder_ == null) {
categories_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
categoriesBuilder_.clear();
}
return this;
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
public Builder removeCategories(int index) {
if (categoriesBuilder_ == null) {
ensureCategoriesIsMutable();
categories_.remove(index);
onChanged();
} else {
categoriesBuilder_.remove(index);
}
return this;
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
public io.grafeas.v1.WindowsUpdate.Category.Builder getCategoriesBuilder(int index) {
return getCategoriesFieldBuilder().getBuilder(index);
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
public io.grafeas.v1.WindowsUpdate.CategoryOrBuilder getCategoriesOrBuilder(int index) {
if (categoriesBuilder_ == null) {
return categories_.get(index);
} else {
return categoriesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
public java.util.List<? extends io.grafeas.v1.WindowsUpdate.CategoryOrBuilder>
getCategoriesOrBuilderList() {
if (categoriesBuilder_ != null) {
return categoriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(categories_);
}
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
public io.grafeas.v1.WindowsUpdate.Category.Builder addCategoriesBuilder() {
return getCategoriesFieldBuilder()
.addBuilder(io.grafeas.v1.WindowsUpdate.Category.getDefaultInstance());
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
public io.grafeas.v1.WindowsUpdate.Category.Builder addCategoriesBuilder(int index) {
return getCategoriesFieldBuilder()
.addBuilder(index, io.grafeas.v1.WindowsUpdate.Category.getDefaultInstance());
}
/**
*
*
* <pre>
* The list of categories to which the update belongs.
* </pre>
*
* <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code>
*/
public java.util.List<io.grafeas.v1.WindowsUpdate.Category.Builder> 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_ & 0x00000001) != 0), getParentForChildren(), isClean());
categories_ = null;
}
return categoriesBuilder_;
}
private com.google.protobuf.LazyStringList kbArticleIds_ =
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureKbArticleIdsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
kbArticleIds_ = new com.google.protobuf.LazyStringArrayList(kbArticleIds_);
bitField0_ |= 0x00000002;
}
}
/**
*
*
* <pre>
* The Microsoft Knowledge Base article IDs that are associated with the
* update.
* </pre>
*
* <code>repeated string kb_article_ids = 5;</code>
*
* @return A list containing the kbArticleIds.
*/
public com.google.protobuf.ProtocolStringList getKbArticleIdsList() {
return kbArticleIds_.getUnmodifiableView();
}
/**
*
*
* <pre>
* The Microsoft Knowledge Base article IDs that are associated with the
* update.
* </pre>
*
* <code>repeated string kb_article_ids = 5;</code>
*
* @return The count of kbArticleIds.
*/
public int getKbArticleIdsCount() {
return kbArticleIds_.size();
}
/**
*
*
* <pre>
* The Microsoft Knowledge Base article IDs that are associated with the
* update.
* </pre>
*
* <code>repeated string kb_article_ids = 5;</code>
*
* @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);
}
/**
*
*
* <pre>
* The Microsoft Knowledge Base article IDs that are associated with the
* update.
* </pre>
*
* <code>repeated string kb_article_ids = 5;</code>
*
* @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);
}
/**
*
*
* <pre>
* The Microsoft Knowledge Base article IDs that are associated with the
* update.
* </pre>
*
* <code>repeated string kb_article_ids = 5;</code>
*
* @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;
}
/**
*
*
* <pre>
* The Microsoft Knowledge Base article IDs that are associated with the
* update.
* </pre>
*
* <code>repeated string kb_article_ids = 5;</code>
*
* @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;
}
/**
*
*
* <pre>
* The Microsoft Knowledge Base article IDs that are associated with the
* update.
* </pre>
*
* <code>repeated string kb_article_ids = 5;</code>
*
* @param values The kbArticleIds to add.
* @return This builder for chaining.
*/
public Builder addAllKbArticleIds(java.lang.Iterable<java.lang.String> values) {
ensureKbArticleIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kbArticleIds_);
onChanged();
return this;
}
/**
*
*
* <pre>
* The Microsoft Knowledge Base article IDs that are associated with the
* update.
* </pre>
*
* <code>repeated string kb_article_ids = 5;</code>
*
* @return This builder for chaining.
*/
public Builder clearKbArticleIds() {
kbArticleIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
* <pre>
* The Microsoft Knowledge Base article IDs that are associated with the
* update.
* </pre>
*
* <code>repeated string kb_article_ids = 5;</code>
*
* @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_ = "";
/**
*
*
* <pre>
* The hyperlink to the support information for the update.
* </pre>
*
* <code>string support_url = 6;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The hyperlink to the support information for the update.
* </pre>
*
* <code>string support_url = 6;</code>
*
* @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;
}
}
/**
*
*
* <pre>
* The hyperlink to the support information for the update.
* </pre>
*
* <code>string support_url = 6;</code>
*
* @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;
onChanged();
return this;
}
/**
*
*
* <pre>
* The hyperlink to the support information for the update.
* </pre>
*
* <code>string support_url = 6;</code>
*
* @return This builder for chaining.
*/
public Builder clearSupportUrl() {
supportUrl_ = getDefaultInstance().getSupportUrl();
onChanged();
return this;
}
/**
*
*
* <pre>
* The hyperlink to the support information for the update.
* </pre>
*
* <code>string support_url = 6;</code>
*
* @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;
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_;
/**
*
*
* <pre>
* The last published timestamp of the update.
* </pre>
*
* <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code>
*
* @return Whether the lastPublishedTimestamp field is set.
*/
public boolean hasLastPublishedTimestamp() {
return lastPublishedTimestampBuilder_ != null || lastPublishedTimestamp_ != null;
}
/**
*
*
* <pre>
* The last published timestamp of the update.
* </pre>
*
* <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code>
*
* @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();
}
}
/**
*
*
* <pre>
* The last published timestamp of the update.
* </pre>
*
* <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code>
*/
public Builder setLastPublishedTimestamp(com.google.protobuf.Timestamp value) {
if (lastPublishedTimestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastPublishedTimestamp_ = value;
onChanged();
} else {
lastPublishedTimestampBuilder_.setMessage(value);
}
return this;
}
/**
*
*
* <pre>
* The last published timestamp of the update.
* </pre>
*
* <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code>
*/
public Builder setLastPublishedTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastPublishedTimestampBuilder_ == null) {
lastPublishedTimestamp_ = builderForValue.build();
onChanged();
} else {
lastPublishedTimestampBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
* <pre>
* The last published timestamp of the update.
* </pre>
*
* <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code>
*/
public Builder mergeLastPublishedTimestamp(com.google.protobuf.Timestamp value) {
if (lastPublishedTimestampBuilder_ == null) {
if (lastPublishedTimestamp_ != null) {
lastPublishedTimestamp_ =
com.google.protobuf.Timestamp.newBuilder(lastPublishedTimestamp_)
.mergeFrom(value)
.buildPartial();
} else {
lastPublishedTimestamp_ = value;
}
onChanged();
} else {
lastPublishedTimestampBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
* <pre>
* The last published timestamp of the update.
* </pre>
*
* <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code>
*/
public Builder clearLastPublishedTimestamp() {
if (lastPublishedTimestampBuilder_ == null) {
lastPublishedTimestamp_ = null;
onChanged();
} else {
lastPublishedTimestamp_ = null;
lastPublishedTimestampBuilder_ = null;
}
return this;
}
/**
*
*
* <pre>
* The last published timestamp of the update.
* </pre>
*
* <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code>
*/
public com.google.protobuf.Timestamp.Builder getLastPublishedTimestampBuilder() {
onChanged();
return getLastPublishedTimestampFieldBuilder().getBuilder();
}
/**
*
*
* <pre>
* The last published timestamp of the update.
* </pre>
*
* <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code>
*/
public com.google.protobuf.TimestampOrBuilder getLastPublishedTimestampOrBuilder() {
if (lastPublishedTimestampBuilder_ != null) {
return lastPublishedTimestampBuilder_.getMessageOrBuilder();
} else {
return lastPublishedTimestamp_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: lastPublishedTimestamp_;
}
}
/**
*
*
* <pre>
* The last published timestamp of the update.
* </pre>
*
* <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code>
*/
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<WindowsUpdate> PARSER =
new com.google.protobuf.AbstractParser<WindowsUpdate>() {
@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<WindowsUpdate> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<WindowsUpdate> getParserForType() {
return PARSER;
}
@java.lang.Override
public io.grafeas.v1.WindowsUpdate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}