/*
* 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/compliance.proto
package io.grafeas.v1;
/** Protobuf type {@code grafeas.v1.ComplianceNote} */
public final class ComplianceNote extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:grafeas.v1.ComplianceNote)
ComplianceNoteOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComplianceNote.newBuilder() to construct.
private ComplianceNote(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComplianceNote() {
title_ = "";
description_ = "";
version_ = java.util.Collections.emptyList();
rationale_ = "";
remediation_ = "";
scanInstructions_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ComplianceNote();
}
@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.Compliance.internal_static_grafeas_v1_ComplianceNote_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grafeas.v1.Compliance.internal_static_grafeas_v1_ComplianceNote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grafeas.v1.ComplianceNote.class, io.grafeas.v1.ComplianceNote.Builder.class);
}
public interface CisBenchmarkOrBuilder
extends
// @@protoc_insertion_point(interface_extends:grafeas.v1.ComplianceNote.CisBenchmark)
com.google.protobuf.MessageOrBuilder {
/**
* int32 profile_level = 1;
*
* @return The profileLevel.
*/
int getProfileLevel();
/**
* .grafeas.v1.Severity severity = 2;
*
* @return The enum numeric value on the wire for severity.
*/
int getSeverityValue();
/**
* .grafeas.v1.Severity severity = 2;
*
* @return The severity.
*/
io.grafeas.v1.Severity getSeverity();
}
/**
*
*
*
* A compliance check that is a CIS benchmark. ** * Protobuf type {@code grafeas.v1.ComplianceNote.CisBenchmark} */ public static final class CisBenchmark extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grafeas.v1.ComplianceNote.CisBenchmark) CisBenchmarkOrBuilder { private static final long serialVersionUID = 0L; // Use CisBenchmark.newBuilder() to construct. private CisBenchmark(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private CisBenchmark() { severity_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CisBenchmark(); } @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.Compliance .internal_static_grafeas_v1_ComplianceNote_CisBenchmark_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.Compliance .internal_static_grafeas_v1_ComplianceNote_CisBenchmark_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.ComplianceNote.CisBenchmark.class, io.grafeas.v1.ComplianceNote.CisBenchmark.Builder.class); } public static final int PROFILE_LEVEL_FIELD_NUMBER = 1; private int profileLevel_ = 0; /** *
int32 profile_level = 1;
*
* @return The profileLevel.
*/
@java.lang.Override
public int getProfileLevel() {
return profileLevel_;
}
public static final int SEVERITY_FIELD_NUMBER = 2;
private int severity_ = 0;
/**
* .grafeas.v1.Severity severity = 2;
*
* @return The enum numeric value on the wire for severity.
*/
@java.lang.Override
public int getSeverityValue() {
return severity_;
}
/**
* .grafeas.v1.Severity severity = 2;
*
* @return The severity.
*/
@java.lang.Override
public io.grafeas.v1.Severity getSeverity() {
io.grafeas.v1.Severity result = io.grafeas.v1.Severity.forNumber(severity_);
return result == null ? io.grafeas.v1.Severity.UNRECOGNIZED : result;
}
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 (profileLevel_ != 0) {
output.writeInt32(1, profileLevel_);
}
if (severity_ != io.grafeas.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
output.writeEnum(2, severity_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (profileLevel_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, profileLevel_);
}
if (severity_ != io.grafeas.v1.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, severity_);
}
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.ComplianceNote.CisBenchmark)) {
return super.equals(obj);
}
io.grafeas.v1.ComplianceNote.CisBenchmark other =
(io.grafeas.v1.ComplianceNote.CisBenchmark) obj;
if (getProfileLevel() != other.getProfileLevel()) return false;
if (severity_ != other.severity_) 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) + PROFILE_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getProfileLevel();
hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
hash = (53 * hash) + severity_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grafeas.v1.ComplianceNote.CisBenchmark parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.ComplianceNote.CisBenchmark 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.ComplianceNote.CisBenchmark parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.ComplianceNote.CisBenchmark 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.ComplianceNote.CisBenchmark parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.ComplianceNote.CisBenchmark parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.ComplianceNote.CisBenchmark parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.ComplianceNote.CisBenchmark 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.ComplianceNote.CisBenchmark parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.grafeas.v1.ComplianceNote.CisBenchmark 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.ComplianceNote.CisBenchmark parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.ComplianceNote.CisBenchmark 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.ComplianceNote.CisBenchmark prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* A compliance check that is a CIS benchmark.
*
*
* Protobuf type {@code grafeas.v1.ComplianceNote.CisBenchmark}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builderint32 profile_level = 1;
*
* @return The profileLevel.
*/
@java.lang.Override
public int getProfileLevel() {
return profileLevel_;
}
/**
* int32 profile_level = 1;
*
* @param value The profileLevel to set.
* @return This builder for chaining.
*/
public Builder setProfileLevel(int value) {
profileLevel_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int32 profile_level = 1;
*
* @return This builder for chaining.
*/
public Builder clearProfileLevel() {
bitField0_ = (bitField0_ & ~0x00000001);
profileLevel_ = 0;
onChanged();
return this;
}
private int severity_ = 0;
/**
* .grafeas.v1.Severity severity = 2;
*
* @return The enum numeric value on the wire for severity.
*/
@java.lang.Override
public int getSeverityValue() {
return severity_;
}
/**
* .grafeas.v1.Severity severity = 2;
*
* @param value The enum numeric value on the wire for severity to set.
* @return This builder for chaining.
*/
public Builder setSeverityValue(int value) {
severity_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .grafeas.v1.Severity severity = 2;
*
* @return The severity.
*/
@java.lang.Override
public io.grafeas.v1.Severity getSeverity() {
io.grafeas.v1.Severity result = io.grafeas.v1.Severity.forNumber(severity_);
return result == null ? io.grafeas.v1.Severity.UNRECOGNIZED : result;
}
/**
* .grafeas.v1.Severity severity = 2;
*
* @param value The severity to set.
* @return This builder for chaining.
*/
public Builder setSeverity(io.grafeas.v1.Severity value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
severity_ = value.getNumber();
onChanged();
return this;
}
/**
* .grafeas.v1.Severity severity = 2;
*
* @return This builder for chaining.
*/
public Builder clearSeverity() {
bitField0_ = (bitField0_ & ~0x00000002);
severity_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grafeas.v1.ComplianceNote.CisBenchmark)
}
// @@protoc_insertion_point(class_scope:grafeas.v1.ComplianceNote.CisBenchmark)
private static final io.grafeas.v1.ComplianceNote.CisBenchmark DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grafeas.v1.ComplianceNote.CisBenchmark();
}
public static io.grafeas.v1.ComplianceNote.CisBenchmark getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser* The title that identifies this compliance check. ** *
string title = 1;
*
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
}
}
/**
*
*
* * The title that identifies this compliance check. ** *
string title = 1;
*
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
*
* * A description about this compliance check. ** *
string description = 2;
*
* @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;
}
}
/**
*
*
* * A description about this compliance check. ** *
string description = 2;
*
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List* The OS and config versions the benchmark applies to. ** *
repeated .grafeas.v1.ComplianceVersion version = 3;
*/
@java.lang.Override
public java.util.List* The OS and config versions the benchmark applies to. ** *
repeated .grafeas.v1.ComplianceVersion version = 3;
*/
@java.lang.Override
public java.util.List extends io.grafeas.v1.ComplianceVersionOrBuilder>
getVersionOrBuilderList() {
return version_;
}
/**
*
*
* * The OS and config versions the benchmark applies to. ** *
repeated .grafeas.v1.ComplianceVersion version = 3;
*/
@java.lang.Override
public int getVersionCount() {
return version_.size();
}
/**
*
*
* * The OS and config versions the benchmark applies to. ** *
repeated .grafeas.v1.ComplianceVersion version = 3;
*/
@java.lang.Override
public io.grafeas.v1.ComplianceVersion getVersion(int index) {
return version_.get(index);
}
/**
*
*
* * The OS and config versions the benchmark applies to. ** *
repeated .grafeas.v1.ComplianceVersion version = 3;
*/
@java.lang.Override
public io.grafeas.v1.ComplianceVersionOrBuilder getVersionOrBuilder(int index) {
return version_.get(index);
}
public static final int RATIONALE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object rationale_ = "";
/**
*
*
* * A rationale for the existence of this compliance check. ** *
string rationale = 4;
*
* @return The rationale.
*/
@java.lang.Override
public java.lang.String getRationale() {
java.lang.Object ref = rationale_;
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();
rationale_ = s;
return s;
}
}
/**
*
*
* * A rationale for the existence of this compliance check. ** *
string rationale = 4;
*
* @return The bytes for rationale.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRationaleBytes() {
java.lang.Object ref = rationale_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
rationale_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REMEDIATION_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object remediation_ = "";
/**
*
*
* * A description of remediation steps if the compliance check fails. ** *
string remediation = 5;
*
* @return The remediation.
*/
@java.lang.Override
public java.lang.String getRemediation() {
java.lang.Object ref = remediation_;
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();
remediation_ = s;
return s;
}
}
/**
*
*
* * A description of remediation steps if the compliance check fails. ** *
string remediation = 5;
*
* @return The bytes for remediation.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRemediationBytes() {
java.lang.Object ref = remediation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
remediation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CIS_BENCHMARK_FIELD_NUMBER = 6;
/**
* .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;
*
* @return Whether the cisBenchmark field is set.
*/
@java.lang.Override
public boolean hasCisBenchmark() {
return complianceTypeCase_ == 6;
}
/**
* .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;
*
* @return The cisBenchmark.
*/
@java.lang.Override
public io.grafeas.v1.ComplianceNote.CisBenchmark getCisBenchmark() {
if (complianceTypeCase_ == 6) {
return (io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_;
}
return io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance();
}
/** .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6; */
@java.lang.Override
public io.grafeas.v1.ComplianceNote.CisBenchmarkOrBuilder getCisBenchmarkOrBuilder() {
if (complianceTypeCase_ == 6) {
return (io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_;
}
return io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance();
}
public static final int SCAN_INSTRUCTIONS_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString scanInstructions_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*
* * Serialized scan instructions with a predefined format. ** *
bytes scan_instructions = 7;
*
* @return The scanInstructions.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScanInstructions() {
return scanInstructions_;
}
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(title_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
for (int i = 0; i < version_.size(); i++) {
output.writeMessage(3, version_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rationale_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rationale_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remediation_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, remediation_);
}
if (complianceTypeCase_ == 6) {
output.writeMessage(6, (io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_);
}
if (!scanInstructions_.isEmpty()) {
output.writeBytes(7, scanInstructions_);
}
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(title_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
for (int i = 0; i < version_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, version_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rationale_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rationale_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remediation_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, remediation_);
}
if (complianceTypeCase_ == 6) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
6, (io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_);
}
if (!scanInstructions_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, scanInstructions_);
}
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.ComplianceNote)) {
return super.equals(obj);
}
io.grafeas.v1.ComplianceNote other = (io.grafeas.v1.ComplianceNote) obj;
if (!getTitle().equals(other.getTitle())) return false;
if (!getDescription().equals(other.getDescription())) return false;
if (!getVersionList().equals(other.getVersionList())) return false;
if (!getRationale().equals(other.getRationale())) return false;
if (!getRemediation().equals(other.getRemediation())) return false;
if (!getScanInstructions().equals(other.getScanInstructions())) return false;
if (!getComplianceTypeCase().equals(other.getComplianceTypeCase())) return false;
switch (complianceTypeCase_) {
case 6:
if (!getCisBenchmark().equals(other.getCisBenchmark())) return false;
break;
case 0:
default:
}
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) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (getVersionCount() > 0) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersionList().hashCode();
}
hash = (37 * hash) + RATIONALE_FIELD_NUMBER;
hash = (53 * hash) + getRationale().hashCode();
hash = (37 * hash) + REMEDIATION_FIELD_NUMBER;
hash = (53 * hash) + getRemediation().hashCode();
hash = (37 * hash) + SCAN_INSTRUCTIONS_FIELD_NUMBER;
hash = (53 * hash) + getScanInstructions().hashCode();
switch (complianceTypeCase_) {
case 6:
hash = (37 * hash) + CIS_BENCHMARK_FIELD_NUMBER;
hash = (53 * hash) + getCisBenchmark().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grafeas.v1.ComplianceNote parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.ComplianceNote 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.ComplianceNote parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.ComplianceNote 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.ComplianceNote parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grafeas.v1.ComplianceNote parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grafeas.v1.ComplianceNote parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.ComplianceNote 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.ComplianceNote parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.grafeas.v1.ComplianceNote 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.ComplianceNote parseFrom(com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.grafeas.v1.ComplianceNote 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.ComplianceNote 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;
}
/** Protobuf type {@code grafeas.v1.ComplianceNote} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* The title that identifies this compliance check.
*
*
* string title = 1;
*
* @return The title.
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The title that identifies this compliance check.
*
*
* string title = 1;
*
* @return The bytes for title.
*/
public com.google.protobuf.ByteString getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The title that identifies this compliance check.
*
*
* string title = 1;
*
* @param value The title to set.
* @return This builder for chaining.
*/
public Builder setTitle(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
title_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The title that identifies this compliance check.
*
*
* string title = 1;
*
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The title that identifies this compliance check.
*
*
* string title = 1;
*
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
public Builder setTitleBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
title_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
*
* A description about this compliance check.
*
*
* string description = 2;
*
* @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;
}
}
/**
*
*
*
* A description about this compliance check.
*
*
* string description = 2;
*
* @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;
}
}
/**
*
*
*
* A description about this compliance check.
*
*
* string description = 2;
*
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* A description about this compliance check.
*
*
* string description = 2;
*
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* A description about this compliance check.
*
*
* string description = 2;
*
* @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_ |= 0x00000002;
onChanged();
return this;
}
private java.util.List
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public java.util.List
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public int getVersionCount() {
if (versionBuilder_ == null) {
return version_.size();
} else {
return versionBuilder_.getCount();
}
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public io.grafeas.v1.ComplianceVersion getVersion(int index) {
if (versionBuilder_ == null) {
return version_.get(index);
} else {
return versionBuilder_.getMessage(index);
}
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public Builder setVersion(int index, io.grafeas.v1.ComplianceVersion value) {
if (versionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVersionIsMutable();
version_.set(index, value);
onChanged();
} else {
versionBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public Builder setVersion(int index, io.grafeas.v1.ComplianceVersion.Builder builderForValue) {
if (versionBuilder_ == null) {
ensureVersionIsMutable();
version_.set(index, builderForValue.build());
onChanged();
} else {
versionBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public Builder addVersion(io.grafeas.v1.ComplianceVersion value) {
if (versionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVersionIsMutable();
version_.add(value);
onChanged();
} else {
versionBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public Builder addVersion(int index, io.grafeas.v1.ComplianceVersion value) {
if (versionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVersionIsMutable();
version_.add(index, value);
onChanged();
} else {
versionBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public Builder addVersion(io.grafeas.v1.ComplianceVersion.Builder builderForValue) {
if (versionBuilder_ == null) {
ensureVersionIsMutable();
version_.add(builderForValue.build());
onChanged();
} else {
versionBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public Builder addVersion(int index, io.grafeas.v1.ComplianceVersion.Builder builderForValue) {
if (versionBuilder_ == null) {
ensureVersionIsMutable();
version_.add(index, builderForValue.build());
onChanged();
} else {
versionBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public Builder addAllVersion(
java.lang.Iterable extends io.grafeas.v1.ComplianceVersion> values) {
if (versionBuilder_ == null) {
ensureVersionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, version_);
onChanged();
} else {
versionBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public Builder clearVersion() {
if (versionBuilder_ == null) {
version_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
versionBuilder_.clear();
}
return this;
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public Builder removeVersion(int index) {
if (versionBuilder_ == null) {
ensureVersionIsMutable();
version_.remove(index);
onChanged();
} else {
versionBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public io.grafeas.v1.ComplianceVersion.Builder getVersionBuilder(int index) {
return getVersionFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public io.grafeas.v1.ComplianceVersionOrBuilder getVersionOrBuilder(int index) {
if (versionBuilder_ == null) {
return version_.get(index);
} else {
return versionBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public java.util.List extends io.grafeas.v1.ComplianceVersionOrBuilder>
getVersionOrBuilderList() {
if (versionBuilder_ != null) {
return versionBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(version_);
}
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public io.grafeas.v1.ComplianceVersion.Builder addVersionBuilder() {
return getVersionFieldBuilder()
.addBuilder(io.grafeas.v1.ComplianceVersion.getDefaultInstance());
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public io.grafeas.v1.ComplianceVersion.Builder addVersionBuilder(int index) {
return getVersionFieldBuilder()
.addBuilder(index, io.grafeas.v1.ComplianceVersion.getDefaultInstance());
}
/**
*
*
*
* The OS and config versions the benchmark applies to.
*
*
* repeated .grafeas.v1.ComplianceVersion version = 3;
*/
public java.util.List
* A rationale for the existence of this compliance check.
*
*
* string rationale = 4;
*
* @return The rationale.
*/
public java.lang.String getRationale() {
java.lang.Object ref = rationale_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rationale_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* A rationale for the existence of this compliance check.
*
*
* string rationale = 4;
*
* @return The bytes for rationale.
*/
public com.google.protobuf.ByteString getRationaleBytes() {
java.lang.Object ref = rationale_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
rationale_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* A rationale for the existence of this compliance check.
*
*
* string rationale = 4;
*
* @param value The rationale to set.
* @return This builder for chaining.
*/
public Builder setRationale(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
rationale_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* A rationale for the existence of this compliance check.
*
*
* string rationale = 4;
*
* @return This builder for chaining.
*/
public Builder clearRationale() {
rationale_ = getDefaultInstance().getRationale();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* A rationale for the existence of this compliance check.
*
*
* string rationale = 4;
*
* @param value The bytes for rationale to set.
* @return This builder for chaining.
*/
public Builder setRationaleBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
rationale_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object remediation_ = "";
/**
*
*
*
* A description of remediation steps if the compliance check fails.
*
*
* string remediation = 5;
*
* @return The remediation.
*/
public java.lang.String getRemediation() {
java.lang.Object ref = remediation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
remediation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* A description of remediation steps if the compliance check fails.
*
*
* string remediation = 5;
*
* @return The bytes for remediation.
*/
public com.google.protobuf.ByteString getRemediationBytes() {
java.lang.Object ref = remediation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
remediation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* A description of remediation steps if the compliance check fails.
*
*
* string remediation = 5;
*
* @param value The remediation to set.
* @return This builder for chaining.
*/
public Builder setRemediation(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
remediation_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* A description of remediation steps if the compliance check fails.
*
*
* string remediation = 5;
*
* @return This builder for chaining.
*/
public Builder clearRemediation() {
remediation_ = getDefaultInstance().getRemediation();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* A description of remediation steps if the compliance check fails.
*
*
* string remediation = 5;
*
* @param value The bytes for remediation to set.
* @return This builder for chaining.
*/
public Builder setRemediationBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
remediation_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.ComplianceNote.CisBenchmark,
io.grafeas.v1.ComplianceNote.CisBenchmark.Builder,
io.grafeas.v1.ComplianceNote.CisBenchmarkOrBuilder>
cisBenchmarkBuilder_;
/**
* .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;
*
* @return Whether the cisBenchmark field is set.
*/
@java.lang.Override
public boolean hasCisBenchmark() {
return complianceTypeCase_ == 6;
}
/**
* .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6;
*
* @return The cisBenchmark.
*/
@java.lang.Override
public io.grafeas.v1.ComplianceNote.CisBenchmark getCisBenchmark() {
if (cisBenchmarkBuilder_ == null) {
if (complianceTypeCase_ == 6) {
return (io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_;
}
return io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance();
} else {
if (complianceTypeCase_ == 6) {
return cisBenchmarkBuilder_.getMessage();
}
return io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance();
}
}
/** .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6; */
public Builder setCisBenchmark(io.grafeas.v1.ComplianceNote.CisBenchmark value) {
if (cisBenchmarkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
complianceType_ = value;
onChanged();
} else {
cisBenchmarkBuilder_.setMessage(value);
}
complianceTypeCase_ = 6;
return this;
}
/** .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6; */
public Builder setCisBenchmark(
io.grafeas.v1.ComplianceNote.CisBenchmark.Builder builderForValue) {
if (cisBenchmarkBuilder_ == null) {
complianceType_ = builderForValue.build();
onChanged();
} else {
cisBenchmarkBuilder_.setMessage(builderForValue.build());
}
complianceTypeCase_ = 6;
return this;
}
/** .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6; */
public Builder mergeCisBenchmark(io.grafeas.v1.ComplianceNote.CisBenchmark value) {
if (cisBenchmarkBuilder_ == null) {
if (complianceTypeCase_ == 6
&& complianceType_ != io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance()) {
complianceType_ =
io.grafeas.v1.ComplianceNote.CisBenchmark.newBuilder(
(io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_)
.mergeFrom(value)
.buildPartial();
} else {
complianceType_ = value;
}
onChanged();
} else {
if (complianceTypeCase_ == 6) {
cisBenchmarkBuilder_.mergeFrom(value);
} else {
cisBenchmarkBuilder_.setMessage(value);
}
}
complianceTypeCase_ = 6;
return this;
}
/** .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6; */
public Builder clearCisBenchmark() {
if (cisBenchmarkBuilder_ == null) {
if (complianceTypeCase_ == 6) {
complianceTypeCase_ = 0;
complianceType_ = null;
onChanged();
}
} else {
if (complianceTypeCase_ == 6) {
complianceTypeCase_ = 0;
complianceType_ = null;
}
cisBenchmarkBuilder_.clear();
}
return this;
}
/** .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6; */
public io.grafeas.v1.ComplianceNote.CisBenchmark.Builder getCisBenchmarkBuilder() {
return getCisBenchmarkFieldBuilder().getBuilder();
}
/** .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6; */
@java.lang.Override
public io.grafeas.v1.ComplianceNote.CisBenchmarkOrBuilder getCisBenchmarkOrBuilder() {
if ((complianceTypeCase_ == 6) && (cisBenchmarkBuilder_ != null)) {
return cisBenchmarkBuilder_.getMessageOrBuilder();
} else {
if (complianceTypeCase_ == 6) {
return (io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_;
}
return io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance();
}
}
/** .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6; */
private com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.ComplianceNote.CisBenchmark,
io.grafeas.v1.ComplianceNote.CisBenchmark.Builder,
io.grafeas.v1.ComplianceNote.CisBenchmarkOrBuilder>
getCisBenchmarkFieldBuilder() {
if (cisBenchmarkBuilder_ == null) {
if (!(complianceTypeCase_ == 6)) {
complianceType_ = io.grafeas.v1.ComplianceNote.CisBenchmark.getDefaultInstance();
}
cisBenchmarkBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.grafeas.v1.ComplianceNote.CisBenchmark,
io.grafeas.v1.ComplianceNote.CisBenchmark.Builder,
io.grafeas.v1.ComplianceNote.CisBenchmarkOrBuilder>(
(io.grafeas.v1.ComplianceNote.CisBenchmark) complianceType_,
getParentForChildren(),
isClean());
complianceType_ = null;
}
complianceTypeCase_ = 6;
onChanged();
return cisBenchmarkBuilder_;
}
private com.google.protobuf.ByteString scanInstructions_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*
*
* Serialized scan instructions with a predefined format.
*
*
* bytes scan_instructions = 7;
*
* @return The scanInstructions.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScanInstructions() {
return scanInstructions_;
}
/**
*
*
*
* Serialized scan instructions with a predefined format.
*
*
* bytes scan_instructions = 7;
*
* @param value The scanInstructions to set.
* @return This builder for chaining.
*/
public Builder setScanInstructions(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
scanInstructions_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Serialized scan instructions with a predefined format.
*
*
* bytes scan_instructions = 7;
*
* @return This builder for chaining.
*/
public Builder clearScanInstructions() {
bitField0_ = (bitField0_ & ~0x00000040);
scanInstructions_ = getDefaultInstance().getScanInstructions();
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.ComplianceNote)
}
// @@protoc_insertion_point(class_scope:grafeas.v1.ComplianceNote)
private static final io.grafeas.v1.ComplianceNote DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grafeas.v1.ComplianceNote();
}
public static io.grafeas.v1.ComplianceNote getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser