/* * 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/package.proto package io.grafeas.v1; /** * * *
* This represents a particular channel of distribution for a given package. * E.g., Debian's jessie-backports dpkg mirror. ** * Protobuf type {@code grafeas.v1.Distribution} */ public final class Distribution extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grafeas.v1.Distribution) DistributionOrBuilder { private static final long serialVersionUID = 0L; // Use Distribution.newBuilder() to construct. private Distribution(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private Distribution() { cpeUri_ = ""; architecture_ = 0; maintainer_ = ""; url_ = ""; description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Distribution(); } @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.Package.internal_static_grafeas_v1_Distribution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.Package.internal_static_grafeas_v1_Distribution_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.Distribution.class, io.grafeas.v1.Distribution.Builder.class); } public static final int CPE_URI_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object cpeUri_ = ""; /** * * *
* The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) * denoting the package manager version distributing a package. ** *
string cpe_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The cpeUri.
*/
@java.lang.Override
public java.lang.String getCpeUri() {
java.lang.Object ref = cpeUri_;
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();
cpeUri_ = s;
return s;
}
}
/**
*
*
* * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) * denoting the package manager version distributing a package. ** *
string cpe_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for cpeUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCpeUriBytes() {
java.lang.Object ref = cpeUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
cpeUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ARCHITECTURE_FIELD_NUMBER = 2;
private int architecture_ = 0;
/**
*
*
* * The CPU architecture for which packages in this distribution channel were * built. ** *
.grafeas.v1.Architecture architecture = 2;
*
* @return The enum numeric value on the wire for architecture.
*/
@java.lang.Override
public int getArchitectureValue() {
return architecture_;
}
/**
*
*
* * The CPU architecture for which packages in this distribution channel were * built. ** *
.grafeas.v1.Architecture architecture = 2;
*
* @return The architecture.
*/
@java.lang.Override
public io.grafeas.v1.Architecture getArchitecture() {
io.grafeas.v1.Architecture result = io.grafeas.v1.Architecture.forNumber(architecture_);
return result == null ? io.grafeas.v1.Architecture.UNRECOGNIZED : result;
}
public static final int LATEST_VERSION_FIELD_NUMBER = 3;
private io.grafeas.v1.Version latestVersion_;
/**
*
*
* * The latest available version of this package in this distribution channel. ** *
.grafeas.v1.Version latest_version = 3;
*
* @return Whether the latestVersion field is set.
*/
@java.lang.Override
public boolean hasLatestVersion() {
return latestVersion_ != null;
}
/**
*
*
* * The latest available version of this package in this distribution channel. ** *
.grafeas.v1.Version latest_version = 3;
*
* @return The latestVersion.
*/
@java.lang.Override
public io.grafeas.v1.Version getLatestVersion() {
return latestVersion_ == null ? io.grafeas.v1.Version.getDefaultInstance() : latestVersion_;
}
/**
*
*
* * The latest available version of this package in this distribution channel. ** *
.grafeas.v1.Version latest_version = 3;
*/
@java.lang.Override
public io.grafeas.v1.VersionOrBuilder getLatestVersionOrBuilder() {
return latestVersion_ == null ? io.grafeas.v1.Version.getDefaultInstance() : latestVersion_;
}
public static final int MAINTAINER_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object maintainer_ = "";
/**
*
*
* * A freeform string denoting the maintainer of this package. ** *
string maintainer = 4;
*
* @return The maintainer.
*/
@java.lang.Override
public java.lang.String getMaintainer() {
java.lang.Object ref = maintainer_;
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();
maintainer_ = s;
return s;
}
}
/**
*
*
* * A freeform string denoting the maintainer of this package. ** *
string maintainer = 4;
*
* @return The bytes for maintainer.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMaintainerBytes() {
java.lang.Object ref = maintainer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
maintainer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int URL_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object url_ = "";
/**
*
*
* * The distribution channel-specific homepage for this package. ** *
string url = 5;
*
* @return The url.
*/
@java.lang.Override
public java.lang.String getUrl() {
java.lang.Object ref = url_;
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();
url_ = s;
return s;
}
}
/**
*
*
* * The distribution channel-specific homepage for this package. ** *
string url = 5;
*
* @return The bytes for url.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
*
* * The distribution channel-specific description of this package. ** *
string description = 6;
*
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
*
* * The distribution channel-specific description of this package. ** *
string description = 6;
*
* @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;
}
}
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(cpeUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpeUri_);
}
if (architecture_ != io.grafeas.v1.Architecture.ARCHITECTURE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, architecture_);
}
if (latestVersion_ != null) {
output.writeMessage(3, getLatestVersion());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(maintainer_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, maintainer_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, url_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_);
}
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(cpeUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpeUri_);
}
if (architecture_ != io.grafeas.v1.Architecture.ARCHITECTURE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, architecture_);
}
if (latestVersion_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLatestVersion());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(maintainer_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, maintainer_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, url_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_);
}
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.Distribution)) {
return super.equals(obj);
}
io.grafeas.v1.Distribution other = (io.grafeas.v1.Distribution) obj;
if (!getCpeUri().equals(other.getCpeUri())) return false;
if (architecture_ != other.architecture_) return false;
if (hasLatestVersion() != other.hasLatestVersion()) return false;
if (hasLatestVersion()) {
if (!getLatestVersion().equals(other.getLatestVersion())) return false;
}
if (!getMaintainer().equals(other.getMaintainer())) return false;
if (!getUrl().equals(other.getUrl())) return false;
if (!getDescription().equals(other.getDescription())) 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) + CPE_URI_FIELD_NUMBER;
hash = (53 * hash) + getCpeUri().hashCode();
hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER;
hash = (53 * hash) + architecture_;
if (hasLatestVersion()) {
hash = (37 * hash) + LATEST_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getLatestVersion().hashCode();
}
hash = (37 * hash) + MAINTAINER_FIELD_NUMBER;
hash = (53 * hash) + getMaintainer().hashCode();
hash = (37 * hash) + URL_FIELD_NUMBER;
hash = (53 * hash) + getUrl().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grafeas.v1.Distribution parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.Distribution 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.Distribution parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.Distribution 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.Distribution parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.Distribution parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.Distribution parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.Distribution 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.Distribution parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.grafeas.v1.Distribution 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.Distribution parseFrom(com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.Distribution 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.Distribution 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;
}
/**
*
*
* * This represents a particular channel of distribution for a given package. * E.g., Debian's jessie-backports dpkg mirror. ** * Protobuf type {@code grafeas.v1.Distribution} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
* denoting the package manager version distributing a package.
*
*
* string cpe_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The cpeUri.
*/
public java.lang.String getCpeUri() {
java.lang.Object ref = cpeUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cpeUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
* denoting the package manager version distributing a package.
*
*
* string cpe_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for cpeUri.
*/
public com.google.protobuf.ByteString getCpeUriBytes() {
java.lang.Object ref = cpeUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
cpeUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
* denoting the package manager version distributing a package.
*
*
* string cpe_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The cpeUri to set.
* @return This builder for chaining.
*/
public Builder setCpeUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cpeUri_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
* denoting the package manager version distributing a package.
*
*
* string cpe_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearCpeUri() {
cpeUri_ = getDefaultInstance().getCpeUri();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
* denoting the package manager version distributing a package.
*
*
* string cpe_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for cpeUri to set.
* @return This builder for chaining.
*/
public Builder setCpeUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cpeUri_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int architecture_ = 0;
/**
*
*
*
* The CPU architecture for which packages in this distribution channel were
* built.
*
*
* .grafeas.v1.Architecture architecture = 2;
*
* @return The enum numeric value on the wire for architecture.
*/
@java.lang.Override
public int getArchitectureValue() {
return architecture_;
}
/**
*
*
*
* The CPU architecture for which packages in this distribution channel were
* built.
*
*
* .grafeas.v1.Architecture architecture = 2;
*
* @param value The enum numeric value on the wire for architecture to set.
* @return This builder for chaining.
*/
public Builder setArchitectureValue(int value) {
architecture_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The CPU architecture for which packages in this distribution channel were
* built.
*
*
* .grafeas.v1.Architecture architecture = 2;
*
* @return The architecture.
*/
@java.lang.Override
public io.grafeas.v1.Architecture getArchitecture() {
io.grafeas.v1.Architecture result = io.grafeas.v1.Architecture.forNumber(architecture_);
return result == null ? io.grafeas.v1.Architecture.UNRECOGNIZED : result;
}
/**
*
*
*
* The CPU architecture for which packages in this distribution channel were
* built.
*
*
* .grafeas.v1.Architecture architecture = 2;
*
* @param value The architecture to set.
* @return This builder for chaining.
*/
public Builder setArchitecture(io.grafeas.v1.Architecture value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
architecture_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The CPU architecture for which packages in this distribution channel were
* built.
*
*
* .grafeas.v1.Architecture architecture = 2;
*
* @return This builder for chaining.
*/
public Builder clearArchitecture() {
bitField0_ = (bitField0_ & ~0x00000002);
architecture_ = 0;
onChanged();
return this;
}
private io.grafeas.v1.Version latestVersion_;
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.Version, io.grafeas.v1.Version.Builder, io.grafeas.v1.VersionOrBuilder>
latestVersionBuilder_;
/**
*
*
*
* The latest available version of this package in this distribution channel.
*
*
* .grafeas.v1.Version latest_version = 3;
*
* @return Whether the latestVersion field is set.
*/
public boolean hasLatestVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The latest available version of this package in this distribution channel.
*
*
* .grafeas.v1.Version latest_version = 3;
*
* @return The latestVersion.
*/
public io.grafeas.v1.Version getLatestVersion() {
if (latestVersionBuilder_ == null) {
return latestVersion_ == null ? io.grafeas.v1.Version.getDefaultInstance() : latestVersion_;
} else {
return latestVersionBuilder_.getMessage();
}
}
/**
*
*
*
* The latest available version of this package in this distribution channel.
*
*
* .grafeas.v1.Version latest_version = 3;
*/
public Builder setLatestVersion(io.grafeas.v1.Version value) {
if (latestVersionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
latestVersion_ = value;
} else {
latestVersionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The latest available version of this package in this distribution channel.
*
*
* .grafeas.v1.Version latest_version = 3;
*/
public Builder setLatestVersion(io.grafeas.v1.Version.Builder builderForValue) {
if (latestVersionBuilder_ == null) {
latestVersion_ = builderForValue.build();
} else {
latestVersionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The latest available version of this package in this distribution channel.
*
*
* .grafeas.v1.Version latest_version = 3;
*/
public Builder mergeLatestVersion(io.grafeas.v1.Version value) {
if (latestVersionBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& latestVersion_ != null
&& latestVersion_ != io.grafeas.v1.Version.getDefaultInstance()) {
getLatestVersionBuilder().mergeFrom(value);
} else {
latestVersion_ = value;
}
} else {
latestVersionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The latest available version of this package in this distribution channel.
*
*
* .grafeas.v1.Version latest_version = 3;
*/
public Builder clearLatestVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
latestVersion_ = null;
if (latestVersionBuilder_ != null) {
latestVersionBuilder_.dispose();
latestVersionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The latest available version of this package in this distribution channel.
*
*
* .grafeas.v1.Version latest_version = 3;
*/
public io.grafeas.v1.Version.Builder getLatestVersionBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getLatestVersionFieldBuilder().getBuilder();
}
/**
*
*
*
* The latest available version of this package in this distribution channel.
*
*
* .grafeas.v1.Version latest_version = 3;
*/
public io.grafeas.v1.VersionOrBuilder getLatestVersionOrBuilder() {
if (latestVersionBuilder_ != null) {
return latestVersionBuilder_.getMessageOrBuilder();
} else {
return latestVersion_ == null ? io.grafeas.v1.Version.getDefaultInstance() : latestVersion_;
}
}
/**
*
*
*
* The latest available version of this package in this distribution channel.
*
*
* .grafeas.v1.Version latest_version = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.Version, io.grafeas.v1.Version.Builder, io.grafeas.v1.VersionOrBuilder>
getLatestVersionFieldBuilder() {
if (latestVersionBuilder_ == null) {
latestVersionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.Version,
io.grafeas.v1.Version.Builder,
io.grafeas.v1.VersionOrBuilder>(
getLatestVersion(), getParentForChildren(), isClean());
latestVersion_ = null;
}
return latestVersionBuilder_;
}
private java.lang.Object maintainer_ = "";
/**
*
*
*
* A freeform string denoting the maintainer of this package.
*
*
* string maintainer = 4;
*
* @return The maintainer.
*/
public java.lang.String getMaintainer() {
java.lang.Object ref = maintainer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
maintainer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* A freeform string denoting the maintainer of this package.
*
*
* string maintainer = 4;
*
* @return The bytes for maintainer.
*/
public com.google.protobuf.ByteString getMaintainerBytes() {
java.lang.Object ref = maintainer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
maintainer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* A freeform string denoting the maintainer of this package.
*
*
* string maintainer = 4;
*
* @param value The maintainer to set.
* @return This builder for chaining.
*/
public Builder setMaintainer(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
maintainer_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* A freeform string denoting the maintainer of this package.
*
*
* string maintainer = 4;
*
* @return This builder for chaining.
*/
public Builder clearMaintainer() {
maintainer_ = getDefaultInstance().getMaintainer();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* A freeform string denoting the maintainer of this package.
*
*
* string maintainer = 4;
*
* @param value The bytes for maintainer to set.
* @return This builder for chaining.
*/
public Builder setMaintainerBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
maintainer_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object url_ = "";
/**
*
*
*
* The distribution channel-specific homepage for this package.
*
*
* string url = 5;
*
* @return The url.
*/
public java.lang.String getUrl() {
java.lang.Object ref = url_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
url_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The distribution channel-specific homepage for this package.
*
*
* string url = 5;
*
* @return The bytes for url.
*/
public com.google.protobuf.ByteString getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The distribution channel-specific homepage for this package.
*
*
* string url = 5;
*
* @param value The url to set.
* @return This builder for chaining.
*/
public Builder setUrl(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
url_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* The distribution channel-specific homepage for this package.
*
*
* string url = 5;
*
* @return This builder for chaining.
*/
public Builder clearUrl() {
url_ = getDefaultInstance().getUrl();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* The distribution channel-specific homepage for this package.
*
*
* string url = 5;
*
* @param value The bytes for url to set.
* @return This builder for chaining.
*/
public Builder setUrlBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
url_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
*
* The distribution channel-specific description of this package.
*
*
* string description = 6;
*
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The distribution channel-specific description of this package.
*
*
* string description = 6;
*
* @return The bytes for description.
*/
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The distribution channel-specific description of this package.
*
*
* string description = 6;
*
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* The distribution channel-specific description of this package.
*
*
* string description = 6;
*
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*
*
* The distribution channel-specific description of this package.
*
*
* string description = 6;
*
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000020;
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.Distribution)
}
// @@protoc_insertion_point(class_scope:grafeas.v1.Distribution)
private static final io.grafeas.v1.Distribution DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grafeas.v1.Distribution();
}
public static io.grafeas.v1.Distribution getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser