public static <S extends Message, T extends Message> ProcessRequest getRowProcessorPB(RowProcessor<S,T> r) throws IOException { final ProcessRequest.Builder requestBuilder = ProcessRequest.newBuilder(); requestBuilder.setRowProcessorClassName(r.getClass().getName()); S s = r.getRequestData(); if (s != null) { requestBuilder.setRowProcessorInitializerMessageName(s.getClass().getName()); requestBuilder.setRowProcessorInitializerMessage(s.toByteString()); } return requestBuilder.build(); } }
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest buildPartial() { org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest result = new org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.rowProcessorClassName_ = rowProcessorClassName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.rowProcessorInitializerMessageName_ = rowProcessorInitializerMessageName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.rowProcessorInitializerMessage_ = rowProcessorInitializerMessage_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.nonceGroup_ = nonceGroup_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.nonce_ = nonce_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest buildPartial() { org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest result = new org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.rowProcessorClassName_ = rowProcessorClassName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.rowProcessorInitializerMessageName_ = rowProcessorInitializerMessageName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.rowProcessorInitializerMessage_ = rowProcessorInitializerMessage_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.nonceGroup_ = nonceGroup_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.nonce_ = nonce_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest other) { if (other == org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest.getDefaultInstance()) return this; if (other.hasRowProcessorClassName()) { bitField0_ |= 0x00000001; rowProcessorClassName_ = other.rowProcessorClassName_; onChanged(); } if (other.hasRowProcessorInitializerMessageName()) { bitField0_ |= 0x00000002; rowProcessorInitializerMessageName_ = other.rowProcessorInitializerMessageName_; onChanged(); } if (other.hasRowProcessorInitializerMessage()) { setRowProcessorInitializerMessage(other.getRowProcessorInitializerMessage()); } if (other.hasNonceGroup()) { setNonceGroup(other.getNonceGroup()); } if (other.hasNonce()) { setNonce(other.getNonce()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest buildPartial() { org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest result = new org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.rowProcessorClassName_ = rowProcessorClassName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.rowProcessorInitializerMessageName_ = rowProcessorInitializerMessageName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.rowProcessorInitializerMessage_ = rowProcessorInitializerMessage_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.nonceGroup_ = nonceGroup_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.nonce_ = nonce_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest other) { if (other == org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest.getDefaultInstance()) return this; if (other.hasRowProcessorClassName()) { bitField0_ |= 0x00000001; rowProcessorClassName_ = other.rowProcessorClassName_; onChanged(); } if (other.hasRowProcessorInitializerMessageName()) { bitField0_ |= 0x00000002; rowProcessorInitializerMessageName_ = other.rowProcessorInitializerMessageName_; onChanged(); } if (other.hasRowProcessorInitializerMessage()) { setRowProcessorInitializerMessage(other.getRowProcessorInitializerMessage()); } if (other.hasNonceGroup()) { setNonceGroup(other.getNonceGroup()); } if (other.hasNonce()) { setNonce(other.getNonce()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest other) { if (other == org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest.getDefaultInstance()) return this; if (other.hasRowProcessorClassName()) { bitField0_ |= 0x00000001; rowProcessorClassName_ = other.rowProcessorClassName_; onChanged(); } if (other.hasRowProcessorInitializerMessageName()) { bitField0_ |= 0x00000002; rowProcessorInitializerMessageName_ = other.rowProcessorInitializerMessageName_; onChanged(); } if (other.hasRowProcessorInitializerMessage()) { setRowProcessorInitializerMessage(other.getRowProcessorInitializerMessage()); } if (other.hasNonceGroup()) { setNonceGroup(other.getNonceGroup()); } if (other.hasNonce()) { setNonce(other.getNonce()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom( com.facebook.presto.hbase.$internal.com.google.protobuf.CodedInputStream input, com.facebook.presto.hbase.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.facebook.presto.hbase.$internal.com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest) e.getUnfinishedMessage(); throw e; } 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.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest) e.getUnfinishedMessage(); throw e; } 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.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
private Builder() { maybeForceBuilderInitialization(); }
private static Builder create() { return new Builder(); }
private Builder() { maybeForceBuilderInitialization(); }
private static Builder create() { return new Builder(); }
private Builder() { maybeForceBuilderInitialization(); }
public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.RowProcessorProtos.ProcessRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public static <S extends Message, T extends Message> ProcessRequest getRowProcessorPB(RowProcessor<S,T> r) throws IOException { final ProcessRequest.Builder requestBuilder = ProcessRequest.newBuilder(); requestBuilder.setRowProcessorClassName(r.getClass().getName()); S s = r.getRequestData(); if (s != null) { requestBuilder.setRowProcessorInitializerMessageName(s.getClass().getName()); requestBuilder.setRowProcessorInitializerMessage(s.toByteString()); } return requestBuilder.build(); } }
public Builder clone() { return create().mergeFrom(buildPartial()); }
public Builder clone() { return create().mergeFrom(buildPartial()); }