org.apache.kudu.PbUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pb_util.proto
package org.apache.kudu;
public final class PbUtil {
private PbUtil() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
registry.add(org.apache.kudu.PbUtil.rEDACT);
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface ContainerSupHeaderPBOrBuilder extends
// @@protoc_insertion_point(interface_extends:kudu.ContainerSupHeaderPB)
com.google.protobuf.MessageOrBuilder {
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
* @return Whether the protos field is set.
*/
boolean hasProtos();
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
* @return The protos.
*/
com.google.protobuf.DescriptorProtos.FileDescriptorSet getProtos();
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
*/
com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getProtosOrBuilder();
/**
*
* The PB message type expected in each data entry in this container. Must
* be fully qualified (i.e. kudu.tablet.TabletSuperBlockPB).
*
*
* required string pb_type = 2;
* @return Whether the pbType field is set.
*/
boolean hasPbType();
/**
*
* The PB message type expected in each data entry in this container. Must
* be fully qualified (i.e. kudu.tablet.TabletSuperBlockPB).
*
*
* required string pb_type = 2;
* @return The pbType.
*/
java.lang.String getPbType();
/**
*
* The PB message type expected in each data entry in this container. Must
* be fully qualified (i.e. kudu.tablet.TabletSuperBlockPB).
*
*
* required string pb_type = 2;
* @return The bytes for pbType.
*/
com.google.protobuf.ByteString
getPbTypeBytes();
}
/**
*
* Supplemental protobuf container header, after the main header (see
* pb_util.h for details).
*
*
* Protobuf type {@code kudu.ContainerSupHeaderPB}
*/
public static final class ContainerSupHeaderPB extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:kudu.ContainerSupHeaderPB)
ContainerSupHeaderPBOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerSupHeaderPB.newBuilder() to construct.
private ContainerSupHeaderPB(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContainerSupHeaderPB() {
pbType_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContainerSupHeaderPB();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContainerSupHeaderPB(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.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: {
com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = protos_.toBuilder();
}
protos_ = input.readMessage(com.google.protobuf.DescriptorProtos.FileDescriptorSet.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(protos_);
protos_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
pbType_ = bs;
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 org.apache.kudu.PbUtil.internal_static_kudu_ContainerSupHeaderPB_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.kudu.PbUtil.internal_static_kudu_ContainerSupHeaderPB_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.kudu.PbUtil.ContainerSupHeaderPB.class, org.apache.kudu.PbUtil.ContainerSupHeaderPB.Builder.class);
}
private int bitField0_;
public static final int PROTOS_FIELD_NUMBER = 1;
private com.google.protobuf.DescriptorProtos.FileDescriptorSet protos_;
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
* @return Whether the protos field is set.
*/
@java.lang.Override
public boolean hasProtos() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
* @return The protos.
*/
@java.lang.Override
public com.google.protobuf.DescriptorProtos.FileDescriptorSet getProtos() {
return protos_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : protos_;
}
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
*/
@java.lang.Override
public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getProtosOrBuilder() {
return protos_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : protos_;
}
public static final int PB_TYPE_FIELD_NUMBER = 2;
private volatile java.lang.Object pbType_;
/**
*
* The PB message type expected in each data entry in this container. Must
* be fully qualified (i.e. kudu.tablet.TabletSuperBlockPB).
*
*
* required string pb_type = 2;
* @return Whether the pbType field is set.
*/
@java.lang.Override
public boolean hasPbType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The PB message type expected in each data entry in this container. Must
* be fully qualified (i.e. kudu.tablet.TabletSuperBlockPB).
*
*
* required string pb_type = 2;
* @return The pbType.
*/
@java.lang.Override
public java.lang.String getPbType() {
java.lang.Object ref = pbType_;
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();
if (bs.isValidUtf8()) {
pbType_ = s;
}
return s;
}
}
/**
*
* The PB message type expected in each data entry in this container. Must
* be fully qualified (i.e. kudu.tablet.TabletSuperBlockPB).
*
*
* required string pb_type = 2;
* @return The bytes for pbType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPbTypeBytes() {
java.lang.Object ref = pbType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pbType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasProtos()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasPbType()) {
memoizedIsInitialized = 0;
return false;
}
if (!getProtos().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getProtos());
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pbType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getProtos());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pbType_);
}
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 org.apache.kudu.PbUtil.ContainerSupHeaderPB)) {
return super.equals(obj);
}
org.apache.kudu.PbUtil.ContainerSupHeaderPB other = (org.apache.kudu.PbUtil.ContainerSupHeaderPB) obj;
if (hasProtos() != other.hasProtos()) return false;
if (hasProtos()) {
if (!getProtos()
.equals(other.getProtos())) return false;
}
if (hasPbType() != other.hasPbType()) return false;
if (hasPbType()) {
if (!getPbType()
.equals(other.getPbType())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasProtos()) {
hash = (37 * hash) + PROTOS_FIELD_NUMBER;
hash = (53 * hash) + getProtos().hashCode();
}
if (hasPbType()) {
hash = (37 * hash) + PB_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getPbType().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.kudu.PbUtil.ContainerSupHeaderPB parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.kudu.PbUtil.ContainerSupHeaderPB parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.kudu.PbUtil.ContainerSupHeaderPB parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.kudu.PbUtil.ContainerSupHeaderPB parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.kudu.PbUtil.ContainerSupHeaderPB parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.kudu.PbUtil.ContainerSupHeaderPB parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.kudu.PbUtil.ContainerSupHeaderPB parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.kudu.PbUtil.ContainerSupHeaderPB 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 org.apache.kudu.PbUtil.ContainerSupHeaderPB parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.kudu.PbUtil.ContainerSupHeaderPB 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 org.apache.kudu.PbUtil.ContainerSupHeaderPB parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.kudu.PbUtil.ContainerSupHeaderPB 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(org.apache.kudu.PbUtil.ContainerSupHeaderPB 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;
}
/**
*
* Supplemental protobuf container header, after the main header (see
* pb_util.h for details).
*
*
* Protobuf type {@code kudu.ContainerSupHeaderPB}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:kudu.ContainerSupHeaderPB)
org.apache.kudu.PbUtil.ContainerSupHeaderPBOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.kudu.PbUtil.internal_static_kudu_ContainerSupHeaderPB_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.kudu.PbUtil.internal_static_kudu_ContainerSupHeaderPB_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.kudu.PbUtil.ContainerSupHeaderPB.class, org.apache.kudu.PbUtil.ContainerSupHeaderPB.Builder.class);
}
// Construct using org.apache.kudu.PbUtil.ContainerSupHeaderPB.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getProtosFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (protosBuilder_ == null) {
protos_ = null;
} else {
protosBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
pbType_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.kudu.PbUtil.internal_static_kudu_ContainerSupHeaderPB_descriptor;
}
@java.lang.Override
public org.apache.kudu.PbUtil.ContainerSupHeaderPB getDefaultInstanceForType() {
return org.apache.kudu.PbUtil.ContainerSupHeaderPB.getDefaultInstance();
}
@java.lang.Override
public org.apache.kudu.PbUtil.ContainerSupHeaderPB build() {
org.apache.kudu.PbUtil.ContainerSupHeaderPB result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.kudu.PbUtil.ContainerSupHeaderPB buildPartial() {
org.apache.kudu.PbUtil.ContainerSupHeaderPB result = new org.apache.kudu.PbUtil.ContainerSupHeaderPB(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (protosBuilder_ == null) {
result.protos_ = protos_;
} else {
result.protos_ = protosBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.pbType_ = pbType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.kudu.PbUtil.ContainerSupHeaderPB) {
return mergeFrom((org.apache.kudu.PbUtil.ContainerSupHeaderPB)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.kudu.PbUtil.ContainerSupHeaderPB other) {
if (other == org.apache.kudu.PbUtil.ContainerSupHeaderPB.getDefaultInstance()) return this;
if (other.hasProtos()) {
mergeProtos(other.getProtos());
}
if (other.hasPbType()) {
bitField0_ |= 0x00000002;
pbType_ = other.pbType_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasProtos()) {
return false;
}
if (!hasPbType()) {
return false;
}
if (!getProtos().isInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.kudu.PbUtil.ContainerSupHeaderPB parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.kudu.PbUtil.ContainerSupHeaderPB) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.DescriptorProtos.FileDescriptorSet protos_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> protosBuilder_;
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
* @return Whether the protos field is set.
*/
public boolean hasProtos() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
* @return The protos.
*/
public com.google.protobuf.DescriptorProtos.FileDescriptorSet getProtos() {
if (protosBuilder_ == null) {
return protos_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : protos_;
} else {
return protosBuilder_.getMessage();
}
}
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
*/
public Builder setProtos(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {
if (protosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
protos_ = value;
onChanged();
} else {
protosBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
*/
public Builder setProtos(
com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) {
if (protosBuilder_ == null) {
protos_ = builderForValue.build();
onChanged();
} else {
protosBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
*/
public Builder mergeProtos(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {
if (protosBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
protos_ != null &&
protos_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) {
protos_ =
com.google.protobuf.DescriptorProtos.FileDescriptorSet.newBuilder(protos_).mergeFrom(value).buildPartial();
} else {
protos_ = value;
}
onChanged();
} else {
protosBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
*/
public Builder clearProtos() {
if (protosBuilder_ == null) {
protos_ = null;
onChanged();
} else {
protosBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
*/
public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getProtosBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getProtosFieldBuilder().getBuilder();
}
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
*/
public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getProtosOrBuilder() {
if (protosBuilder_ != null) {
return protosBuilder_.getMessageOrBuilder();
} else {
return protos_ == null ?
com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : protos_;
}
}
/**
*
* The protobuf schema for the messages expected in this container.
* This schema is complete, that is, it includes all of its dependencies
* (i.e. other schemas defined in .proto files imported by this schema's
* .proto file).
*
*
* required .google.protobuf.FileDescriptorSet protos = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>
getProtosFieldBuilder() {
if (protosBuilder_ == null) {
protosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>(
getProtos(),
getParentForChildren(),
isClean());
protos_ = null;
}
return protosBuilder_;
}
private java.lang.Object pbType_ = "";
/**
*
* The PB message type expected in each data entry in this container. Must
* be fully qualified (i.e. kudu.tablet.TabletSuperBlockPB).
*
*
* required string pb_type = 2;
* @return Whether the pbType field is set.
*/
public boolean hasPbType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The PB message type expected in each data entry in this container. Must
* be fully qualified (i.e. kudu.tablet.TabletSuperBlockPB).
*
*
* required string pb_type = 2;
* @return The pbType.
*/
public java.lang.String getPbType() {
java.lang.Object ref = pbType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
pbType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The PB message type expected in each data entry in this container. Must
* be fully qualified (i.e. kudu.tablet.TabletSuperBlockPB).
*
*
* required string pb_type = 2;
* @return The bytes for pbType.
*/
public com.google.protobuf.ByteString
getPbTypeBytes() {
java.lang.Object ref = pbType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pbType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The PB message type expected in each data entry in this container. Must
* be fully qualified (i.e. kudu.tablet.TabletSuperBlockPB).
*
*
* required string pb_type = 2;
* @param value The pbType to set.
* @return This builder for chaining.
*/
public Builder setPbType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
pbType_ = value;
onChanged();
return this;
}
/**
*
* The PB message type expected in each data entry in this container. Must
* be fully qualified (i.e. kudu.tablet.TabletSuperBlockPB).
*
*
* required string pb_type = 2;
* @return This builder for chaining.
*/
public Builder clearPbType() {
bitField0_ = (bitField0_ & ~0x00000002);
pbType_ = getDefaultInstance().getPbType();
onChanged();
return this;
}
/**
*
* The PB message type expected in each data entry in this container. Must
* be fully qualified (i.e. kudu.tablet.TabletSuperBlockPB).
*
*
* required string pb_type = 2;
* @param value The bytes for pbType to set.
* @return This builder for chaining.
*/
public Builder setPbTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
pbType_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:kudu.ContainerSupHeaderPB)
}
// @@protoc_insertion_point(class_scope:kudu.ContainerSupHeaderPB)
private static final org.apache.kudu.PbUtil.ContainerSupHeaderPB DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.kudu.PbUtil.ContainerSupHeaderPB();
}
public static org.apache.kudu.PbUtil.ContainerSupHeaderPB getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ContainerSupHeaderPB parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContainerSupHeaderPB(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.kudu.PbUtil.ContainerSupHeaderPB getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int REDACT_FIELD_NUMBER = 50001;
/**
* extend .google.protobuf.FieldOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.FieldOptions,
java.lang.Boolean> rEDACT = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
java.lang.Boolean.class,
null);
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_kudu_ContainerSupHeaderPB_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_kudu_ContainerSupHeaderPB_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\rpb_util.proto\022\004kudu\032 google/protobuf/d" +
"escriptor.proto\"[\n\024ContainerSupHeaderPB\022" +
"2\n\006protos\030\001 \002(\0132\".google.protobuf.FileDe" +
"scriptorSet\022\017\n\007pb_type\030\002 \002(\t:6\n\006REDACT\022\035" +
".google.protobuf.FieldOptions\030\321\206\003 \001(\010:\005f" +
"alseB\021\n\017org.apache.kudu"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.DescriptorProtos.getDescriptor(),
});
internal_static_kudu_ContainerSupHeaderPB_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_kudu_ContainerSupHeaderPB_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_kudu_ContainerSupHeaderPB_descriptor,
new java.lang.String[] { "Protos", "PbType", });
rEDACT.internalInit(descriptor.getExtensions().get(0));
com.google.protobuf.DescriptorProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy