/** * <code>.DatabaseProperty key = 1;</code> */ public Builder setKey( org.apache.calcite.avatica.proto.Common.DatabaseProperty.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /**
subBuilder.mergeFrom(key_); key_ = subBuilder.buildPartial();
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.DatabaseProperty other) { if (other == org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFunctionsIsMutable(); functions_.addAll(other.functions_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
subBuilder.mergeFrom(key_); key_ = subBuilder.buildPartial();
subBuilder.mergeFrom(key_); key_ = subBuilder.buildPartial();
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.calcite.avatica.proto.Common.DatabaseProperty parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Common.DatabaseProperty) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.DatabaseProperty other) { if (other == org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFunctionsIsMutable(); functions_.addAll(other.functions_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.DatabaseProperty other) { if (other == org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFunctionsIsMutable(); functions_.addAll(other.functions_); } onChanged(); } onChanged(); return this; }
/** * <code>.DatabaseProperty key = 1;</code> */ public Builder mergeKey(org.apache.calcite.avatica.proto.Common.DatabaseProperty value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = org.apache.calcite.avatica.proto.Common.DatabaseProperty.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /**
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.calcite.avatica.proto.Common.DatabaseProperty parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Common.DatabaseProperty) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.calcite.avatica.proto.Common.DatabaseProperty parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Common.DatabaseProperty) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <code>optional .DatabaseProperty key = 1;</code> */ public Builder mergeKey(org.apache.calcite.avatica.proto.Common.DatabaseProperty value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = org.apache.calcite.avatica.proto.Common.DatabaseProperty.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /**
/** * <code>.DatabaseProperty key = 1;</code> */ public Builder mergeKey(org.apache.calcite.avatica.proto.Common.DatabaseProperty value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = org.apache.calcite.avatica.proto.Common.DatabaseProperty.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /**
@java.lang.Override public org.apache.calcite.avatica.proto.Common.DatabaseProperty buildPartial() { org.apache.calcite.avatica.proto.Common.DatabaseProperty result = new org.apache.calcite.avatica.proto.Common.DatabaseProperty(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; if (((bitField0_ & 0x00000002) == 0x00000002)) { functions_ = functions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.functions_ = functions_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * <code>repeated string functions = 2;</code> */ public Builder addFunctions( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFunctionsIsMutable(); functions_.add(value); onChanged(); return this; } /**
/** * <code>repeated string functions = 2;</code> */ public Builder addFunctionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFunctionsIsMutable(); functions_.add(value); onChanged(); return this; } @java.lang.Override
/** * <code>repeated string functions = 2;</code> */ public Builder addFunctionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFunctionsIsMutable(); functions_.add(value); onChanged(); return this; } public final Builder setUnknownFields(
@java.lang.Override public org.apache.calcite.avatica.proto.Common.DatabaseProperty buildPartial() { org.apache.calcite.avatica.proto.Common.DatabaseProperty result = new org.apache.calcite.avatica.proto.Common.DatabaseProperty(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; if (((bitField0_ & 0x00000002) == 0x00000002)) { functions_ = functions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.functions_ = functions_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
private Builder() { maybeForceBuilderInitialization(); }
/** * <code>repeated string functions = 2;</code> */ public Builder addFunctionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFunctionsIsMutable(); functions_.add(value); onChanged(); return this; } @java.lang.Override