/* * 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/discovery.proto package io.grafeas.v1; /** * * *
* Provides information about the analysis status of a discovered resource. ** * Protobuf type {@code grafeas.v1.DiscoveryOccurrence} */ public final class DiscoveryOccurrence extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grafeas.v1.DiscoveryOccurrence) DiscoveryOccurrenceOrBuilder { private static final long serialVersionUID = 0L; // Use DiscoveryOccurrence.newBuilder() to construct. private DiscoveryOccurrence(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private DiscoveryOccurrence() { continuousAnalysis_ = 0; analysisStatus_ = 0; analysisError_ = java.util.Collections.emptyList(); cpe_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DiscoveryOccurrence(); } @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.Discovery.internal_static_grafeas_v1_DiscoveryOccurrence_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.Discovery.internal_static_grafeas_v1_DiscoveryOccurrence_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.DiscoveryOccurrence.class, io.grafeas.v1.DiscoveryOccurrence.Builder.class); } /** * * *
* Whether the resource is continuously analyzed. ** * Protobuf enum {@code grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis} */ public enum ContinuousAnalysis implements com.google.protobuf.ProtocolMessageEnum { /** * * *
* Unknown.
*
*
* CONTINUOUS_ANALYSIS_UNSPECIFIED = 0;
*/
CONTINUOUS_ANALYSIS_UNSPECIFIED(0),
/**
*
*
*
* The resource is continuously analyzed.
*
*
* ACTIVE = 1;
*/
ACTIVE(1),
/**
*
*
*
* The resource is ignored for continuous analysis.
*
*
* INACTIVE = 2;
*/
INACTIVE(2),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Unknown.
*
*
* CONTINUOUS_ANALYSIS_UNSPECIFIED = 0;
*/
public static final int CONTINUOUS_ANALYSIS_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The resource is continuously analyzed.
*
*
* ACTIVE = 1;
*/
public static final int ACTIVE_VALUE = 1;
/**
*
*
*
* The resource is ignored for continuous analysis.
*
*
* INACTIVE = 2;
*/
public static final int INACTIVE_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ContinuousAnalysis valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ContinuousAnalysis forNumber(int value) {
switch (value) {
case 0:
return CONTINUOUS_ANALYSIS_UNSPECIFIED;
case 1:
return ACTIVE;
case 2:
return INACTIVE;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap* Analysis status for a resource. Currently for initial analysis only (not * updated in continuous analysis). ** * Protobuf enum {@code grafeas.v1.DiscoveryOccurrence.AnalysisStatus} */ public enum AnalysisStatus implements com.google.protobuf.ProtocolMessageEnum { /** * * *
* Unknown.
*
*
* ANALYSIS_STATUS_UNSPECIFIED = 0;
*/
ANALYSIS_STATUS_UNSPECIFIED(0, 0),
/**
*
*
*
* Resource is known but no action has been taken yet.
*
*
* PENDING = 1;
*/
PENDING(1, 1),
/**
*
*
*
* Resource is being analyzed.
*
*
* SCANNING = 2;
*/
SCANNING(2, 2),
/**
*
*
*
* Analysis has finished successfully.
*
*
* FINISHED_SUCCESS = 3;
*/
FINISHED_SUCCESS(3, 3),
/**
*
*
*
* Analysis has finished unsuccessfully, the analysis itself is in a bad
* state.
*
*
* FINISHED_FAILED = 4;
*/
FINISHED_FAILED(5, 4),
/**
*
*
*
* The resource is known not to be supported.
*
*
* FINISHED_UNSUPPORTED = 5;
*/
FINISHED_UNSUPPORTED(6, 5),
UNRECOGNIZED(-1, -1),
;
/**
*
*
*
* Analysis has completed.
*
*
* COMPLETE = 3;
*/
public static final AnalysisStatus COMPLETE = FINISHED_SUCCESS;
/**
*
*
*
* Unknown.
*
*
* ANALYSIS_STATUS_UNSPECIFIED = 0;
*/
public static final int ANALYSIS_STATUS_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Resource is known but no action has been taken yet.
*
*
* PENDING = 1;
*/
public static final int PENDING_VALUE = 1;
/**
*
*
*
* Resource is being analyzed.
*
*
* SCANNING = 2;
*/
public static final int SCANNING_VALUE = 2;
/**
*
*
*
* Analysis has finished successfully.
*
*
* FINISHED_SUCCESS = 3;
*/
public static final int FINISHED_SUCCESS_VALUE = 3;
/**
*
*
*
* Analysis has completed.
*
*
* COMPLETE = 3;
*/
public static final int COMPLETE_VALUE = 3;
/**
*
*
*
* Analysis has finished unsuccessfully, the analysis itself is in a bad
* state.
*
*
* FINISHED_FAILED = 4;
*/
public static final int FINISHED_FAILED_VALUE = 4;
/**
*
*
*
* The resource is known not to be supported.
*
*
* FINISHED_UNSUPPORTED = 5;
*/
public static final int FINISHED_UNSUPPORTED_VALUE = 5;
public final int getNumber() {
if (index == -1) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AnalysisStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static AnalysisStatus forNumber(int value) {
switch (value) {
case 0:
return ANALYSIS_STATUS_UNSPECIFIED;
case 1:
return PENDING;
case 2:
return SCANNING;
case 3:
return FINISHED_SUCCESS;
case 4:
return FINISHED_FAILED;
case 5:
return FINISHED_UNSUPPORTED;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMaprepeated string analysis_type = 1;
*
* @return A list containing the analysisType.
*/
java.util.Listrepeated string analysis_type = 1;
*
* @return The count of analysisType.
*/
int getAnalysisTypeCount();
/**
* repeated string analysis_type = 1;
*
* @param index The index of the element to return.
* @return The analysisType at the given index.
*/
java.lang.String getAnalysisType(int index);
/**
* repeated string analysis_type = 1;
*
* @param index The index of the value to return.
* @return The bytes of the analysisType at the given index.
*/
com.google.protobuf.ByteString getAnalysisTypeBytes(int index);
}
/**
*
*
* * Indicates which analysis completed successfully. Multiple types of * analysis can be performed on a single resource. ** * Protobuf type {@code grafeas.v1.DiscoveryOccurrence.AnalysisCompleted} */ public static final class AnalysisCompleted extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grafeas.v1.DiscoveryOccurrence.AnalysisCompleted) AnalysisCompletedOrBuilder { private static final long serialVersionUID = 0L; // Use AnalysisCompleted.newBuilder() to construct. private AnalysisCompleted(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private AnalysisCompleted() { analysisType_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnalysisCompleted(); } @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.Discovery .internal_static_grafeas_v1_DiscoveryOccurrence_AnalysisCompleted_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.Discovery .internal_static_grafeas_v1_DiscoveryOccurrence_AnalysisCompleted_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted.class, io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted.Builder.class); } public static final int ANALYSIS_TYPE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList analysisType_; /** *
repeated string analysis_type = 1;
*
* @return A list containing the analysisType.
*/
public com.google.protobuf.ProtocolStringList getAnalysisTypeList() {
return analysisType_;
}
/**
* repeated string analysis_type = 1;
*
* @return The count of analysisType.
*/
public int getAnalysisTypeCount() {
return analysisType_.size();
}
/**
* repeated string analysis_type = 1;
*
* @param index The index of the element to return.
* @return The analysisType at the given index.
*/
public java.lang.String getAnalysisType(int index) {
return analysisType_.get(index);
}
/**
* repeated string analysis_type = 1;
*
* @param index The index of the value to return.
* @return The bytes of the analysisType at the given index.
*/
public com.google.protobuf.ByteString getAnalysisTypeBytes(int index) {
return analysisType_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < analysisType_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, analysisType_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < analysisType_.size(); i++) {
dataSize += computeStringSizeNoTag(analysisType_.getRaw(i));
}
size += dataSize;
size += 1 * getAnalysisTypeList().size();
}
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.DiscoveryOccurrence.AnalysisCompleted)) {
return super.equals(obj);
}
io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted other =
(io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted) obj;
if (!getAnalysisTypeList().equals(other.getAnalysisTypeList())) 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 (getAnalysisTypeCount() > 0) {
hash = (37 * hash) + ANALYSIS_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getAnalysisTypeList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted 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.DiscoveryOccurrence.AnalysisCompleted parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted 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.DiscoveryOccurrence.AnalysisCompleted parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted 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.DiscoveryOccurrence.AnalysisCompleted parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted 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.DiscoveryOccurrence.AnalysisCompleted parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted 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.DiscoveryOccurrence.AnalysisCompleted 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;
}
/**
*
*
*
* Indicates which analysis completed successfully. Multiple types of
* analysis can be performed on a single resource.
*
*
* Protobuf type {@code grafeas.v1.DiscoveryOccurrence.AnalysisCompleted}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builderrepeated string analysis_type = 1;
*
* @return A list containing the analysisType.
*/
public com.google.protobuf.ProtocolStringList getAnalysisTypeList() {
return analysisType_.getUnmodifiableView();
}
/**
* repeated string analysis_type = 1;
*
* @return The count of analysisType.
*/
public int getAnalysisTypeCount() {
return analysisType_.size();
}
/**
* repeated string analysis_type = 1;
*
* @param index The index of the element to return.
* @return The analysisType at the given index.
*/
public java.lang.String getAnalysisType(int index) {
return analysisType_.get(index);
}
/**
* repeated string analysis_type = 1;
*
* @param index The index of the value to return.
* @return The bytes of the analysisType at the given index.
*/
public com.google.protobuf.ByteString getAnalysisTypeBytes(int index) {
return analysisType_.getByteString(index);
}
/**
* repeated string analysis_type = 1;
*
* @param index The index to set the value at.
* @param value The analysisType to set.
* @return This builder for chaining.
*/
public Builder setAnalysisType(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAnalysisTypeIsMutable();
analysisType_.set(index, value);
onChanged();
return this;
}
/**
* repeated string analysis_type = 1;
*
* @param value The analysisType to add.
* @return This builder for chaining.
*/
public Builder addAnalysisType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAnalysisTypeIsMutable();
analysisType_.add(value);
onChanged();
return this;
}
/**
* repeated string analysis_type = 1;
*
* @param values The analysisType to add.
* @return This builder for chaining.
*/
public Builder addAllAnalysisType(java.lang.Iterablerepeated string analysis_type = 1;
*
* @return This builder for chaining.
*/
public Builder clearAnalysisType() {
analysisType_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string analysis_type = 1;
*
* @param value The bytes of the analysisType to add.
* @return This builder for chaining.
*/
public Builder addAnalysisTypeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAnalysisTypeIsMutable();
analysisType_.add(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.DiscoveryOccurrence.AnalysisCompleted)
}
// @@protoc_insertion_point(class_scope:grafeas.v1.DiscoveryOccurrence.AnalysisCompleted)
private static final io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted();
}
public static io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser* Whether the resource is continuously analyzed. ** *
.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;
*
* @return The enum numeric value on the wire for continuousAnalysis.
*/
@java.lang.Override
public int getContinuousAnalysisValue() {
return continuousAnalysis_;
}
/**
*
*
* * Whether the resource is continuously analyzed. ** *
.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;
*
* @return The continuousAnalysis.
*/
@java.lang.Override
public io.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis getContinuousAnalysis() {
io.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis result =
io.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis.forNumber(continuousAnalysis_);
return result == null
? io.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis.UNRECOGNIZED
: result;
}
public static final int ANALYSIS_STATUS_FIELD_NUMBER = 2;
private int analysisStatus_ = 0;
/**
*
*
* * The status of discovery for the resource. ** *
.grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;
*
* @return The enum numeric value on the wire for analysisStatus.
*/
@java.lang.Override
public int getAnalysisStatusValue() {
return analysisStatus_;
}
/**
*
*
* * The status of discovery for the resource. ** *
.grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;
*
* @return The analysisStatus.
*/
@java.lang.Override
public io.grafeas.v1.DiscoveryOccurrence.AnalysisStatus getAnalysisStatus() {
io.grafeas.v1.DiscoveryOccurrence.AnalysisStatus result =
io.grafeas.v1.DiscoveryOccurrence.AnalysisStatus.forNumber(analysisStatus_);
return result == null ? io.grafeas.v1.DiscoveryOccurrence.AnalysisStatus.UNRECOGNIZED : result;
}
public static final int ANALYSIS_COMPLETED_FIELD_NUMBER = 7;
private io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysisCompleted_;
/**
* .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;
*
* @return Whether the analysisCompleted field is set.
*/
@java.lang.Override
public boolean hasAnalysisCompleted() {
return analysisCompleted_ != null;
}
/**
* .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;
*
* @return The analysisCompleted.
*/
@java.lang.Override
public io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted getAnalysisCompleted() {
return analysisCompleted_ == null
? io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted.getDefaultInstance()
: analysisCompleted_;
}
/** .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7; */
@java.lang.Override
public io.grafeas.v1.DiscoveryOccurrence.AnalysisCompletedOrBuilder
getAnalysisCompletedOrBuilder() {
return analysisCompleted_ == null
? io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted.getDefaultInstance()
: analysisCompleted_;
}
public static final int ANALYSIS_ERROR_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private java.util.List* Indicates any errors encountered during analysis of a resource. There * could be 0 or more of these errors. ** *
repeated .google.rpc.Status analysis_error = 8;
*/
@java.lang.Override
public java.util.List* Indicates any errors encountered during analysis of a resource. There * could be 0 or more of these errors. ** *
repeated .google.rpc.Status analysis_error = 8;
*/
@java.lang.Override
public java.util.List extends com.google.rpc.StatusOrBuilder> getAnalysisErrorOrBuilderList() {
return analysisError_;
}
/**
*
*
* * Indicates any errors encountered during analysis of a resource. There * could be 0 or more of these errors. ** *
repeated .google.rpc.Status analysis_error = 8;
*/
@java.lang.Override
public int getAnalysisErrorCount() {
return analysisError_.size();
}
/**
*
*
* * Indicates any errors encountered during analysis of a resource. There * could be 0 or more of these errors. ** *
repeated .google.rpc.Status analysis_error = 8;
*/
@java.lang.Override
public com.google.rpc.Status getAnalysisError(int index) {
return analysisError_.get(index);
}
/**
*
*
* * Indicates any errors encountered during analysis of a resource. There * could be 0 or more of these errors. ** *
repeated .google.rpc.Status analysis_error = 8;
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getAnalysisErrorOrBuilder(int index) {
return analysisError_.get(index);
}
public static final int ANALYSIS_STATUS_ERROR_FIELD_NUMBER = 3;
private com.google.rpc.Status analysisStatusError_;
/**
*
*
* * When an error is encountered this will contain a LocalizedMessage under * details to show to the user. The LocalizedMessage is output only and * populated by the API. ** *
.google.rpc.Status analysis_status_error = 3;
*
* @return Whether the analysisStatusError field is set.
*/
@java.lang.Override
public boolean hasAnalysisStatusError() {
return analysisStatusError_ != null;
}
/**
*
*
* * When an error is encountered this will contain a LocalizedMessage under * details to show to the user. The LocalizedMessage is output only and * populated by the API. ** *
.google.rpc.Status analysis_status_error = 3;
*
* @return The analysisStatusError.
*/
@java.lang.Override
public com.google.rpc.Status getAnalysisStatusError() {
return analysisStatusError_ == null
? com.google.rpc.Status.getDefaultInstance()
: analysisStatusError_;
}
/**
*
*
* * When an error is encountered this will contain a LocalizedMessage under * details to show to the user. The LocalizedMessage is output only and * populated by the API. ** *
.google.rpc.Status analysis_status_error = 3;
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getAnalysisStatusErrorOrBuilder() {
return analysisStatusError_ == null
? com.google.rpc.Status.getDefaultInstance()
: analysisStatusError_;
}
public static final int CPE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object cpe_ = "";
/**
*
*
* * The CPE of the resource being scanned. ** *
string cpe = 4;
*
* @return The cpe.
*/
@java.lang.Override
public java.lang.String getCpe() {
java.lang.Object ref = cpe_;
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();
cpe_ = s;
return s;
}
}
/**
*
*
* * The CPE of the resource being scanned. ** *
string cpe = 4;
*
* @return The bytes for cpe.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCpeBytes() {
java.lang.Object ref = cpe_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
cpe_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAST_SCAN_TIME_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp lastScanTime_;
/**
*
*
* * The last time this resource was scanned. ** *
.google.protobuf.Timestamp last_scan_time = 5;
*
* @return Whether the lastScanTime field is set.
*/
@java.lang.Override
public boolean hasLastScanTime() {
return lastScanTime_ != null;
}
/**
*
*
* * The last time this resource was scanned. ** *
.google.protobuf.Timestamp last_scan_time = 5;
*
* @return The lastScanTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getLastScanTime() {
return lastScanTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: lastScanTime_;
}
/**
*
*
* * The last time this resource was scanned. ** *
.google.protobuf.Timestamp last_scan_time = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastScanTimeOrBuilder() {
return lastScanTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: lastScanTime_;
}
public static final int ARCHIVE_TIME_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp archiveTime_;
/**
*
*
* * The time occurrences related to this discovery occurrence were archived. ** *
.google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the archiveTime field is set.
*/
@java.lang.Override
public boolean hasArchiveTime() {
return archiveTime_ != null;
}
/**
*
*
* * The time occurrences related to this discovery occurrence were archived. ** *
.google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The archiveTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getArchiveTime() {
return archiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : archiveTime_;
}
/**
*
*
* * The time occurrences related to this discovery occurrence were archived. ** *
.google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getArchiveTimeOrBuilder() {
return archiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : archiveTime_;
}
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 (continuousAnalysis_
!= io.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis.CONTINUOUS_ANALYSIS_UNSPECIFIED
.getNumber()) {
output.writeEnum(1, continuousAnalysis_);
}
if (analysisStatus_
!= io.grafeas.v1.DiscoveryOccurrence.AnalysisStatus.ANALYSIS_STATUS_UNSPECIFIED
.getNumber()) {
output.writeEnum(2, analysisStatus_);
}
if (analysisStatusError_ != null) {
output.writeMessage(3, getAnalysisStatusError());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpe_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cpe_);
}
if (lastScanTime_ != null) {
output.writeMessage(5, getLastScanTime());
}
if (archiveTime_ != null) {
output.writeMessage(6, getArchiveTime());
}
if (analysisCompleted_ != null) {
output.writeMessage(7, getAnalysisCompleted());
}
for (int i = 0; i < analysisError_.size(); i++) {
output.writeMessage(8, analysisError_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (continuousAnalysis_
!= io.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis.CONTINUOUS_ANALYSIS_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, continuousAnalysis_);
}
if (analysisStatus_
!= io.grafeas.v1.DiscoveryOccurrence.AnalysisStatus.ANALYSIS_STATUS_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, analysisStatus_);
}
if (analysisStatusError_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAnalysisStatusError());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpe_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cpe_);
}
if (lastScanTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLastScanTime());
}
if (archiveTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getArchiveTime());
}
if (analysisCompleted_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAnalysisCompleted());
}
for (int i = 0; i < analysisError_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, analysisError_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.grafeas.v1.DiscoveryOccurrence)) {
return super.equals(obj);
}
io.grafeas.v1.DiscoveryOccurrence other = (io.grafeas.v1.DiscoveryOccurrence) obj;
if (continuousAnalysis_ != other.continuousAnalysis_) return false;
if (analysisStatus_ != other.analysisStatus_) return false;
if (hasAnalysisCompleted() != other.hasAnalysisCompleted()) return false;
if (hasAnalysisCompleted()) {
if (!getAnalysisCompleted().equals(other.getAnalysisCompleted())) return false;
}
if (!getAnalysisErrorList().equals(other.getAnalysisErrorList())) return false;
if (hasAnalysisStatusError() != other.hasAnalysisStatusError()) return false;
if (hasAnalysisStatusError()) {
if (!getAnalysisStatusError().equals(other.getAnalysisStatusError())) return false;
}
if (!getCpe().equals(other.getCpe())) return false;
if (hasLastScanTime() != other.hasLastScanTime()) return false;
if (hasLastScanTime()) {
if (!getLastScanTime().equals(other.getLastScanTime())) return false;
}
if (hasArchiveTime() != other.hasArchiveTime()) return false;
if (hasArchiveTime()) {
if (!getArchiveTime().equals(other.getArchiveTime())) 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) + CONTINUOUS_ANALYSIS_FIELD_NUMBER;
hash = (53 * hash) + continuousAnalysis_;
hash = (37 * hash) + ANALYSIS_STATUS_FIELD_NUMBER;
hash = (53 * hash) + analysisStatus_;
if (hasAnalysisCompleted()) {
hash = (37 * hash) + ANALYSIS_COMPLETED_FIELD_NUMBER;
hash = (53 * hash) + getAnalysisCompleted().hashCode();
}
if (getAnalysisErrorCount() > 0) {
hash = (37 * hash) + ANALYSIS_ERROR_FIELD_NUMBER;
hash = (53 * hash) + getAnalysisErrorList().hashCode();
}
if (hasAnalysisStatusError()) {
hash = (37 * hash) + ANALYSIS_STATUS_ERROR_FIELD_NUMBER;
hash = (53 * hash) + getAnalysisStatusError().hashCode();
}
hash = (37 * hash) + CPE_FIELD_NUMBER;
hash = (53 * hash) + getCpe().hashCode();
if (hasLastScanTime()) {
hash = (37 * hash) + LAST_SCAN_TIME_FIELD_NUMBER;
hash = (53 * hash) + getLastScanTime().hashCode();
}
if (hasArchiveTime()) {
hash = (37 * hash) + ARCHIVE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getArchiveTime().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grafeas.v1.DiscoveryOccurrence parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.DiscoveryOccurrence 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.DiscoveryOccurrence parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.DiscoveryOccurrence 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.DiscoveryOccurrence parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.DiscoveryOccurrence parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.DiscoveryOccurrence parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.DiscoveryOccurrence 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.DiscoveryOccurrence parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.grafeas.v1.DiscoveryOccurrence 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.DiscoveryOccurrence parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.DiscoveryOccurrence 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.DiscoveryOccurrence 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;
}
/**
*
*
* * Provides information about the analysis status of a discovered resource. ** * Protobuf type {@code grafeas.v1.DiscoveryOccurrence} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* Whether the resource is continuously analyzed.
*
*
* .grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;
*
* @return The enum numeric value on the wire for continuousAnalysis.
*/
@java.lang.Override
public int getContinuousAnalysisValue() {
return continuousAnalysis_;
}
/**
*
*
*
* Whether the resource is continuously analyzed.
*
*
* .grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;
*
* @param value The enum numeric value on the wire for continuousAnalysis to set.
* @return This builder for chaining.
*/
public Builder setContinuousAnalysisValue(int value) {
continuousAnalysis_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Whether the resource is continuously analyzed.
*
*
* .grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;
*
* @return The continuousAnalysis.
*/
@java.lang.Override
public io.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis getContinuousAnalysis() {
io.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis result =
io.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis.forNumber(continuousAnalysis_);
return result == null
? io.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis.UNRECOGNIZED
: result;
}
/**
*
*
*
* Whether the resource is continuously analyzed.
*
*
* .grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;
*
* @param value The continuousAnalysis to set.
* @return This builder for chaining.
*/
public Builder setContinuousAnalysis(
io.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
continuousAnalysis_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Whether the resource is continuously analyzed.
*
*
* .grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;
*
* @return This builder for chaining.
*/
public Builder clearContinuousAnalysis() {
bitField0_ = (bitField0_ & ~0x00000001);
continuousAnalysis_ = 0;
onChanged();
return this;
}
private int analysisStatus_ = 0;
/**
*
*
*
* The status of discovery for the resource.
*
*
* .grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;
*
* @return The enum numeric value on the wire for analysisStatus.
*/
@java.lang.Override
public int getAnalysisStatusValue() {
return analysisStatus_;
}
/**
*
*
*
* The status of discovery for the resource.
*
*
* .grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;
*
* @param value The enum numeric value on the wire for analysisStatus to set.
* @return This builder for chaining.
*/
public Builder setAnalysisStatusValue(int value) {
analysisStatus_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The status of discovery for the resource.
*
*
* .grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;
*
* @return The analysisStatus.
*/
@java.lang.Override
public io.grafeas.v1.DiscoveryOccurrence.AnalysisStatus getAnalysisStatus() {
io.grafeas.v1.DiscoveryOccurrence.AnalysisStatus result =
io.grafeas.v1.DiscoveryOccurrence.AnalysisStatus.forNumber(analysisStatus_);
return result == null
? io.grafeas.v1.DiscoveryOccurrence.AnalysisStatus.UNRECOGNIZED
: result;
}
/**
*
*
*
* The status of discovery for the resource.
*
*
* .grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;
*
* @param value The analysisStatus to set.
* @return This builder for chaining.
*/
public Builder setAnalysisStatus(io.grafeas.v1.DiscoveryOccurrence.AnalysisStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
analysisStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The status of discovery for the resource.
*
*
* .grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;
*
* @return This builder for chaining.
*/
public Builder clearAnalysisStatus() {
bitField0_ = (bitField0_ & ~0x00000002);
analysisStatus_ = 0;
onChanged();
return this;
}
private io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysisCompleted_;
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted,
io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted.Builder,
io.grafeas.v1.DiscoveryOccurrence.AnalysisCompletedOrBuilder>
analysisCompletedBuilder_;
/**
* .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;
*
* @return Whether the analysisCompleted field is set.
*/
public boolean hasAnalysisCompleted() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;
*
* @return The analysisCompleted.
*/
public io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted getAnalysisCompleted() {
if (analysisCompletedBuilder_ == null) {
return analysisCompleted_ == null
? io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted.getDefaultInstance()
: analysisCompleted_;
} else {
return analysisCompletedBuilder_.getMessage();
}
}
/** .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7; */
public Builder setAnalysisCompleted(io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted value) {
if (analysisCompletedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
analysisCompleted_ = value;
} else {
analysisCompletedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/** .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7; */
public Builder setAnalysisCompleted(
io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted.Builder builderForValue) {
if (analysisCompletedBuilder_ == null) {
analysisCompleted_ = builderForValue.build();
} else {
analysisCompletedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/** .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7; */
public Builder mergeAnalysisCompleted(
io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted value) {
if (analysisCompletedBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& analysisCompleted_ != null
&& analysisCompleted_
!= io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted.getDefaultInstance()) {
getAnalysisCompletedBuilder().mergeFrom(value);
} else {
analysisCompleted_ = value;
}
} else {
analysisCompletedBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/** .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7; */
public Builder clearAnalysisCompleted() {
bitField0_ = (bitField0_ & ~0x00000004);
analysisCompleted_ = null;
if (analysisCompletedBuilder_ != null) {
analysisCompletedBuilder_.dispose();
analysisCompletedBuilder_ = null;
}
onChanged();
return this;
}
/** .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7; */
public io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted.Builder
getAnalysisCompletedBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getAnalysisCompletedFieldBuilder().getBuilder();
}
/** .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7; */
public io.grafeas.v1.DiscoveryOccurrence.AnalysisCompletedOrBuilder
getAnalysisCompletedOrBuilder() {
if (analysisCompletedBuilder_ != null) {
return analysisCompletedBuilder_.getMessageOrBuilder();
} else {
return analysisCompleted_ == null
? io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted.getDefaultInstance()
: analysisCompleted_;
}
}
/** .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7; */
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted,
io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted.Builder,
io.grafeas.v1.DiscoveryOccurrence.AnalysisCompletedOrBuilder>
getAnalysisCompletedFieldBuilder() {
if (analysisCompletedBuilder_ == null) {
analysisCompletedBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted,
io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted.Builder,
io.grafeas.v1.DiscoveryOccurrence.AnalysisCompletedOrBuilder>(
getAnalysisCompleted(), getParentForChildren(), isClean());
analysisCompleted_ = null;
}
return analysisCompletedBuilder_;
}
private java.util.List
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public java.util.List
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public int getAnalysisErrorCount() {
if (analysisErrorBuilder_ == null) {
return analysisError_.size();
} else {
return analysisErrorBuilder_.getCount();
}
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public com.google.rpc.Status getAnalysisError(int index) {
if (analysisErrorBuilder_ == null) {
return analysisError_.get(index);
} else {
return analysisErrorBuilder_.getMessage(index);
}
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public Builder setAnalysisError(int index, com.google.rpc.Status value) {
if (analysisErrorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnalysisErrorIsMutable();
analysisError_.set(index, value);
onChanged();
} else {
analysisErrorBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public Builder setAnalysisError(int index, com.google.rpc.Status.Builder builderForValue) {
if (analysisErrorBuilder_ == null) {
ensureAnalysisErrorIsMutable();
analysisError_.set(index, builderForValue.build());
onChanged();
} else {
analysisErrorBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public Builder addAnalysisError(com.google.rpc.Status value) {
if (analysisErrorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnalysisErrorIsMutable();
analysisError_.add(value);
onChanged();
} else {
analysisErrorBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public Builder addAnalysisError(int index, com.google.rpc.Status value) {
if (analysisErrorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnalysisErrorIsMutable();
analysisError_.add(index, value);
onChanged();
} else {
analysisErrorBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public Builder addAnalysisError(com.google.rpc.Status.Builder builderForValue) {
if (analysisErrorBuilder_ == null) {
ensureAnalysisErrorIsMutable();
analysisError_.add(builderForValue.build());
onChanged();
} else {
analysisErrorBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public Builder addAnalysisError(int index, com.google.rpc.Status.Builder builderForValue) {
if (analysisErrorBuilder_ == null) {
ensureAnalysisErrorIsMutable();
analysisError_.add(index, builderForValue.build());
onChanged();
} else {
analysisErrorBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public Builder addAllAnalysisError(java.lang.Iterable extends com.google.rpc.Status> values) {
if (analysisErrorBuilder_ == null) {
ensureAnalysisErrorIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, analysisError_);
onChanged();
} else {
analysisErrorBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public Builder clearAnalysisError() {
if (analysisErrorBuilder_ == null) {
analysisError_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
analysisErrorBuilder_.clear();
}
return this;
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public Builder removeAnalysisError(int index) {
if (analysisErrorBuilder_ == null) {
ensureAnalysisErrorIsMutable();
analysisError_.remove(index);
onChanged();
} else {
analysisErrorBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public com.google.rpc.Status.Builder getAnalysisErrorBuilder(int index) {
return getAnalysisErrorFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public com.google.rpc.StatusOrBuilder getAnalysisErrorOrBuilder(int index) {
if (analysisErrorBuilder_ == null) {
return analysisError_.get(index);
} else {
return analysisErrorBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public java.util.List extends com.google.rpc.StatusOrBuilder>
getAnalysisErrorOrBuilderList() {
if (analysisErrorBuilder_ != null) {
return analysisErrorBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(analysisError_);
}
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public com.google.rpc.Status.Builder addAnalysisErrorBuilder() {
return getAnalysisErrorFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance());
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public com.google.rpc.Status.Builder addAnalysisErrorBuilder(int index) {
return getAnalysisErrorFieldBuilder()
.addBuilder(index, com.google.rpc.Status.getDefaultInstance());
}
/**
*
*
*
* Indicates any errors encountered during analysis of a resource. There
* could be 0 or more of these errors.
*
*
* repeated .google.rpc.Status analysis_error = 8;
*/
public java.util.List
* When an error is encountered this will contain a LocalizedMessage under
* details to show to the user. The LocalizedMessage is output only and
* populated by the API.
*
*
* .google.rpc.Status analysis_status_error = 3;
*
* @return Whether the analysisStatusError field is set.
*/
public boolean hasAnalysisStatusError() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* When an error is encountered this will contain a LocalizedMessage under
* details to show to the user. The LocalizedMessage is output only and
* populated by the API.
*
*
* .google.rpc.Status analysis_status_error = 3;
*
* @return The analysisStatusError.
*/
public com.google.rpc.Status getAnalysisStatusError() {
if (analysisStatusErrorBuilder_ == null) {
return analysisStatusError_ == null
? com.google.rpc.Status.getDefaultInstance()
: analysisStatusError_;
} else {
return analysisStatusErrorBuilder_.getMessage();
}
}
/**
*
*
*
* When an error is encountered this will contain a LocalizedMessage under
* details to show to the user. The LocalizedMessage is output only and
* populated by the API.
*
*
* .google.rpc.Status analysis_status_error = 3;
*/
public Builder setAnalysisStatusError(com.google.rpc.Status value) {
if (analysisStatusErrorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
analysisStatusError_ = value;
} else {
analysisStatusErrorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* When an error is encountered this will contain a LocalizedMessage under
* details to show to the user. The LocalizedMessage is output only and
* populated by the API.
*
*
* .google.rpc.Status analysis_status_error = 3;
*/
public Builder setAnalysisStatusError(com.google.rpc.Status.Builder builderForValue) {
if (analysisStatusErrorBuilder_ == null) {
analysisStatusError_ = builderForValue.build();
} else {
analysisStatusErrorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* When an error is encountered this will contain a LocalizedMessage under
* details to show to the user. The LocalizedMessage is output only and
* populated by the API.
*
*
* .google.rpc.Status analysis_status_error = 3;
*/
public Builder mergeAnalysisStatusError(com.google.rpc.Status value) {
if (analysisStatusErrorBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)
&& analysisStatusError_ != null
&& analysisStatusError_ != com.google.rpc.Status.getDefaultInstance()) {
getAnalysisStatusErrorBuilder().mergeFrom(value);
} else {
analysisStatusError_ = value;
}
} else {
analysisStatusErrorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* When an error is encountered this will contain a LocalizedMessage under
* details to show to the user. The LocalizedMessage is output only and
* populated by the API.
*
*
* .google.rpc.Status analysis_status_error = 3;
*/
public Builder clearAnalysisStatusError() {
bitField0_ = (bitField0_ & ~0x00000010);
analysisStatusError_ = null;
if (analysisStatusErrorBuilder_ != null) {
analysisStatusErrorBuilder_.dispose();
analysisStatusErrorBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* When an error is encountered this will contain a LocalizedMessage under
* details to show to the user. The LocalizedMessage is output only and
* populated by the API.
*
*
* .google.rpc.Status analysis_status_error = 3;
*/
public com.google.rpc.Status.Builder getAnalysisStatusErrorBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getAnalysisStatusErrorFieldBuilder().getBuilder();
}
/**
*
*
*
* When an error is encountered this will contain a LocalizedMessage under
* details to show to the user. The LocalizedMessage is output only and
* populated by the API.
*
*
* .google.rpc.Status analysis_status_error = 3;
*/
public com.google.rpc.StatusOrBuilder getAnalysisStatusErrorOrBuilder() {
if (analysisStatusErrorBuilder_ != null) {
return analysisStatusErrorBuilder_.getMessageOrBuilder();
} else {
return analysisStatusError_ == null
? com.google.rpc.Status.getDefaultInstance()
: analysisStatusError_;
}
}
/**
*
*
*
* When an error is encountered this will contain a LocalizedMessage under
* details to show to the user. The LocalizedMessage is output only and
* populated by the API.
*
*
* .google.rpc.Status analysis_status_error = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
getAnalysisStatusErrorFieldBuilder() {
if (analysisStatusErrorBuilder_ == null) {
analysisStatusErrorBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status,
com.google.rpc.Status.Builder,
com.google.rpc.StatusOrBuilder>(
getAnalysisStatusError(), getParentForChildren(), isClean());
analysisStatusError_ = null;
}
return analysisStatusErrorBuilder_;
}
private java.lang.Object cpe_ = "";
/**
*
*
*
* The CPE of the resource being scanned.
*
*
* string cpe = 4;
*
* @return The cpe.
*/
public java.lang.String getCpe() {
java.lang.Object ref = cpe_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cpe_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The CPE of the resource being scanned.
*
*
* string cpe = 4;
*
* @return The bytes for cpe.
*/
public com.google.protobuf.ByteString getCpeBytes() {
java.lang.Object ref = cpe_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
cpe_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The CPE of the resource being scanned.
*
*
* string cpe = 4;
*
* @param value The cpe to set.
* @return This builder for chaining.
*/
public Builder setCpe(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cpe_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* The CPE of the resource being scanned.
*
*
* string cpe = 4;
*
* @return This builder for chaining.
*/
public Builder clearCpe() {
cpe_ = getDefaultInstance().getCpe();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*
*
* The CPE of the resource being scanned.
*
*
* string cpe = 4;
*
* @param value The bytes for cpe to set.
* @return This builder for chaining.
*/
public Builder setCpeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cpe_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private com.google.protobuf.Timestamp lastScanTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
lastScanTimeBuilder_;
/**
*
*
*
* The last time this resource was scanned.
*
*
* .google.protobuf.Timestamp last_scan_time = 5;
*
* @return Whether the lastScanTime field is set.
*/
public boolean hasLastScanTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* The last time this resource was scanned.
*
*
* .google.protobuf.Timestamp last_scan_time = 5;
*
* @return The lastScanTime.
*/
public com.google.protobuf.Timestamp getLastScanTime() {
if (lastScanTimeBuilder_ == null) {
return lastScanTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: lastScanTime_;
} else {
return lastScanTimeBuilder_.getMessage();
}
}
/**
*
*
*
* The last time this resource was scanned.
*
*
* .google.protobuf.Timestamp last_scan_time = 5;
*/
public Builder setLastScanTime(com.google.protobuf.Timestamp value) {
if (lastScanTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastScanTime_ = value;
} else {
lastScanTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* The last time this resource was scanned.
*
*
* .google.protobuf.Timestamp last_scan_time = 5;
*/
public Builder setLastScanTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastScanTimeBuilder_ == null) {
lastScanTime_ = builderForValue.build();
} else {
lastScanTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* The last time this resource was scanned.
*
*
* .google.protobuf.Timestamp last_scan_time = 5;
*/
public Builder mergeLastScanTime(com.google.protobuf.Timestamp value) {
if (lastScanTimeBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)
&& lastScanTime_ != null
&& lastScanTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getLastScanTimeBuilder().mergeFrom(value);
} else {
lastScanTime_ = value;
}
} else {
lastScanTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* The last time this resource was scanned.
*
*
* .google.protobuf.Timestamp last_scan_time = 5;
*/
public Builder clearLastScanTime() {
bitField0_ = (bitField0_ & ~0x00000040);
lastScanTime_ = null;
if (lastScanTimeBuilder_ != null) {
lastScanTimeBuilder_.dispose();
lastScanTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The last time this resource was scanned.
*
*
* .google.protobuf.Timestamp last_scan_time = 5;
*/
public com.google.protobuf.Timestamp.Builder getLastScanTimeBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getLastScanTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* The last time this resource was scanned.
*
*
* .google.protobuf.Timestamp last_scan_time = 5;
*/
public com.google.protobuf.TimestampOrBuilder getLastScanTimeOrBuilder() {
if (lastScanTimeBuilder_ != null) {
return lastScanTimeBuilder_.getMessageOrBuilder();
} else {
return lastScanTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: lastScanTime_;
}
}
/**
*
*
*
* The last time this resource was scanned.
*
*
* .google.protobuf.Timestamp last_scan_time = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getLastScanTimeFieldBuilder() {
if (lastScanTimeBuilder_ == null) {
lastScanTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getLastScanTime(), getParentForChildren(), isClean());
lastScanTime_ = null;
}
return lastScanTimeBuilder_;
}
private com.google.protobuf.Timestamp archiveTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
archiveTimeBuilder_;
/**
*
*
*
* The time occurrences related to this discovery occurrence were archived.
*
*
*
* .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the archiveTime field is set.
*/
public boolean hasArchiveTime() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*
*
* The time occurrences related to this discovery occurrence were archived.
*
*
*
* .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The archiveTime.
*/
public com.google.protobuf.Timestamp getArchiveTime() {
if (archiveTimeBuilder_ == null) {
return archiveTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: archiveTime_;
} else {
return archiveTimeBuilder_.getMessage();
}
}
/**
*
*
*
* The time occurrences related to this discovery occurrence were archived.
*
*
*
* .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setArchiveTime(com.google.protobuf.Timestamp value) {
if (archiveTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
archiveTime_ = value;
} else {
archiveTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* The time occurrences related to this discovery occurrence were archived.
*
*
*
* .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setArchiveTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (archiveTimeBuilder_ == null) {
archiveTime_ = builderForValue.build();
} else {
archiveTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* The time occurrences related to this discovery occurrence were archived.
*
*
*
* .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeArchiveTime(com.google.protobuf.Timestamp value) {
if (archiveTimeBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)
&& archiveTime_ != null
&& archiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getArchiveTimeBuilder().mergeFrom(value);
} else {
archiveTime_ = value;
}
} else {
archiveTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* The time occurrences related to this discovery occurrence were archived.
*
*
*
* .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearArchiveTime() {
bitField0_ = (bitField0_ & ~0x00000080);
archiveTime_ = null;
if (archiveTimeBuilder_ != null) {
archiveTimeBuilder_.dispose();
archiveTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The time occurrences related to this discovery occurrence were archived.
*
*
*
* .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getArchiveTimeBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getArchiveTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* The time occurrences related to this discovery occurrence were archived.
*
*
*
* .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getArchiveTimeOrBuilder() {
if (archiveTimeBuilder_ != null) {
return archiveTimeBuilder_.getMessageOrBuilder();
} else {
return archiveTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: archiveTime_;
}
}
/**
*
*
*
* The time occurrences related to this discovery occurrence were archived.
*
*
*
* .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getArchiveTimeFieldBuilder() {
if (archiveTimeBuilder_ == null) {
archiveTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getArchiveTime(), getParentForChildren(), isClean());
archiveTime_ = null;
}
return archiveTimeBuilder_;
}
@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.DiscoveryOccurrence)
}
// @@protoc_insertion_point(class_scope:grafeas.v1.DiscoveryOccurrence)
private static final io.grafeas.v1.DiscoveryOccurrence DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grafeas.v1.DiscoveryOccurrence();
}
public static io.grafeas.v1.DiscoveryOccurrence getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser