All Downloads are FREE. Search and download functionalities are using the official Maven repository.

alluxio.grpc.table.FieldSchema Maven / Gradle / Ivy

// Generated by the protocol buffer alluxio.shaded.client.com.iler.  DO NOT EDIT!
// source: grpc/table/table_master.proto

package alluxio.grpc.table;

/**
 * 
 * TODO(binfan): remove this proto file.
 * it is no longer used but only to keep old Presto/Trino build with Alluxio 3.x client.
 * 
* * Protobuf type {@code alluxio.grpc.table.FieldSchema} */ public final class FieldSchema extends alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:alluxio.grpc.table.FieldSchema) FieldSchemaOrBuilder { private static final long serialVersionUID = 0L; // Use FieldSchema.newBuilder() to construct. private FieldSchema(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FieldSchema() { name_ = ""; type_ = ""; alluxio.shaded.client.com.ent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FieldSchema(); } @java.lang.Override public final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_FieldSchema_descriptor; } @java.lang.Override protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_FieldSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.grpc.table.FieldSchema.class, alluxio.grpc.table.FieldSchema.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private int id_; /** * optional uint32 id = 1; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 id = 1; * @return The id. */ @java.lang.Override public int getId() { return id_; } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * optional string name = 2; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { alluxio.shaded.client.com.google.protobuf.ByteString bs = (alluxio.shaded.client.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 2; * @return The bytes for name. */ @java.lang.Override public alluxio.shaded.client.com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { alluxio.shaded.client.com.google.protobuf.ByteString b = alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (alluxio.shaded.client.com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object type_; /** * optional string type = 3; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string type = 3; * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { alluxio.shaded.client.com.google.protobuf.ByteString bs = (alluxio.shaded.client.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * optional string type = 3; * @return The bytes for type. */ @java.lang.Override public alluxio.shaded.client.com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { alluxio.shaded.client.com.google.protobuf.ByteString b = alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (alluxio.shaded.client.com.google.protobuf.ByteString) ref; } } public static final int COMMENT_FIELD_NUMBER = 4; private volatile java.lang.Object alluxio.shaded.client.com.ent_; /** * optional string alluxio.shaded.client.com.ent = 4; * @return Whether the alluxio.shaded.client.com.ent field is set. */ @java.lang.Override public boolean hasComment() { return ((bitField0_ & 0x00000008) != 0); } /** * optional string alluxio.shaded.client.com.ent = 4; * @return The alluxio.shaded.client.com.ent. */ @java.lang.Override public java.lang.String getComment() { java.lang.Object ref = alluxio.shaded.client.com.ent_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { alluxio.shaded.client.com.google.protobuf.ByteString bs = (alluxio.shaded.client.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { alluxio.shaded.client.com.ent_ = s; } return s; } } /** * optional string alluxio.shaded.client.com.ent = 4; * @return The bytes for alluxio.shaded.client.com.ent. */ @java.lang.Override public alluxio.shaded.client.com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = alluxio.shaded.client.com.ent_; if (ref instanceof java.lang.String) { alluxio.shaded.client.com.google.protobuf.ByteString b = alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alluxio.shaded.client.com.ent_ = b; return b; } else { return (alluxio.shaded.client.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; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(alluxio.shaded.client.com.google.protobuf.CodedOutputStream output) throws java.alluxio.shaded.client.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, id_); } if (((bitField0_ & 0x00000002) != 0)) { alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) != 0)) { alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); } if (((bitField0_ & 0x00000008) != 0)) { alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 4, alluxio.shaded.client.com.ent_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteUInt32Size(1, id_); } if (((bitField0_ & 0x00000002) != 0)) { size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(2, name_); } if (((bitField0_ & 0x00000004) != 0)) { size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(3, type_); } if (((bitField0_ & 0x00000008) != 0)) { size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(4, alluxio.shaded.client.com.ent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof alluxio.grpc.table.FieldSchema)) { return super.equals(obj); } alluxio.grpc.table.FieldSchema other = (alluxio.grpc.table.FieldSchema) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (getId() != other.getId()) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (hasComment() != other.hasComment()) return false; if (hasComment()) { if (!getComment() .equals(other.getComment())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasComment()) { hash = (37 * hash) + COMMENT_FIELD_NUMBER; hash = (53 * hash) + getComment().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static alluxio.grpc.table.FieldSchema parseFrom( java.nio.ByteBuffer data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.table.FieldSchema parseFrom( java.nio.ByteBuffer data, alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.grpc.table.FieldSchema parseFrom( alluxio.shaded.client.com.google.protobuf.ByteString data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.table.FieldSchema parseFrom( alluxio.shaded.client.com.google.protobuf.ByteString data, alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.grpc.table.FieldSchema parseFrom(byte[] data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.table.FieldSchema parseFrom( byte[] data, alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.grpc.table.FieldSchema parseFrom(java.alluxio.shaded.client.io.InputStream input) throws java.alluxio.shaded.client.io.IOException { return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static alluxio.grpc.table.FieldSchema parseFrom( java.alluxio.shaded.client.io.InputStream input, alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.alluxio.shaded.client.io.IOException { return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static alluxio.grpc.table.FieldSchema parseDelimitedFrom(java.alluxio.shaded.client.io.InputStream input) throws java.alluxio.shaded.client.io.IOException { return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static alluxio.grpc.table.FieldSchema parseDelimitedFrom( java.alluxio.shaded.client.io.InputStream input, alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.alluxio.shaded.client.io.IOException { return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static alluxio.grpc.table.FieldSchema parseFrom( alluxio.shaded.client.com.google.protobuf.CodedInputStream input) throws java.alluxio.shaded.client.io.IOException { return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static alluxio.grpc.table.FieldSchema parseFrom( alluxio.shaded.client.com.google.protobuf.CodedInputStream input, alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.alluxio.shaded.client.io.IOException { return alluxio.shaded.client.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(alluxio.grpc.table.FieldSchema 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( alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * TODO(binfan): remove this proto file.
   * it is no longer used but only to keep old Presto/Trino build with Alluxio 3.x client.
   * 
* * Protobuf type {@code alluxio.grpc.table.FieldSchema} */ public static final class Builder extends alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:alluxio.grpc.table.FieldSchema) alluxio.grpc.table.FieldSchemaOrBuilder { public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_FieldSchema_descriptor; } @java.lang.Override protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_FieldSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.grpc.table.FieldSchema.class, alluxio.grpc.table.FieldSchema.Builder.class); } // Construct using alluxio.grpc.table.FieldSchema.newBuilder() private Builder() { } private Builder( alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); id_ = 0; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); type_ = ""; bitField0_ = (bitField0_ & ~0x00000004); alluxio.shaded.client.com.ent_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_FieldSchema_descriptor; } @java.lang.Override public alluxio.grpc.table.FieldSchema getDefaultInstanceForType() { return alluxio.grpc.table.FieldSchema.getDefaultInstance(); } @java.lang.Override public alluxio.grpc.table.FieldSchema build() { alluxio.grpc.table.FieldSchema result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public alluxio.grpc.table.FieldSchema buildPartial() { alluxio.grpc.table.FieldSchema result = new alluxio.grpc.table.FieldSchema(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.alluxio.shaded.client.com.ent_ = alluxio.shaded.client.com.ent_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( alluxio.shaded.client.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(alluxio.shaded.client.com.google.protobuf.Message other) { if (other instanceof alluxio.grpc.table.FieldSchema) { return mergeFrom((alluxio.grpc.table.FieldSchema)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.grpc.table.FieldSchema other) { if (other == alluxio.grpc.table.FieldSchema.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasType()) { bitField0_ |= 0x00000004; type_ = other.type_; onChanged(); } if (other.hasComment()) { bitField0_ |= 0x00000008; alluxio.shaded.client.com.ent_ = other.alluxio.shaded.client.com.ent_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( alluxio.shaded.client.com.google.protobuf.CodedInputStream input, alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.alluxio.shaded.client.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { id_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { name_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { type_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { alluxio.shaded.client.com.ent_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int id_ ; /** * optional uint32 id = 1; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 id = 1; * @return The id. */ @java.lang.Override public int getId() { return id_; } /** * optional uint32 id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(int value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * optional uint32 id = 1; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 2; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { alluxio.shaded.client.com.google.protobuf.ByteString bs = (alluxio.shaded.client.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; * @return The bytes for name. */ public alluxio.shaded.client.com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { alluxio.shaded.client.com.google.protobuf.ByteString b = alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (alluxio.shaded.client.com.google.protobuf.ByteString) ref; } } /** * optional string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * optional string name = 2; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( alluxio.shaded.client.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.lang.Object type_ = ""; /** * optional string type = 3; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string type = 3; * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { alluxio.shaded.client.com.google.protobuf.ByteString bs = (alluxio.shaded.client.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string type = 3; * @return The bytes for type. */ public alluxio.shaded.client.com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { alluxio.shaded.client.com.google.protobuf.ByteString b = alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (alluxio.shaded.client.com.google.protobuf.ByteString) ref; } } /** * optional string type = 3; * @param value The type to set. * @return This builder for chaining. */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } /** * optional string type = 3; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * optional string type = 3; * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes( alluxio.shaded.client.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } private java.lang.Object alluxio.shaded.client.com.ent_ = ""; /** * optional string alluxio.shaded.client.com.ent = 4; * @return Whether the alluxio.shaded.client.com.ent field is set. */ public boolean hasComment() { return ((bitField0_ & 0x00000008) != 0); } /** * optional string alluxio.shaded.client.com.ent = 4; * @return The alluxio.shaded.client.com.ent. */ public java.lang.String getComment() { java.lang.Object ref = alluxio.shaded.client.com.ent_; if (!(ref instanceof java.lang.String)) { alluxio.shaded.client.com.google.protobuf.ByteString bs = (alluxio.shaded.client.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { alluxio.shaded.client.com.ent_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string alluxio.shaded.client.com.ent = 4; * @return The bytes for alluxio.shaded.client.com.ent. */ public alluxio.shaded.client.com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = alluxio.shaded.client.com.ent_; if (ref instanceof String) { alluxio.shaded.client.com.google.protobuf.ByteString b = alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alluxio.shaded.client.com.ent_ = b; return b; } else { return (alluxio.shaded.client.com.google.protobuf.ByteString) ref; } } /** * optional string alluxio.shaded.client.com.ent = 4; * @param value The alluxio.shaded.client.com.ent to set. * @return This builder for chaining. */ public Builder setComment( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; alluxio.shaded.client.com.ent_ = value; onChanged(); return this; } /** * optional string alluxio.shaded.client.com.ent = 4; * @return This builder for chaining. */ public Builder clearComment() { bitField0_ = (bitField0_ & ~0x00000008); alluxio.shaded.client.com.ent_ = getDefaultInstance().getComment(); onChanged(); return this; } /** * optional string alluxio.shaded.client.com.ent = 4; * @param value The bytes for alluxio.shaded.client.com.ent to set. * @return This builder for chaining. */ public Builder setCommentBytes( alluxio.shaded.client.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; alluxio.shaded.client.com.ent_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:alluxio.grpc.table.FieldSchema) } // @@protoc_insertion_point(class_scope:alluxio.grpc.table.FieldSchema) private static final alluxio.grpc.table.FieldSchema DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new alluxio.grpc.table.FieldSchema(); } public static alluxio.grpc.table.FieldSchema getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final alluxio.shaded.client.com.google.protobuf.Parser PARSER = new alluxio.shaded.client.com.google.protobuf.AbstractParser() { @java.lang.Override public FieldSchema parsePartialFrom( alluxio.shaded.client.com.google.protobuf.CodedInputStream input, alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (alluxio.shaded.client.com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.alluxio.shaded.client.io.IOException e) { throw new alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static alluxio.shaded.client.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public alluxio.shaded.client.com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public alluxio.grpc.table.FieldSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy