/** * <code>optional .HandshakeRequest handshakeRequest = 3;</code> */ public Builder setHandshakeRequest( org.apache.omid.proto.TSOProto.HandshakeRequest.Builder builderForValue) { if (handshakeRequestBuilder_ == null) { handshakeRequest_ = builderForValue.build(); onChanged(); } else { handshakeRequestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /**
HandshakingState(StateMachine.Fsm fsm, Channel channel) { super(fsm); LOG.debug("NEW STATE: HANDSHAKING"); this.channel = channel; TSOProto.HandshakeRequest.Builder handshake = TSOProto.HandshakeRequest.newBuilder(); // Add the required handshake capabilities when necessary handshake.setClientCapabilities(TSOProto.Capabilities.newBuilder().build()); channel.write(TSOProto.Request.newBuilder().setHandshakeRequest(handshake.build()).build()); timeout = newTimeout(); }
subBuilder.mergeFrom(handshakeRequest_); handshakeRequest_ = subBuilder.buildPartial();
/** * <code>optional .HandshakeRequest handshakeRequest = 3;</code> */ public Builder mergeHandshakeRequest(org.apache.omid.proto.TSOProto.HandshakeRequest value) { if (handshakeRequestBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && handshakeRequest_ != org.apache.omid.proto.TSOProto.HandshakeRequest.getDefaultInstance()) { handshakeRequest_ = org.apache.omid.proto.TSOProto.HandshakeRequest.newBuilder(handshakeRequest_).mergeFrom(value).buildPartial(); } else { handshakeRequest_ = value; } onChanged(); } else { handshakeRequestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
/** * <code>optional .Capabilities clientCapabilities = 1;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.omid.proto.TSOProto.Capabilities, org.apache.omid.proto.TSOProto.Capabilities.Builder, org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder> getClientCapabilitiesFieldBuilder() { if (clientCapabilitiesBuilder_ == null) { clientCapabilitiesBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.omid.proto.TSOProto.Capabilities, org.apache.omid.proto.TSOProto.Capabilities.Builder, org.apache.omid.proto.TSOProto.CapabilitiesOrBuilder>( clientCapabilities_, getParentForChildren(), isClean()); clientCapabilities_ = null; } return clientCapabilitiesBuilder_; }
private Builder() { maybeForceBuilderInitialization(); }
/** * <code>optional .Capabilities clientCapabilities = 1;</code> */ public org.apache.omid.proto.TSOProto.Capabilities.Builder getClientCapabilitiesBuilder() { bitField0_ |= 0x00000001; onChanged(); return getClientCapabilitiesFieldBuilder().getBuilder(); } /**
private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getClientCapabilitiesFieldBuilder(); } } private static Builder create() {
private static Builder create() { return new Builder(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
public org.apache.omid.proto.TSOProto.HandshakeRequest build() { org.apache.omid.proto.TSOProto.HandshakeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
HandshakingState(StateMachine.Fsm fsm, Channel channel) { super(fsm); LOG.debug("NEW STATE: HANDSHAKING"); this.channel = channel; TSOProto.HandshakeRequest.Builder handshake = TSOProto.HandshakeRequest.newBuilder(); // Add the required handshake capabilities when necessary handshake.setClientCapabilities(TSOProto.Capabilities.newBuilder().build()); channel.write(TSOProto.Request.newBuilder().setHandshakeRequest(handshake.build()).build()); timeout = newTimeout(); }
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {