com.google.rpc.Help Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lightstep-opentelemetry-auto-exporter Show documentation
Show all versions of lightstep-opentelemetry-auto-exporter Show documentation
Lightstep OpenTelemetry Auto Exporter
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/rpc/error_details.proto
package com.google.rpc;
/**
*
* Provides links to documentation or for performing an out of band action.
* For example, if a quota check failed with an error indicating the calling
* project hasn't enabled the accessed service, this can contain a URL pointing
* directly to the right place in the developer console to flip the bit.
*
*
* Protobuf type {@code google.rpc.Help}
*/
public final class Help extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.rpc.Help)
HelpOrBuilder {
private static final long serialVersionUID = 0L;
// Use Help.newBuilder() to construct.
private Help(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Help() {
links_ = java.util.Collections.emptyList();
}
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Help(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
links_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
links_.add(
input.readMessage(Link.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
links_ = java.util.Collections.unmodifiableList(links_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_descriptor;
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Help.class, Builder.class);
}
public interface LinkOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.rpc.Help.Link)
com.google.protobuf.MessageOrBuilder {
/**
*
* Describes what the link offers.
*
*
* string description = 1;
*/
String getDescription();
/**
*
* Describes what the link offers.
*
*
* string description = 1;
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* The URL of the link.
*
*
* string url = 2;
*/
String getUrl();
/**
*
* The URL of the link.
*
*
* string url = 2;
*/
com.google.protobuf.ByteString
getUrlBytes();
}
/**
*
* Describes a URL link.
*
*
* Protobuf type {@code google.rpc.Help.Link}
*/
public static final class Link extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.rpc.Help.Link)
LinkOrBuilder {
private static final long serialVersionUID = 0L;
// Use Link.newBuilder() to construct.
private Link(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Link() {
description_ = "";
url_ = "";
}
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Link(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 18: {
String s = input.readStringRequireUtf8();
url_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_Link_descriptor;
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_Link_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Link.class, Builder.class);
}
public static final int DESCRIPTION_FIELD_NUMBER = 1;
private volatile Object description_;
/**
*
* Describes what the link offers.
*
*
* string description = 1;
*/
public String getDescription() {
Object ref = description_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* Describes what the link offers.
*
*
* string description = 1;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int URL_FIELD_NUMBER = 2;
private volatile Object url_;
/**
*
* The URL of the link.
*
*
* string url = 2;
*/
public String getUrl() {
Object ref = url_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
url_ = s;
return s;
}
}
/**
*
* The URL of the link.
*
*
* string url = 2;
*/
public com.google.protobuf.ByteString
getUrlBytes() {
Object ref = url_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_);
}
if (!getUrlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_);
}
unknownFields.writeTo(output);
}
@Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_);
}
if (!getUrlBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@Override
public boolean equals(final Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof Link)) {
return super.equals(obj);
}
Link other = (Link) obj;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!getUrl()
.equals(other.getUrl())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + URL_FIELD_NUMBER;
hash = (53 * hash) + getUrl().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static Link parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Link parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Link parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Link parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Link parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Link parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Link parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static Link 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 Link parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static Link 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 Link parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static Link parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(Link prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Describes a URL link.
*
*
* Protobuf type {@code google.rpc.Help.Link}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.rpc.Help.Link)
LinkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_Link_descriptor;
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_Link_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Link.class, Builder.class);
}
// Construct using com.google.rpc.Help.Link.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@Override
public Builder clear() {
super.clear();
description_ = "";
url_ = "";
return this;
}
@Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_Link_descriptor;
}
@Override
public Link getDefaultInstanceForType() {
return Link.getDefaultInstance();
}
@Override
public Link build() {
Link result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@Override
public Link buildPartial() {
Link result = new Link(this);
result.description_ = description_;
result.url_ = url_;
onBuilt();
return result;
}
@Override
public Builder clone() {
return super.clone();
}
@Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return super.setField(field, value);
}
@Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return super.setRepeatedField(field, index, value);
}
@Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return super.addRepeatedField(field, value);
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Link) {
return mergeFrom((Link)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(Link other) {
if (other == Link.getDefaultInstance()) return this;
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (!other.getUrl().isEmpty()) {
url_ = other.url_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@Override
public final boolean isInitialized() {
return true;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Link parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (Link) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private Object description_ = "";
/**
*
* Describes what the link offers.
*
*
* string description = 1;
*/
public String getDescription() {
Object ref = description_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* Describes what the link offers.
*
*
* string description = 1;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Describes what the link offers.
*
*
* string description = 1;
*/
public Builder setDescription(
String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Describes what the link offers.
*
*
* string description = 1;
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Describes what the link offers.
*
*
* string description = 1;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private Object url_ = "";
/**
*
* The URL of the link.
*
*
* string url = 2;
*/
public String getUrl() {
Object ref = url_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
url_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* The URL of the link.
*
*
* string url = 2;
*/
public com.google.protobuf.ByteString
getUrlBytes() {
Object ref = url_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The URL of the link.
*
*
* string url = 2;
*/
public Builder setUrl(
String value) {
if (value == null) {
throw new NullPointerException();
}
url_ = value;
onChanged();
return this;
}
/**
*
* The URL of the link.
*
*
* string url = 2;
*/
public Builder clearUrl() {
url_ = getDefaultInstance().getUrl();
onChanged();
return this;
}
/**
*
* The URL of the link.
*
*
* string url = 2;
*/
public Builder setUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
url_ = value;
onChanged();
return this;
}
@Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.rpc.Help.Link)
}
// @@protoc_insertion_point(class_scope:google.rpc.Help.Link)
private static final Link DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new Link();
}
public static Link getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@Override
public Link parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Link(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@Override
public Link getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int LINKS_FIELD_NUMBER = 1;
private java.util.List links_;
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public java.util.List getLinksList() {
return links_;
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public java.util.List extends LinkOrBuilder>
getLinksOrBuilderList() {
return links_;
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public int getLinksCount() {
return links_.size();
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public Link getLinks(int index) {
return links_.get(index);
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public LinkOrBuilder getLinksOrBuilder(
int index) {
return links_.get(index);
}
private byte memoizedIsInitialized = -1;
@Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < links_.size(); i++) {
output.writeMessage(1, links_.get(i));
}
unknownFields.writeTo(output);
}
@Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < links_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, links_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@Override
public boolean equals(final Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof Help)) {
return super.equals(obj);
}
Help other = (Help) obj;
if (!getLinksList()
.equals(other.getLinksList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getLinksCount() > 0) {
hash = (37 * hash) + LINKS_FIELD_NUMBER;
hash = (53 * hash) + getLinksList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static Help parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Help parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Help parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Help parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Help parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Help parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Help parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static Help 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 Help parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static Help 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 Help parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static Help parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(Help prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Provides links to documentation or for performing an out of band action.
* For example, if a quota check failed with an error indicating the calling
* project hasn't enabled the accessed service, this can contain a URL pointing
* directly to the right place in the developer console to flip the bit.
*
*
* Protobuf type {@code google.rpc.Help}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.rpc.Help)
com.google.rpc.HelpOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_descriptor;
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Help.class, Builder.class);
}
// Construct using com.google.rpc.Help.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLinksFieldBuilder();
}
}
@Override
public Builder clear() {
super.clear();
if (linksBuilder_ == null) {
links_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
linksBuilder_.clear();
}
return this;
}
@Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.rpc.ErrorDetailsProto.internal_static_google_rpc_Help_descriptor;
}
@Override
public Help getDefaultInstanceForType() {
return Help.getDefaultInstance();
}
@Override
public Help build() {
Help result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@Override
public Help buildPartial() {
Help result = new Help(this);
int from_bitField0_ = bitField0_;
if (linksBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
links_ = java.util.Collections.unmodifiableList(links_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.links_ = links_;
} else {
result.links_ = linksBuilder_.build();
}
onBuilt();
return result;
}
@Override
public Builder clone() {
return super.clone();
}
@Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return super.setField(field, value);
}
@Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return super.setRepeatedField(field, index, value);
}
@Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return super.addRepeatedField(field, value);
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Help) {
return mergeFrom((Help)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(Help other) {
if (other == Help.getDefaultInstance()) return this;
if (linksBuilder_ == null) {
if (!other.links_.isEmpty()) {
if (links_.isEmpty()) {
links_ = other.links_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLinksIsMutable();
links_.addAll(other.links_);
}
onChanged();
}
} else {
if (!other.links_.isEmpty()) {
if (linksBuilder_.isEmpty()) {
linksBuilder_.dispose();
linksBuilder_ = null;
links_ = other.links_;
bitField0_ = (bitField0_ & ~0x00000001);
linksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLinksFieldBuilder() : null;
} else {
linksBuilder_.addAllMessages(other.links_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@Override
public final boolean isInitialized() {
return true;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Help parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (Help) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List links_ =
java.util.Collections.emptyList();
private void ensureLinksIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
links_ = new java.util.ArrayList(links_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
Link, Link.Builder, LinkOrBuilder> linksBuilder_;
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public java.util.List getLinksList() {
if (linksBuilder_ == null) {
return java.util.Collections.unmodifiableList(links_);
} else {
return linksBuilder_.getMessageList();
}
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public int getLinksCount() {
if (linksBuilder_ == null) {
return links_.size();
} else {
return linksBuilder_.getCount();
}
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public Link getLinks(int index) {
if (linksBuilder_ == null) {
return links_.get(index);
} else {
return linksBuilder_.getMessage(index);
}
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public Builder setLinks(
int index, Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.set(index, value);
onChanged();
} else {
linksBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public Builder setLinks(
int index, Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.set(index, builderForValue.build());
onChanged();
} else {
linksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public Builder addLinks(Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.add(value);
onChanged();
} else {
linksBuilder_.addMessage(value);
}
return this;
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public Builder addLinks(
int index, Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.add(index, value);
onChanged();
} else {
linksBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public Builder addLinks(
Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.add(builderForValue.build());
onChanged();
} else {
linksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public Builder addLinks(
int index, Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.add(index, builderForValue.build());
onChanged();
} else {
linksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public Builder addAllLinks(
Iterable extends Link> values) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, links_);
onChanged();
} else {
linksBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public Builder clearLinks() {
if (linksBuilder_ == null) {
links_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
linksBuilder_.clear();
}
return this;
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public Builder removeLinks(int index) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.remove(index);
onChanged();
} else {
linksBuilder_.remove(index);
}
return this;
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public Link.Builder getLinksBuilder(
int index) {
return getLinksFieldBuilder().getBuilder(index);
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public LinkOrBuilder getLinksOrBuilder(
int index) {
if (linksBuilder_ == null) {
return links_.get(index); } else {
return linksBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public java.util.List extends LinkOrBuilder>
getLinksOrBuilderList() {
if (linksBuilder_ != null) {
return linksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(links_);
}
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public Link.Builder addLinksBuilder() {
return getLinksFieldBuilder().addBuilder(
Link.getDefaultInstance());
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public Link.Builder addLinksBuilder(
int index) {
return getLinksFieldBuilder().addBuilder(
index, Link.getDefaultInstance());
}
/**
*
* URL(s) pointing to additional information on handling the current error.
*
*
* repeated .google.rpc.Help.Link links = 1;
*/
public java.util.List
getLinksBuilderList() {
return getLinksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
Link, Link.Builder, LinkOrBuilder>
getLinksFieldBuilder() {
if (linksBuilder_ == null) {
linksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
Link, Link.Builder, LinkOrBuilder>(
links_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
links_ = null;
}
return linksBuilder_;
}
@Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.rpc.Help)
}
// @@protoc_insertion_point(class_scope:google.rpc.Help)
private static final Help DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new Help();
}
public static Help getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@Override
public Help parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Help(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@Override
public Help getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}