nl.topicus.jdbc.shaded.com.google.api.LogDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spanner-jdbc Show documentation
Show all versions of spanner-jdbc Show documentation
JDBC Driver for Google Cloud Spanner
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/log.proto
package nl.topicus.jdbc.shaded.com.google.api;
/**
*
* A description of a log type. Example in YAML format:
* - name: library.googleapis.com/activity_history
* description: The history of borrowing and returning library items.
* display_name: Activity
* labels:
* - key: /customer_id
* description: Identifier of a library customer
*
*
* Protobuf type {@code google.api.LogDescriptor}
*/
public final class LogDescriptor extends
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.api.LogDescriptor)
LogDescriptorOrBuilder {
private static final long serialVersionUID = 0L;
// Use LogDescriptor.newBuilder() to construct.
private LogDescriptor(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LogDescriptor() {
name_ = "";
labels_ = java.util.Collections.emptyList();
description_ = "";
displayName_ = "";
}
@java.lang.Override
public final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LogDescriptor(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
labels_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
labels_.add(
input.readMessage(nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor.parser(), extensionRegistry));
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
displayName_ = s;
break;
}
}
}
} catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
labels_ = java.util.Collections.unmodifiableList(labels_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return nl.topicus.jdbc.shaded.com.google.api.LogProto.internal_static_google_api_LogDescriptor_descriptor;
}
protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return nl.topicus.jdbc.shaded.com.google.api.LogProto.internal_static_google_api_LogDescriptor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
nl.topicus.jdbc.shaded.com.google.api.LogDescriptor.class, nl.topicus.jdbc.shaded.com.google.api.LogDescriptor.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* The name of the log. It must be less than 512 characters long and can
* include the following characters: upper- and lower-case alphanumeric
* characters [A-Za-z0-9], and punctuation characters including
* slash, underscore, hyphen, period [/_-.].
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs =
(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* The name of the log. It must be less than 512 characters long and can
* include the following characters: upper- and lower-case alphanumeric
* characters [A-Za-z0-9], and punctuation characters including
* slash, underscore, hyphen, period [/_-.].
*
*
* string name = 1;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b =
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int LABELS_FIELD_NUMBER = 2;
private java.util.List labels_;
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public java.util.List getLabelsList() {
return labels_;
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public java.util.List extends nl.topicus.jdbc.shaded.com.google.api.LabelDescriptorOrBuilder>
getLabelsOrBuilderList() {
return labels_;
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public int getLabelsCount() {
return labels_.size();
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor getLabels(int index) {
return labels_.get(index);
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public nl.topicus.jdbc.shaded.com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
int index) {
return labels_.get(index);
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
*
* A human-readable description of this log. This information appears in
* the documentation and can contain details.
*
*
* string description = 3;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs =
(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* A human-readable description of this log. This information appears in
* the documentation and can contain details.
*
*
* string description = 3;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b =
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object displayName_;
/**
*
* The human-readable name for this log. This information appears on
* the user interface and should be concise.
*
*
* string display_name = 4;
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs =
(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
}
}
/**
*
* The human-readable name for this log. This information appears on
* the user interface and should be concise.
*
*
* string display_name = 4;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b =
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
for (int i = 0; i < labels_.size(); i++) {
output.writeMessage(2, labels_.get(i));
}
if (!getDescriptionBytes().isEmpty()) {
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
if (!getDisplayNameBytes().isEmpty()) {
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
for (int i = 0; i < labels_.size(); i++) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(2, labels_.get(i));
}
if (!getDescriptionBytes().isEmpty()) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
if (!getDisplayNameBytes().isEmpty()) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof nl.topicus.jdbc.shaded.com.google.api.LogDescriptor)) {
return super.equals(obj);
}
nl.topicus.jdbc.shaded.com.google.api.LogDescriptor other = (nl.topicus.jdbc.shaded.com.google.api.LogDescriptor) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && getLabelsList()
.equals(other.getLabelsList());
result = result && getDescription()
.equals(other.getDescription());
result = result && getDisplayName()
.equals(other.getDisplayName());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getLabelsCount() > 0) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + getLabelsList().hashCode();
}
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static nl.topicus.jdbc.shaded.com.google.api.LogDescriptor parseFrom(
java.nio.ByteBuffer data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.api.LogDescriptor parseFrom(
java.nio.ByteBuffer data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.api.LogDescriptor parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.api.LogDescriptor parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.api.LogDescriptor parseFrom(byte[] data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.api.LogDescriptor parseFrom(
byte[] data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.api.LogDescriptor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.api.LogDescriptor parseFrom(
java.io.InputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.api.LogDescriptor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.api.LogDescriptor parseDelimitedFrom(
java.io.InputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.api.LogDescriptor parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.api.LogDescriptor parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(nl.topicus.jdbc.shaded.com.google.api.LogDescriptor prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A description of a log type. Example in YAML format:
* - name: library.googleapis.com/activity_history
* description: The history of borrowing and returning library items.
* display_name: Activity
* labels:
* - key: /customer_id
* description: Identifier of a library customer
*
*
* Protobuf type {@code google.api.LogDescriptor}
*/
public static final class Builder extends
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.api.LogDescriptor)
nl.topicus.jdbc.shaded.com.google.api.LogDescriptorOrBuilder {
public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return nl.topicus.jdbc.shaded.com.google.api.LogProto.internal_static_google_api_LogDescriptor_descriptor;
}
protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return nl.topicus.jdbc.shaded.com.google.api.LogProto.internal_static_google_api_LogDescriptor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
nl.topicus.jdbc.shaded.com.google.api.LogDescriptor.class, nl.topicus.jdbc.shaded.com.google.api.LogDescriptor.Builder.class);
}
// Construct using nl.topicus.jdbc.shaded.com.google.api.LogDescriptor.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLabelsFieldBuilder();
}
}
public Builder clear() {
super.clear();
name_ = "";
if (labelsBuilder_ == null) {
labels_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
labelsBuilder_.clear();
}
description_ = "";
displayName_ = "";
return this;
}
public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return nl.topicus.jdbc.shaded.com.google.api.LogProto.internal_static_google_api_LogDescriptor_descriptor;
}
public nl.topicus.jdbc.shaded.com.google.api.LogDescriptor getDefaultInstanceForType() {
return nl.topicus.jdbc.shaded.com.google.api.LogDescriptor.getDefaultInstance();
}
public nl.topicus.jdbc.shaded.com.google.api.LogDescriptor build() {
nl.topicus.jdbc.shaded.com.google.api.LogDescriptor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public nl.topicus.jdbc.shaded.com.google.api.LogDescriptor buildPartial() {
nl.topicus.jdbc.shaded.com.google.api.LogDescriptor result = new nl.topicus.jdbc.shaded.com.google.api.LogDescriptor(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
if (labelsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
labels_ = java.util.Collections.unmodifiableList(labels_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.labels_ = labels_;
} else {
result.labels_ = labelsBuilder_.build();
}
result.description_ = description_;
result.displayName_ = displayName_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.protobuf.Message other) {
if (other instanceof nl.topicus.jdbc.shaded.com.google.api.LogDescriptor) {
return mergeFrom((nl.topicus.jdbc.shaded.com.google.api.LogDescriptor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.api.LogDescriptor other) {
if (other == nl.topicus.jdbc.shaded.com.google.api.LogDescriptor.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (labelsBuilder_ == null) {
if (!other.labels_.isEmpty()) {
if (labels_.isEmpty()) {
labels_ = other.labels_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureLabelsIsMutable();
labels_.addAll(other.labels_);
}
onChanged();
}
} else {
if (!other.labels_.isEmpty()) {
if (labelsBuilder_.isEmpty()) {
labelsBuilder_.dispose();
labelsBuilder_ = null;
labels_ = other.labels_;
bitField0_ = (bitField0_ & ~0x00000002);
labelsBuilder_ =
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLabelsFieldBuilder() : null;
} else {
labelsBuilder_.addAllMessages(other.labels_);
}
}
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
nl.topicus.jdbc.shaded.com.google.api.LogDescriptor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (nl.topicus.jdbc.shaded.com.google.api.LogDescriptor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* The name of the log. It must be less than 512 characters long and can
* include the following characters: upper- and lower-case alphanumeric
* characters [A-Za-z0-9], and punctuation characters including
* slash, underscore, hyphen, period [/_-.].
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs =
(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the log. It must be less than 512 characters long and can
* include the following characters: upper- and lower-case alphanumeric
* characters [A-Za-z0-9], and punctuation characters including
* slash, underscore, hyphen, period [/_-.].
*
*
* string name = 1;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b =
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the log. It must be less than 512 characters long and can
* include the following characters: upper- and lower-case alphanumeric
* characters [A-Za-z0-9], and punctuation characters including
* slash, underscore, hyphen, period [/_-.].
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* The name of the log. It must be less than 512 characters long and can
* include the following characters: upper- and lower-case alphanumeric
* characters [A-Za-z0-9], and punctuation characters including
* slash, underscore, hyphen, period [/_-.].
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* The name of the log. It must be less than 512 characters long and can
* include the following characters: upper- and lower-case alphanumeric
* characters [A-Za-z0-9], and punctuation characters including
* slash, underscore, hyphen, period [/_-.].
*
*
* string name = 1;
*/
public Builder setNameBytes(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.List labels_ =
java.util.Collections.emptyList();
private void ensureLabelsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
labels_ = new java.util.ArrayList(labels_);
bitField0_ |= 0x00000002;
}
}
private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor, nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor.Builder, nl.topicus.jdbc.shaded.com.google.api.LabelDescriptorOrBuilder> labelsBuilder_;
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public java.util.List getLabelsList() {
if (labelsBuilder_ == null) {
return java.util.Collections.unmodifiableList(labels_);
} else {
return labelsBuilder_.getMessageList();
}
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public int getLabelsCount() {
if (labelsBuilder_ == null) {
return labels_.size();
} else {
return labelsBuilder_.getCount();
}
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor getLabels(int index) {
if (labelsBuilder_ == null) {
return labels_.get(index);
} else {
return labelsBuilder_.getMessage(index);
}
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public Builder setLabels(
int index, nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor value) {
if (labelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelsIsMutable();
labels_.set(index, value);
onChanged();
} else {
labelsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public Builder setLabels(
int index, nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor.Builder builderForValue) {
if (labelsBuilder_ == null) {
ensureLabelsIsMutable();
labels_.set(index, builderForValue.build());
onChanged();
} else {
labelsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public Builder addLabels(nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor value) {
if (labelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelsIsMutable();
labels_.add(value);
onChanged();
} else {
labelsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public Builder addLabels(
int index, nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor value) {
if (labelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelsIsMutable();
labels_.add(index, value);
onChanged();
} else {
labelsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public Builder addLabels(
nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor.Builder builderForValue) {
if (labelsBuilder_ == null) {
ensureLabelsIsMutable();
labels_.add(builderForValue.build());
onChanged();
} else {
labelsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public Builder addLabels(
int index, nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor.Builder builderForValue) {
if (labelsBuilder_ == null) {
ensureLabelsIsMutable();
labels_.add(index, builderForValue.build());
onChanged();
} else {
labelsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public Builder addAllLabels(
java.lang.Iterable extends nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor> values) {
if (labelsBuilder_ == null) {
ensureLabelsIsMutable();
nl.topicus.jdbc.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, labels_);
onChanged();
} else {
labelsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public Builder clearLabels() {
if (labelsBuilder_ == null) {
labels_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
labelsBuilder_.clear();
}
return this;
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public Builder removeLabels(int index) {
if (labelsBuilder_ == null) {
ensureLabelsIsMutable();
labels_.remove(index);
onChanged();
} else {
labelsBuilder_.remove(index);
}
return this;
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor.Builder getLabelsBuilder(
int index) {
return getLabelsFieldBuilder().getBuilder(index);
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public nl.topicus.jdbc.shaded.com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
int index) {
if (labelsBuilder_ == null) {
return labels_.get(index); } else {
return labelsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public java.util.List extends nl.topicus.jdbc.shaded.com.google.api.LabelDescriptorOrBuilder>
getLabelsOrBuilderList() {
if (labelsBuilder_ != null) {
return labelsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(labels_);
}
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor.Builder addLabelsBuilder() {
return getLabelsFieldBuilder().addBuilder(
nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor.getDefaultInstance());
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor.Builder addLabelsBuilder(
int index) {
return getLabelsFieldBuilder().addBuilder(
index, nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor.getDefaultInstance());
}
/**
*
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are
* considered invalid.
*
*
* repeated .google.api.LabelDescriptor labels = 2;
*/
public java.util.List
getLabelsBuilderList() {
return getLabelsFieldBuilder().getBuilderList();
}
private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor, nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor.Builder, nl.topicus.jdbc.shaded.com.google.api.LabelDescriptorOrBuilder>
getLabelsFieldBuilder() {
if (labelsBuilder_ == null) {
labelsBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor, nl.topicus.jdbc.shaded.com.google.api.LabelDescriptor.Builder, nl.topicus.jdbc.shaded.com.google.api.LabelDescriptorOrBuilder>(
labels_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
labels_ = null;
}
return labelsBuilder_;
}
private java.lang.Object description_ = "";
/**
*
* A human-readable description of this log. This information appears in
* the documentation and can contain details.
*
*
* string description = 3;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs =
(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A human-readable description of this log. This information appears in
* the documentation and can contain details.
*
*
* string description = 3;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b =
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* A human-readable description of this log. This information appears in
* the documentation and can contain details.
*
*
* string description = 3;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* A human-readable description of this log. This information appears in
* the documentation and can contain details.
*
*
* string description = 3;
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* A human-readable description of this log. This information appears in
* the documentation and can contain details.
*
*
* string description = 3;
*/
public Builder setDescriptionBytes(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private java.lang.Object displayName_ = "";
/**
*
* The human-readable name for this log. This information appears on
* the user interface and should be concise.
*
*
* string display_name = 4;
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs =
(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The human-readable name for this log. This information appears on
* the user interface and should be concise.
*
*
* string display_name = 4;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b =
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* The human-readable name for this log. This information appears on
* the user interface and should be concise.
*
*
* string display_name = 4;
*/
public Builder setDisplayName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
displayName_ = value;
onChanged();
return this;
}
/**
*
* The human-readable name for this log. This information appears on
* the user interface and should be concise.
*
*
* string display_name = 4;
*/
public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
onChanged();
return this;
}
/**
*
* The human-readable name for this log. This information appears on
* the user interface and should be concise.
*
*
* string display_name = 4;
*/
public Builder setDisplayNameBytes(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.api.LogDescriptor)
}
// @@protoc_insertion_point(class_scope:google.api.LogDescriptor)
private static final nl.topicus.jdbc.shaded.com.google.api.LogDescriptor DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.api.LogDescriptor();
}
public static nl.topicus.jdbc.shaded.com.google.api.LogDescriptor getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final nl.topicus.jdbc.shaded.com.google.protobuf.Parser
PARSER = new nl.topicus.jdbc.shaded.com.google.protobuf.AbstractParser() {
public LogDescriptor parsePartialFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new LogDescriptor(input, extensionRegistry);
}
};
public static nl.topicus.jdbc.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public nl.topicus.jdbc.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public nl.topicus.jdbc.shaded.com.google.api.LogDescriptor getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}