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

org.opensearch.migrations.trafficcapture.protos.TrafficObservation Maven / Gradle / Ivy

There is a newer version: 0.1.0.14
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: TrafficCaptureStream.proto

package org.opensearch.migrations.trafficcapture.protos;

/**
 * Protobuf type {@code TrafficObservation}
 */
public final class TrafficObservation extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:TrafficObservation)
    TrafficObservationOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TrafficObservation.newBuilder() to construct.
  private TrafficObservation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private TrafficObservation() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new TrafficObservation();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.opensearch.migrations.trafficcapture.protos.TrafficCapture.internal_static_TrafficObservation_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.opensearch.migrations.trafficcapture.protos.TrafficCapture.internal_static_TrafficObservation_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.opensearch.migrations.trafficcapture.protos.TrafficObservation.class, org.opensearch.migrations.trafficcapture.protos.TrafficObservation.Builder.class);
  }

  private int captureCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object capture_;
  public enum CaptureCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    BIND(2),
    CONNECT(3),
    READ(4),
    READSEGMENT(5),
    REQUESTRELEASEDDOWNSTREAM(6),
    WRITE(8),
    WRITESEGMENT(9),
    DISCONNECT(10),
    CLOSE(11),
    CONNECTIONEXCEPTION(12),
    SEGMENTEND(14),
    ENDOFMESSAGEINDICATOR(15),
    REQUESTDROPPED(16),
    CAPTURE_NOT_SET(0);
    private final int value;
    private CaptureCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static CaptureCase valueOf(int value) {
      return forNumber(value);
    }

    public static CaptureCase forNumber(int value) {
      switch (value) {
        case 2: return BIND;
        case 3: return CONNECT;
        case 4: return READ;
        case 5: return READSEGMENT;
        case 6: return REQUESTRELEASEDDOWNSTREAM;
        case 8: return WRITE;
        case 9: return WRITESEGMENT;
        case 10: return DISCONNECT;
        case 11: return CLOSE;
        case 12: return CONNECTIONEXCEPTION;
        case 14: return SEGMENTEND;
        case 15: return ENDOFMESSAGEINDICATOR;
        case 16: return REQUESTDROPPED;
        case 0: return CAPTURE_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public CaptureCase
  getCaptureCase() {
    return CaptureCase.forNumber(
        captureCase_);
  }

  public static final int TS_FIELD_NUMBER = 1;
  private com.google.protobuf.Timestamp ts_;
  /**
   * .google.protobuf.Timestamp ts = 1;
   * @return Whether the ts field is set.
   */
  @java.lang.Override
  public boolean hasTs() {
    return ts_ != null;
  }
  /**
   * .google.protobuf.Timestamp ts = 1;
   * @return The ts.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getTs() {
    return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
  }
  /**
   * .google.protobuf.Timestamp ts = 1;
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() {
    return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_;
  }

  public static final int BIND_FIELD_NUMBER = 2;
  /**
   * .BindObservation bind = 2;
   * @return Whether the bind field is set.
   */
  @java.lang.Override
  public boolean hasBind() {
    return captureCase_ == 2;
  }
  /**
   * .BindObservation bind = 2;
   * @return The bind.
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.BindObservation getBind() {
    if (captureCase_ == 2) {
       return (org.opensearch.migrations.trafficcapture.protos.BindObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.BindObservation.getDefaultInstance();
  }
  /**
   * .BindObservation bind = 2;
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.BindObservationOrBuilder getBindOrBuilder() {
    if (captureCase_ == 2) {
       return (org.opensearch.migrations.trafficcapture.protos.BindObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.BindObservation.getDefaultInstance();
  }

  public static final int CONNECT_FIELD_NUMBER = 3;
  /**
   * .ConnectObservation connect = 3;
   * @return Whether the connect field is set.
   */
  @java.lang.Override
  public boolean hasConnect() {
    return captureCase_ == 3;
  }
  /**
   * .ConnectObservation connect = 3;
   * @return The connect.
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.ConnectObservation getConnect() {
    if (captureCase_ == 3) {
       return (org.opensearch.migrations.trafficcapture.protos.ConnectObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.ConnectObservation.getDefaultInstance();
  }
  /**
   * .ConnectObservation connect = 3;
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.ConnectObservationOrBuilder getConnectOrBuilder() {
    if (captureCase_ == 3) {
       return (org.opensearch.migrations.trafficcapture.protos.ConnectObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.ConnectObservation.getDefaultInstance();
  }

  public static final int READ_FIELD_NUMBER = 4;
  /**
   * .ReadObservation read = 4;
   * @return Whether the read field is set.
   */
  @java.lang.Override
  public boolean hasRead() {
    return captureCase_ == 4;
  }
  /**
   * .ReadObservation read = 4;
   * @return The read.
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.ReadObservation getRead() {
    if (captureCase_ == 4) {
       return (org.opensearch.migrations.trafficcapture.protos.ReadObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.ReadObservation.getDefaultInstance();
  }
  /**
   * .ReadObservation read = 4;
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.ReadObservationOrBuilder getReadOrBuilder() {
    if (captureCase_ == 4) {
       return (org.opensearch.migrations.trafficcapture.protos.ReadObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.ReadObservation.getDefaultInstance();
  }

  public static final int READSEGMENT_FIELD_NUMBER = 5;
  /**
   * .ReadSegmentObservation readSegment = 5;
   * @return Whether the readSegment field is set.
   */
  @java.lang.Override
  public boolean hasReadSegment() {
    return captureCase_ == 5;
  }
  /**
   * .ReadSegmentObservation readSegment = 5;
   * @return The readSegment.
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation getReadSegment() {
    if (captureCase_ == 5) {
       return (org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation.getDefaultInstance();
  }
  /**
   * .ReadSegmentObservation readSegment = 5;
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservationOrBuilder getReadSegmentOrBuilder() {
    if (captureCase_ == 5) {
       return (org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation.getDefaultInstance();
  }

  public static final int REQUESTRELEASEDDOWNSTREAM_FIELD_NUMBER = 6;
  /**
   * .ProxyFinishesForwardingRequestObservation requestReleasedDownstream = 6;
   * @return Whether the requestReleasedDownstream field is set.
   */
  @java.lang.Override
  public boolean hasRequestReleasedDownstream() {
    return captureCase_ == 6;
  }
  /**
   * .ProxyFinishesForwardingRequestObservation requestReleasedDownstream = 6;
   * @return The requestReleasedDownstream.
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation getRequestReleasedDownstream() {
    if (captureCase_ == 6) {
       return (org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation.getDefaultInstance();
  }
  /**
   * .ProxyFinishesForwardingRequestObservation requestReleasedDownstream = 6;
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservationOrBuilder getRequestReleasedDownstreamOrBuilder() {
    if (captureCase_ == 6) {
       return (org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation.getDefaultInstance();
  }

  public static final int WRITE_FIELD_NUMBER = 8;
  /**
   * .WriteObservation write = 8;
   * @return Whether the write field is set.
   */
  @java.lang.Override
  public boolean hasWrite() {
    return captureCase_ == 8;
  }
  /**
   * .WriteObservation write = 8;
   * @return The write.
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.WriteObservation getWrite() {
    if (captureCase_ == 8) {
       return (org.opensearch.migrations.trafficcapture.protos.WriteObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.WriteObservation.getDefaultInstance();
  }
  /**
   * .WriteObservation write = 8;
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.WriteObservationOrBuilder getWriteOrBuilder() {
    if (captureCase_ == 8) {
       return (org.opensearch.migrations.trafficcapture.protos.WriteObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.WriteObservation.getDefaultInstance();
  }

  public static final int WRITESEGMENT_FIELD_NUMBER = 9;
  /**
   * .WriteSegmentObservation writeSegment = 9;
   * @return Whether the writeSegment field is set.
   */
  @java.lang.Override
  public boolean hasWriteSegment() {
    return captureCase_ == 9;
  }
  /**
   * .WriteSegmentObservation writeSegment = 9;
   * @return The writeSegment.
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation getWriteSegment() {
    if (captureCase_ == 9) {
       return (org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation.getDefaultInstance();
  }
  /**
   * .WriteSegmentObservation writeSegment = 9;
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservationOrBuilder getWriteSegmentOrBuilder() {
    if (captureCase_ == 9) {
       return (org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation.getDefaultInstance();
  }

  public static final int DISCONNECT_FIELD_NUMBER = 10;
  /**
   * .DisconnectObservation disconnect = 10;
   * @return Whether the disconnect field is set.
   */
  @java.lang.Override
  public boolean hasDisconnect() {
    return captureCase_ == 10;
  }
  /**
   * .DisconnectObservation disconnect = 10;
   * @return The disconnect.
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.DisconnectObservation getDisconnect() {
    if (captureCase_ == 10) {
       return (org.opensearch.migrations.trafficcapture.protos.DisconnectObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.DisconnectObservation.getDefaultInstance();
  }
  /**
   * .DisconnectObservation disconnect = 10;
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.DisconnectObservationOrBuilder getDisconnectOrBuilder() {
    if (captureCase_ == 10) {
       return (org.opensearch.migrations.trafficcapture.protos.DisconnectObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.DisconnectObservation.getDefaultInstance();
  }

  public static final int CLOSE_FIELD_NUMBER = 11;
  /**
   * .CloseObservation close = 11;
   * @return Whether the close field is set.
   */
  @java.lang.Override
  public boolean hasClose() {
    return captureCase_ == 11;
  }
  /**
   * .CloseObservation close = 11;
   * @return The close.
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.CloseObservation getClose() {
    if (captureCase_ == 11) {
       return (org.opensearch.migrations.trafficcapture.protos.CloseObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.CloseObservation.getDefaultInstance();
  }
  /**
   * .CloseObservation close = 11;
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.CloseObservationOrBuilder getCloseOrBuilder() {
    if (captureCase_ == 11) {
       return (org.opensearch.migrations.trafficcapture.protos.CloseObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.CloseObservation.getDefaultInstance();
  }

  public static final int CONNECTIONEXCEPTION_FIELD_NUMBER = 12;
  /**
   * .ConnectionExceptionObservation connectionException = 12;
   * @return Whether the connectionException field is set.
   */
  @java.lang.Override
  public boolean hasConnectionException() {
    return captureCase_ == 12;
  }
  /**
   * .ConnectionExceptionObservation connectionException = 12;
   * @return The connectionException.
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation getConnectionException() {
    if (captureCase_ == 12) {
       return (org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation.getDefaultInstance();
  }
  /**
   * .ConnectionExceptionObservation connectionException = 12;
   */
  @java.lang.Override
  public org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservationOrBuilder getConnectionExceptionOrBuilder() {
    if (captureCase_ == 12) {
       return (org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation) capture_;
    }
    return org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation.getDefaultInstance();
  }

  public static final int SEGMENTEND_FIELD_NUMBER = 14;
  /**
   * 
   * This seems a bit easier than adding a count of the number of segments that will be needed,
   * especially since the first segment might be smaller due to other observations already
   * having been committed to the stream.
   * 
* * .EndOfSegmentsIndication segmentEnd = 14; * @return Whether the segmentEnd field is set. */ @java.lang.Override public boolean hasSegmentEnd() { return captureCase_ == 14; } /** *
   * This seems a bit easier than adding a count of the number of segments that will be needed,
   * especially since the first segment might be smaller due to other observations already
   * having been committed to the stream.
   * 
* * .EndOfSegmentsIndication segmentEnd = 14; * @return The segmentEnd. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication getSegmentEnd() { if (captureCase_ == 14) { return (org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication) capture_; } return org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication.getDefaultInstance(); } /** *
   * This seems a bit easier than adding a count of the number of segments that will be needed,
   * especially since the first segment might be smaller due to other observations already
   * having been committed to the stream.
   * 
* * .EndOfSegmentsIndication segmentEnd = 14; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndicationOrBuilder getSegmentEndOrBuilder() { if (captureCase_ == 14) { return (org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication) capture_; } return org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication.getDefaultInstance(); } public static final int ENDOFMESSAGEINDICATOR_FIELD_NUMBER = 15; /** * .EndOfMessageIndication endOfMessageIndicator = 15; * @return Whether the endOfMessageIndicator field is set. */ @java.lang.Override public boolean hasEndOfMessageIndicator() { return captureCase_ == 15; } /** * .EndOfMessageIndication endOfMessageIndicator = 15; * @return The endOfMessageIndicator. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication getEndOfMessageIndicator() { if (captureCase_ == 15) { return (org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication) capture_; } return org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication.getDefaultInstance(); } /** * .EndOfMessageIndication endOfMessageIndicator = 15; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndicationOrBuilder getEndOfMessageIndicatorOrBuilder() { if (captureCase_ == 15) { return (org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication) capture_; } return org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication.getDefaultInstance(); } public static final int REQUESTDROPPED_FIELD_NUMBER = 16; /** * .RequestIntentionallyDropped requestDropped = 16; * @return Whether the requestDropped field is set. */ @java.lang.Override public boolean hasRequestDropped() { return captureCase_ == 16; } /** * .RequestIntentionallyDropped requestDropped = 16; * @return The requestDropped. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped getRequestDropped() { if (captureCase_ == 16) { return (org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped) capture_; } return org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped.getDefaultInstance(); } /** * .RequestIntentionallyDropped requestDropped = 16; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDroppedOrBuilder getRequestDroppedOrBuilder() { if (captureCase_ == 16) { return (org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped) capture_; } return org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped.getDefaultInstance(); } 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(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (ts_ != null) { output.writeMessage(1, getTs()); } if (captureCase_ == 2) { output.writeMessage(2, (org.opensearch.migrations.trafficcapture.protos.BindObservation) capture_); } if (captureCase_ == 3) { output.writeMessage(3, (org.opensearch.migrations.trafficcapture.protos.ConnectObservation) capture_); } if (captureCase_ == 4) { output.writeMessage(4, (org.opensearch.migrations.trafficcapture.protos.ReadObservation) capture_); } if (captureCase_ == 5) { output.writeMessage(5, (org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation) capture_); } if (captureCase_ == 6) { output.writeMessage(6, (org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation) capture_); } if (captureCase_ == 8) { output.writeMessage(8, (org.opensearch.migrations.trafficcapture.protos.WriteObservation) capture_); } if (captureCase_ == 9) { output.writeMessage(9, (org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation) capture_); } if (captureCase_ == 10) { output.writeMessage(10, (org.opensearch.migrations.trafficcapture.protos.DisconnectObservation) capture_); } if (captureCase_ == 11) { output.writeMessage(11, (org.opensearch.migrations.trafficcapture.protos.CloseObservation) capture_); } if (captureCase_ == 12) { output.writeMessage(12, (org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation) capture_); } if (captureCase_ == 14) { output.writeMessage(14, (org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication) capture_); } if (captureCase_ == 15) { output.writeMessage(15, (org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication) capture_); } if (captureCase_ == 16) { output.writeMessage(16, (org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped) capture_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ts_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTs()); } if (captureCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.opensearch.migrations.trafficcapture.protos.BindObservation) capture_); } if (captureCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.opensearch.migrations.trafficcapture.protos.ConnectObservation) capture_); } if (captureCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (org.opensearch.migrations.trafficcapture.protos.ReadObservation) capture_); } if (captureCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation) capture_); } if (captureCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation) capture_); } if (captureCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (org.opensearch.migrations.trafficcapture.protos.WriteObservation) capture_); } if (captureCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation) capture_); } if (captureCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (org.opensearch.migrations.trafficcapture.protos.DisconnectObservation) capture_); } if (captureCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (org.opensearch.migrations.trafficcapture.protos.CloseObservation) capture_); } if (captureCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation) capture_); } if (captureCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication) capture_); } if (captureCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication) capture_); } if (captureCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped) capture_); } 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 org.opensearch.migrations.trafficcapture.protos.TrafficObservation)) { return super.equals(obj); } org.opensearch.migrations.trafficcapture.protos.TrafficObservation other = (org.opensearch.migrations.trafficcapture.protos.TrafficObservation) obj; if (hasTs() != other.hasTs()) return false; if (hasTs()) { if (!getTs() .equals(other.getTs())) return false; } if (!getCaptureCase().equals(other.getCaptureCase())) return false; switch (captureCase_) { case 2: if (!getBind() .equals(other.getBind())) return false; break; case 3: if (!getConnect() .equals(other.getConnect())) return false; break; case 4: if (!getRead() .equals(other.getRead())) return false; break; case 5: if (!getReadSegment() .equals(other.getReadSegment())) return false; break; case 6: if (!getRequestReleasedDownstream() .equals(other.getRequestReleasedDownstream())) return false; break; case 8: if (!getWrite() .equals(other.getWrite())) return false; break; case 9: if (!getWriteSegment() .equals(other.getWriteSegment())) return false; break; case 10: if (!getDisconnect() .equals(other.getDisconnect())) return false; break; case 11: if (!getClose() .equals(other.getClose())) return false; break; case 12: if (!getConnectionException() .equals(other.getConnectionException())) return false; break; case 14: if (!getSegmentEnd() .equals(other.getSegmentEnd())) return false; break; case 15: if (!getEndOfMessageIndicator() .equals(other.getEndOfMessageIndicator())) return false; break; case 16: if (!getRequestDropped() .equals(other.getRequestDropped())) return false; break; case 0: default: } 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 (hasTs()) { hash = (37 * hash) + TS_FIELD_NUMBER; hash = (53 * hash) + getTs().hashCode(); } switch (captureCase_) { case 2: hash = (37 * hash) + BIND_FIELD_NUMBER; hash = (53 * hash) + getBind().hashCode(); break; case 3: hash = (37 * hash) + CONNECT_FIELD_NUMBER; hash = (53 * hash) + getConnect().hashCode(); break; case 4: hash = (37 * hash) + READ_FIELD_NUMBER; hash = (53 * hash) + getRead().hashCode(); break; case 5: hash = (37 * hash) + READSEGMENT_FIELD_NUMBER; hash = (53 * hash) + getReadSegment().hashCode(); break; case 6: hash = (37 * hash) + REQUESTRELEASEDDOWNSTREAM_FIELD_NUMBER; hash = (53 * hash) + getRequestReleasedDownstream().hashCode(); break; case 8: hash = (37 * hash) + WRITE_FIELD_NUMBER; hash = (53 * hash) + getWrite().hashCode(); break; case 9: hash = (37 * hash) + WRITESEGMENT_FIELD_NUMBER; hash = (53 * hash) + getWriteSegment().hashCode(); break; case 10: hash = (37 * hash) + DISCONNECT_FIELD_NUMBER; hash = (53 * hash) + getDisconnect().hashCode(); break; case 11: hash = (37 * hash) + CLOSE_FIELD_NUMBER; hash = (53 * hash) + getClose().hashCode(); break; case 12: hash = (37 * hash) + CONNECTIONEXCEPTION_FIELD_NUMBER; hash = (53 * hash) + getConnectionException().hashCode(); break; case 14: hash = (37 * hash) + SEGMENTEND_FIELD_NUMBER; hash = (53 * hash) + getSegmentEnd().hashCode(); break; case 15: hash = (37 * hash) + ENDOFMESSAGEINDICATOR_FIELD_NUMBER; hash = (53 * hash) + getEndOfMessageIndicator().hashCode(); break; case 16: hash = (37 * hash) + REQUESTDROPPED_FIELD_NUMBER; hash = (53 * hash) + getRequestDropped().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.opensearch.migrations.trafficcapture.protos.TrafficObservation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.opensearch.migrations.trafficcapture.protos.TrafficObservation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.opensearch.migrations.trafficcapture.protos.TrafficObservation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.opensearch.migrations.trafficcapture.protos.TrafficObservation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.opensearch.migrations.trafficcapture.protos.TrafficObservation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.opensearch.migrations.trafficcapture.protos.TrafficObservation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.opensearch.migrations.trafficcapture.protos.TrafficObservation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.opensearch.migrations.trafficcapture.protos.TrafficObservation 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.opensearch.migrations.trafficcapture.protos.TrafficObservation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.opensearch.migrations.trafficcapture.protos.TrafficObservation 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.opensearch.migrations.trafficcapture.protos.TrafficObservation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.opensearch.migrations.trafficcapture.protos.TrafficObservation 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.opensearch.migrations.trafficcapture.protos.TrafficObservation 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; } /** * Protobuf type {@code TrafficObservation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:TrafficObservation) org.opensearch.migrations.trafficcapture.protos.TrafficObservationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.opensearch.migrations.trafficcapture.protos.TrafficCapture.internal_static_TrafficObservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.opensearch.migrations.trafficcapture.protos.TrafficCapture.internal_static_TrafficObservation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.opensearch.migrations.trafficcapture.protos.TrafficObservation.class, org.opensearch.migrations.trafficcapture.protos.TrafficObservation.Builder.class); } // Construct using org.opensearch.migrations.trafficcapture.protos.TrafficObservation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ts_ = null; if (tsBuilder_ != null) { tsBuilder_.dispose(); tsBuilder_ = null; } if (bindBuilder_ != null) { bindBuilder_.clear(); } if (connectBuilder_ != null) { connectBuilder_.clear(); } if (readBuilder_ != null) { readBuilder_.clear(); } if (readSegmentBuilder_ != null) { readSegmentBuilder_.clear(); } if (requestReleasedDownstreamBuilder_ != null) { requestReleasedDownstreamBuilder_.clear(); } if (writeBuilder_ != null) { writeBuilder_.clear(); } if (writeSegmentBuilder_ != null) { writeSegmentBuilder_.clear(); } if (disconnectBuilder_ != null) { disconnectBuilder_.clear(); } if (closeBuilder_ != null) { closeBuilder_.clear(); } if (connectionExceptionBuilder_ != null) { connectionExceptionBuilder_.clear(); } if (segmentEndBuilder_ != null) { segmentEndBuilder_.clear(); } if (endOfMessageIndicatorBuilder_ != null) { endOfMessageIndicatorBuilder_.clear(); } if (requestDroppedBuilder_ != null) { requestDroppedBuilder_.clear(); } captureCase_ = 0; capture_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.opensearch.migrations.trafficcapture.protos.TrafficCapture.internal_static_TrafficObservation_descriptor; } @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.TrafficObservation getDefaultInstanceForType() { return org.opensearch.migrations.trafficcapture.protos.TrafficObservation.getDefaultInstance(); } @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.TrafficObservation build() { org.opensearch.migrations.trafficcapture.protos.TrafficObservation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.TrafficObservation buildPartial() { org.opensearch.migrations.trafficcapture.protos.TrafficObservation result = new org.opensearch.migrations.trafficcapture.protos.TrafficObservation(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(org.opensearch.migrations.trafficcapture.protos.TrafficObservation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ts_ = tsBuilder_ == null ? ts_ : tsBuilder_.build(); } } private void buildPartialOneofs(org.opensearch.migrations.trafficcapture.protos.TrafficObservation result) { result.captureCase_ = captureCase_; result.capture_ = this.capture_; if (captureCase_ == 2 && bindBuilder_ != null) { result.capture_ = bindBuilder_.build(); } if (captureCase_ == 3 && connectBuilder_ != null) { result.capture_ = connectBuilder_.build(); } if (captureCase_ == 4 && readBuilder_ != null) { result.capture_ = readBuilder_.build(); } if (captureCase_ == 5 && readSegmentBuilder_ != null) { result.capture_ = readSegmentBuilder_.build(); } if (captureCase_ == 6 && requestReleasedDownstreamBuilder_ != null) { result.capture_ = requestReleasedDownstreamBuilder_.build(); } if (captureCase_ == 8 && writeBuilder_ != null) { result.capture_ = writeBuilder_.build(); } if (captureCase_ == 9 && writeSegmentBuilder_ != null) { result.capture_ = writeSegmentBuilder_.build(); } if (captureCase_ == 10 && disconnectBuilder_ != null) { result.capture_ = disconnectBuilder_.build(); } if (captureCase_ == 11 && closeBuilder_ != null) { result.capture_ = closeBuilder_.build(); } if (captureCase_ == 12 && connectionExceptionBuilder_ != null) { result.capture_ = connectionExceptionBuilder_.build(); } if (captureCase_ == 14 && segmentEndBuilder_ != null) { result.capture_ = segmentEndBuilder_.build(); } if (captureCase_ == 15 && endOfMessageIndicatorBuilder_ != null) { result.capture_ = endOfMessageIndicatorBuilder_.build(); } if (captureCase_ == 16 && requestDroppedBuilder_ != null) { result.capture_ = requestDroppedBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.opensearch.migrations.trafficcapture.protos.TrafficObservation) { return mergeFrom((org.opensearch.migrations.trafficcapture.protos.TrafficObservation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.opensearch.migrations.trafficcapture.protos.TrafficObservation other) { if (other == org.opensearch.migrations.trafficcapture.protos.TrafficObservation.getDefaultInstance()) return this; if (other.hasTs()) { mergeTs(other.getTs()); } switch (other.getCaptureCase()) { case BIND: { mergeBind(other.getBind()); break; } case CONNECT: { mergeConnect(other.getConnect()); break; } case READ: { mergeRead(other.getRead()); break; } case READSEGMENT: { mergeReadSegment(other.getReadSegment()); break; } case REQUESTRELEASEDDOWNSTREAM: { mergeRequestReleasedDownstream(other.getRequestReleasedDownstream()); break; } case WRITE: { mergeWrite(other.getWrite()); break; } case WRITESEGMENT: { mergeWriteSegment(other.getWriteSegment()); break; } case DISCONNECT: { mergeDisconnect(other.getDisconnect()); break; } case CLOSE: { mergeClose(other.getClose()); break; } case CONNECTIONEXCEPTION: { mergeConnectionException(other.getConnectionException()); break; } case SEGMENTEND: { mergeSegmentEnd(other.getSegmentEnd()); break; } case ENDOFMESSAGEINDICATOR: { mergeEndOfMessageIndicator(other.getEndOfMessageIndicator()); break; } case REQUESTDROPPED: { mergeRequestDropped(other.getRequestDropped()); break; } case CAPTURE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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 10: { input.readMessage( getTsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getBindFieldBuilder().getBuilder(), extensionRegistry); captureCase_ = 2; break; } // case 18 case 26: { input.readMessage( getConnectFieldBuilder().getBuilder(), extensionRegistry); captureCase_ = 3; break; } // case 26 case 34: { input.readMessage( getReadFieldBuilder().getBuilder(), extensionRegistry); captureCase_ = 4; break; } // case 34 case 42: { input.readMessage( getReadSegmentFieldBuilder().getBuilder(), extensionRegistry); captureCase_ = 5; break; } // case 42 case 50: { input.readMessage( getRequestReleasedDownstreamFieldBuilder().getBuilder(), extensionRegistry); captureCase_ = 6; break; } // case 50 case 66: { input.readMessage( getWriteFieldBuilder().getBuilder(), extensionRegistry); captureCase_ = 8; break; } // case 66 case 74: { input.readMessage( getWriteSegmentFieldBuilder().getBuilder(), extensionRegistry); captureCase_ = 9; break; } // case 74 case 82: { input.readMessage( getDisconnectFieldBuilder().getBuilder(), extensionRegistry); captureCase_ = 10; break; } // case 82 case 90: { input.readMessage( getCloseFieldBuilder().getBuilder(), extensionRegistry); captureCase_ = 11; break; } // case 90 case 98: { input.readMessage( getConnectionExceptionFieldBuilder().getBuilder(), extensionRegistry); captureCase_ = 12; break; } // case 98 case 114: { input.readMessage( getSegmentEndFieldBuilder().getBuilder(), extensionRegistry); captureCase_ = 14; break; } // case 114 case 122: { input.readMessage( getEndOfMessageIndicatorFieldBuilder().getBuilder(), extensionRegistry); captureCase_ = 15; break; } // case 122 case 130: { input.readMessage( getRequestDroppedFieldBuilder().getBuilder(), extensionRegistry); captureCase_ = 16; break; } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int captureCase_ = 0; private java.lang.Object capture_; public CaptureCase getCaptureCase() { return CaptureCase.forNumber( captureCase_); } public Builder clearCapture() { captureCase_ = 0; capture_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.Timestamp ts_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> tsBuilder_; /** * .google.protobuf.Timestamp ts = 1; * @return Whether the ts field is set. */ public boolean hasTs() { return ((bitField0_ & 0x00000001) != 0); } /** * .google.protobuf.Timestamp ts = 1; * @return The ts. */ public com.google.protobuf.Timestamp getTs() { if (tsBuilder_ == null) { return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_; } else { return tsBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp ts = 1; */ public Builder setTs(com.google.protobuf.Timestamp value) { if (tsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ts_ = value; } else { tsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .google.protobuf.Timestamp ts = 1; */ public Builder setTs( com.google.protobuf.Timestamp.Builder builderForValue) { if (tsBuilder_ == null) { ts_ = builderForValue.build(); } else { tsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .google.protobuf.Timestamp ts = 1; */ public Builder mergeTs(com.google.protobuf.Timestamp value) { if (tsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && ts_ != null && ts_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getTsBuilder().mergeFrom(value); } else { ts_ = value; } } else { tsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .google.protobuf.Timestamp ts = 1; */ public Builder clearTs() { bitField0_ = (bitField0_ & ~0x00000001); ts_ = null; if (tsBuilder_ != null) { tsBuilder_.dispose(); tsBuilder_ = null; } onChanged(); return this; } /** * .google.protobuf.Timestamp ts = 1; */ public com.google.protobuf.Timestamp.Builder getTsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTsFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp ts = 1; */ public com.google.protobuf.TimestampOrBuilder getTsOrBuilder() { if (tsBuilder_ != null) { return tsBuilder_.getMessageOrBuilder(); } else { return ts_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ts_; } } /** * .google.protobuf.Timestamp ts = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTsFieldBuilder() { if (tsBuilder_ == null) { tsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTs(), getParentForChildren(), isClean()); ts_ = null; } return tsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.BindObservation, org.opensearch.migrations.trafficcapture.protos.BindObservation.Builder, org.opensearch.migrations.trafficcapture.protos.BindObservationOrBuilder> bindBuilder_; /** * .BindObservation bind = 2; * @return Whether the bind field is set. */ @java.lang.Override public boolean hasBind() { return captureCase_ == 2; } /** * .BindObservation bind = 2; * @return The bind. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.BindObservation getBind() { if (bindBuilder_ == null) { if (captureCase_ == 2) { return (org.opensearch.migrations.trafficcapture.protos.BindObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.BindObservation.getDefaultInstance(); } else { if (captureCase_ == 2) { return bindBuilder_.getMessage(); } return org.opensearch.migrations.trafficcapture.protos.BindObservation.getDefaultInstance(); } } /** * .BindObservation bind = 2; */ public Builder setBind(org.opensearch.migrations.trafficcapture.protos.BindObservation value) { if (bindBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capture_ = value; onChanged(); } else { bindBuilder_.setMessage(value); } captureCase_ = 2; return this; } /** * .BindObservation bind = 2; */ public Builder setBind( org.opensearch.migrations.trafficcapture.protos.BindObservation.Builder builderForValue) { if (bindBuilder_ == null) { capture_ = builderForValue.build(); onChanged(); } else { bindBuilder_.setMessage(builderForValue.build()); } captureCase_ = 2; return this; } /** * .BindObservation bind = 2; */ public Builder mergeBind(org.opensearch.migrations.trafficcapture.protos.BindObservation value) { if (bindBuilder_ == null) { if (captureCase_ == 2 && capture_ != org.opensearch.migrations.trafficcapture.protos.BindObservation.getDefaultInstance()) { capture_ = org.opensearch.migrations.trafficcapture.protos.BindObservation.newBuilder((org.opensearch.migrations.trafficcapture.protos.BindObservation) capture_) .mergeFrom(value).buildPartial(); } else { capture_ = value; } onChanged(); } else { if (captureCase_ == 2) { bindBuilder_.mergeFrom(value); } else { bindBuilder_.setMessage(value); } } captureCase_ = 2; return this; } /** * .BindObservation bind = 2; */ public Builder clearBind() { if (bindBuilder_ == null) { if (captureCase_ == 2) { captureCase_ = 0; capture_ = null; onChanged(); } } else { if (captureCase_ == 2) { captureCase_ = 0; capture_ = null; } bindBuilder_.clear(); } return this; } /** * .BindObservation bind = 2; */ public org.opensearch.migrations.trafficcapture.protos.BindObservation.Builder getBindBuilder() { return getBindFieldBuilder().getBuilder(); } /** * .BindObservation bind = 2; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.BindObservationOrBuilder getBindOrBuilder() { if ((captureCase_ == 2) && (bindBuilder_ != null)) { return bindBuilder_.getMessageOrBuilder(); } else { if (captureCase_ == 2) { return (org.opensearch.migrations.trafficcapture.protos.BindObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.BindObservation.getDefaultInstance(); } } /** * .BindObservation bind = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.BindObservation, org.opensearch.migrations.trafficcapture.protos.BindObservation.Builder, org.opensearch.migrations.trafficcapture.protos.BindObservationOrBuilder> getBindFieldBuilder() { if (bindBuilder_ == null) { if (!(captureCase_ == 2)) { capture_ = org.opensearch.migrations.trafficcapture.protos.BindObservation.getDefaultInstance(); } bindBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.BindObservation, org.opensearch.migrations.trafficcapture.protos.BindObservation.Builder, org.opensearch.migrations.trafficcapture.protos.BindObservationOrBuilder>( (org.opensearch.migrations.trafficcapture.protos.BindObservation) capture_, getParentForChildren(), isClean()); capture_ = null; } captureCase_ = 2; onChanged(); return bindBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ConnectObservation, org.opensearch.migrations.trafficcapture.protos.ConnectObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ConnectObservationOrBuilder> connectBuilder_; /** * .ConnectObservation connect = 3; * @return Whether the connect field is set. */ @java.lang.Override public boolean hasConnect() { return captureCase_ == 3; } /** * .ConnectObservation connect = 3; * @return The connect. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.ConnectObservation getConnect() { if (connectBuilder_ == null) { if (captureCase_ == 3) { return (org.opensearch.migrations.trafficcapture.protos.ConnectObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.ConnectObservation.getDefaultInstance(); } else { if (captureCase_ == 3) { return connectBuilder_.getMessage(); } return org.opensearch.migrations.trafficcapture.protos.ConnectObservation.getDefaultInstance(); } } /** * .ConnectObservation connect = 3; */ public Builder setConnect(org.opensearch.migrations.trafficcapture.protos.ConnectObservation value) { if (connectBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capture_ = value; onChanged(); } else { connectBuilder_.setMessage(value); } captureCase_ = 3; return this; } /** * .ConnectObservation connect = 3; */ public Builder setConnect( org.opensearch.migrations.trafficcapture.protos.ConnectObservation.Builder builderForValue) { if (connectBuilder_ == null) { capture_ = builderForValue.build(); onChanged(); } else { connectBuilder_.setMessage(builderForValue.build()); } captureCase_ = 3; return this; } /** * .ConnectObservation connect = 3; */ public Builder mergeConnect(org.opensearch.migrations.trafficcapture.protos.ConnectObservation value) { if (connectBuilder_ == null) { if (captureCase_ == 3 && capture_ != org.opensearch.migrations.trafficcapture.protos.ConnectObservation.getDefaultInstance()) { capture_ = org.opensearch.migrations.trafficcapture.protos.ConnectObservation.newBuilder((org.opensearch.migrations.trafficcapture.protos.ConnectObservation) capture_) .mergeFrom(value).buildPartial(); } else { capture_ = value; } onChanged(); } else { if (captureCase_ == 3) { connectBuilder_.mergeFrom(value); } else { connectBuilder_.setMessage(value); } } captureCase_ = 3; return this; } /** * .ConnectObservation connect = 3; */ public Builder clearConnect() { if (connectBuilder_ == null) { if (captureCase_ == 3) { captureCase_ = 0; capture_ = null; onChanged(); } } else { if (captureCase_ == 3) { captureCase_ = 0; capture_ = null; } connectBuilder_.clear(); } return this; } /** * .ConnectObservation connect = 3; */ public org.opensearch.migrations.trafficcapture.protos.ConnectObservation.Builder getConnectBuilder() { return getConnectFieldBuilder().getBuilder(); } /** * .ConnectObservation connect = 3; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.ConnectObservationOrBuilder getConnectOrBuilder() { if ((captureCase_ == 3) && (connectBuilder_ != null)) { return connectBuilder_.getMessageOrBuilder(); } else { if (captureCase_ == 3) { return (org.opensearch.migrations.trafficcapture.protos.ConnectObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.ConnectObservation.getDefaultInstance(); } } /** * .ConnectObservation connect = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ConnectObservation, org.opensearch.migrations.trafficcapture.protos.ConnectObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ConnectObservationOrBuilder> getConnectFieldBuilder() { if (connectBuilder_ == null) { if (!(captureCase_ == 3)) { capture_ = org.opensearch.migrations.trafficcapture.protos.ConnectObservation.getDefaultInstance(); } connectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ConnectObservation, org.opensearch.migrations.trafficcapture.protos.ConnectObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ConnectObservationOrBuilder>( (org.opensearch.migrations.trafficcapture.protos.ConnectObservation) capture_, getParentForChildren(), isClean()); capture_ = null; } captureCase_ = 3; onChanged(); return connectBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ReadObservation, org.opensearch.migrations.trafficcapture.protos.ReadObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ReadObservationOrBuilder> readBuilder_; /** * .ReadObservation read = 4; * @return Whether the read field is set. */ @java.lang.Override public boolean hasRead() { return captureCase_ == 4; } /** * .ReadObservation read = 4; * @return The read. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.ReadObservation getRead() { if (readBuilder_ == null) { if (captureCase_ == 4) { return (org.opensearch.migrations.trafficcapture.protos.ReadObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.ReadObservation.getDefaultInstance(); } else { if (captureCase_ == 4) { return readBuilder_.getMessage(); } return org.opensearch.migrations.trafficcapture.protos.ReadObservation.getDefaultInstance(); } } /** * .ReadObservation read = 4; */ public Builder setRead(org.opensearch.migrations.trafficcapture.protos.ReadObservation value) { if (readBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capture_ = value; onChanged(); } else { readBuilder_.setMessage(value); } captureCase_ = 4; return this; } /** * .ReadObservation read = 4; */ public Builder setRead( org.opensearch.migrations.trafficcapture.protos.ReadObservation.Builder builderForValue) { if (readBuilder_ == null) { capture_ = builderForValue.build(); onChanged(); } else { readBuilder_.setMessage(builderForValue.build()); } captureCase_ = 4; return this; } /** * .ReadObservation read = 4; */ public Builder mergeRead(org.opensearch.migrations.trafficcapture.protos.ReadObservation value) { if (readBuilder_ == null) { if (captureCase_ == 4 && capture_ != org.opensearch.migrations.trafficcapture.protos.ReadObservation.getDefaultInstance()) { capture_ = org.opensearch.migrations.trafficcapture.protos.ReadObservation.newBuilder((org.opensearch.migrations.trafficcapture.protos.ReadObservation) capture_) .mergeFrom(value).buildPartial(); } else { capture_ = value; } onChanged(); } else { if (captureCase_ == 4) { readBuilder_.mergeFrom(value); } else { readBuilder_.setMessage(value); } } captureCase_ = 4; return this; } /** * .ReadObservation read = 4; */ public Builder clearRead() { if (readBuilder_ == null) { if (captureCase_ == 4) { captureCase_ = 0; capture_ = null; onChanged(); } } else { if (captureCase_ == 4) { captureCase_ = 0; capture_ = null; } readBuilder_.clear(); } return this; } /** * .ReadObservation read = 4; */ public org.opensearch.migrations.trafficcapture.protos.ReadObservation.Builder getReadBuilder() { return getReadFieldBuilder().getBuilder(); } /** * .ReadObservation read = 4; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.ReadObservationOrBuilder getReadOrBuilder() { if ((captureCase_ == 4) && (readBuilder_ != null)) { return readBuilder_.getMessageOrBuilder(); } else { if (captureCase_ == 4) { return (org.opensearch.migrations.trafficcapture.protos.ReadObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.ReadObservation.getDefaultInstance(); } } /** * .ReadObservation read = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ReadObservation, org.opensearch.migrations.trafficcapture.protos.ReadObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ReadObservationOrBuilder> getReadFieldBuilder() { if (readBuilder_ == null) { if (!(captureCase_ == 4)) { capture_ = org.opensearch.migrations.trafficcapture.protos.ReadObservation.getDefaultInstance(); } readBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ReadObservation, org.opensearch.migrations.trafficcapture.protos.ReadObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ReadObservationOrBuilder>( (org.opensearch.migrations.trafficcapture.protos.ReadObservation) capture_, getParentForChildren(), isClean()); capture_ = null; } captureCase_ = 4; onChanged(); return readBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation, org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservationOrBuilder> readSegmentBuilder_; /** * .ReadSegmentObservation readSegment = 5; * @return Whether the readSegment field is set. */ @java.lang.Override public boolean hasReadSegment() { return captureCase_ == 5; } /** * .ReadSegmentObservation readSegment = 5; * @return The readSegment. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation getReadSegment() { if (readSegmentBuilder_ == null) { if (captureCase_ == 5) { return (org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation.getDefaultInstance(); } else { if (captureCase_ == 5) { return readSegmentBuilder_.getMessage(); } return org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation.getDefaultInstance(); } } /** * .ReadSegmentObservation readSegment = 5; */ public Builder setReadSegment(org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation value) { if (readSegmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capture_ = value; onChanged(); } else { readSegmentBuilder_.setMessage(value); } captureCase_ = 5; return this; } /** * .ReadSegmentObservation readSegment = 5; */ public Builder setReadSegment( org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation.Builder builderForValue) { if (readSegmentBuilder_ == null) { capture_ = builderForValue.build(); onChanged(); } else { readSegmentBuilder_.setMessage(builderForValue.build()); } captureCase_ = 5; return this; } /** * .ReadSegmentObservation readSegment = 5; */ public Builder mergeReadSegment(org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation value) { if (readSegmentBuilder_ == null) { if (captureCase_ == 5 && capture_ != org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation.getDefaultInstance()) { capture_ = org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation.newBuilder((org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation) capture_) .mergeFrom(value).buildPartial(); } else { capture_ = value; } onChanged(); } else { if (captureCase_ == 5) { readSegmentBuilder_.mergeFrom(value); } else { readSegmentBuilder_.setMessage(value); } } captureCase_ = 5; return this; } /** * .ReadSegmentObservation readSegment = 5; */ public Builder clearReadSegment() { if (readSegmentBuilder_ == null) { if (captureCase_ == 5) { captureCase_ = 0; capture_ = null; onChanged(); } } else { if (captureCase_ == 5) { captureCase_ = 0; capture_ = null; } readSegmentBuilder_.clear(); } return this; } /** * .ReadSegmentObservation readSegment = 5; */ public org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation.Builder getReadSegmentBuilder() { return getReadSegmentFieldBuilder().getBuilder(); } /** * .ReadSegmentObservation readSegment = 5; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservationOrBuilder getReadSegmentOrBuilder() { if ((captureCase_ == 5) && (readSegmentBuilder_ != null)) { return readSegmentBuilder_.getMessageOrBuilder(); } else { if (captureCase_ == 5) { return (org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation.getDefaultInstance(); } } /** * .ReadSegmentObservation readSegment = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation, org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservationOrBuilder> getReadSegmentFieldBuilder() { if (readSegmentBuilder_ == null) { if (!(captureCase_ == 5)) { capture_ = org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation.getDefaultInstance(); } readSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation, org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservationOrBuilder>( (org.opensearch.migrations.trafficcapture.protos.ReadSegmentObservation) capture_, getParentForChildren(), isClean()); capture_ = null; } captureCase_ = 5; onChanged(); return readSegmentBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation, org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservationOrBuilder> requestReleasedDownstreamBuilder_; /** * .ProxyFinishesForwardingRequestObservation requestReleasedDownstream = 6; * @return Whether the requestReleasedDownstream field is set. */ @java.lang.Override public boolean hasRequestReleasedDownstream() { return captureCase_ == 6; } /** * .ProxyFinishesForwardingRequestObservation requestReleasedDownstream = 6; * @return The requestReleasedDownstream. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation getRequestReleasedDownstream() { if (requestReleasedDownstreamBuilder_ == null) { if (captureCase_ == 6) { return (org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation.getDefaultInstance(); } else { if (captureCase_ == 6) { return requestReleasedDownstreamBuilder_.getMessage(); } return org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation.getDefaultInstance(); } } /** * .ProxyFinishesForwardingRequestObservation requestReleasedDownstream = 6; */ public Builder setRequestReleasedDownstream(org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation value) { if (requestReleasedDownstreamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capture_ = value; onChanged(); } else { requestReleasedDownstreamBuilder_.setMessage(value); } captureCase_ = 6; return this; } /** * .ProxyFinishesForwardingRequestObservation requestReleasedDownstream = 6; */ public Builder setRequestReleasedDownstream( org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation.Builder builderForValue) { if (requestReleasedDownstreamBuilder_ == null) { capture_ = builderForValue.build(); onChanged(); } else { requestReleasedDownstreamBuilder_.setMessage(builderForValue.build()); } captureCase_ = 6; return this; } /** * .ProxyFinishesForwardingRequestObservation requestReleasedDownstream = 6; */ public Builder mergeRequestReleasedDownstream(org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation value) { if (requestReleasedDownstreamBuilder_ == null) { if (captureCase_ == 6 && capture_ != org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation.getDefaultInstance()) { capture_ = org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation.newBuilder((org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation) capture_) .mergeFrom(value).buildPartial(); } else { capture_ = value; } onChanged(); } else { if (captureCase_ == 6) { requestReleasedDownstreamBuilder_.mergeFrom(value); } else { requestReleasedDownstreamBuilder_.setMessage(value); } } captureCase_ = 6; return this; } /** * .ProxyFinishesForwardingRequestObservation requestReleasedDownstream = 6; */ public Builder clearRequestReleasedDownstream() { if (requestReleasedDownstreamBuilder_ == null) { if (captureCase_ == 6) { captureCase_ = 0; capture_ = null; onChanged(); } } else { if (captureCase_ == 6) { captureCase_ = 0; capture_ = null; } requestReleasedDownstreamBuilder_.clear(); } return this; } /** * .ProxyFinishesForwardingRequestObservation requestReleasedDownstream = 6; */ public org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation.Builder getRequestReleasedDownstreamBuilder() { return getRequestReleasedDownstreamFieldBuilder().getBuilder(); } /** * .ProxyFinishesForwardingRequestObservation requestReleasedDownstream = 6; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservationOrBuilder getRequestReleasedDownstreamOrBuilder() { if ((captureCase_ == 6) && (requestReleasedDownstreamBuilder_ != null)) { return requestReleasedDownstreamBuilder_.getMessageOrBuilder(); } else { if (captureCase_ == 6) { return (org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation.getDefaultInstance(); } } /** * .ProxyFinishesForwardingRequestObservation requestReleasedDownstream = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation, org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservationOrBuilder> getRequestReleasedDownstreamFieldBuilder() { if (requestReleasedDownstreamBuilder_ == null) { if (!(captureCase_ == 6)) { capture_ = org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation.getDefaultInstance(); } requestReleasedDownstreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation, org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservationOrBuilder>( (org.opensearch.migrations.trafficcapture.protos.ProxyFinishesForwardingRequestObservation) capture_, getParentForChildren(), isClean()); capture_ = null; } captureCase_ = 6; onChanged(); return requestReleasedDownstreamBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.WriteObservation, org.opensearch.migrations.trafficcapture.protos.WriteObservation.Builder, org.opensearch.migrations.trafficcapture.protos.WriteObservationOrBuilder> writeBuilder_; /** * .WriteObservation write = 8; * @return Whether the write field is set. */ @java.lang.Override public boolean hasWrite() { return captureCase_ == 8; } /** * .WriteObservation write = 8; * @return The write. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.WriteObservation getWrite() { if (writeBuilder_ == null) { if (captureCase_ == 8) { return (org.opensearch.migrations.trafficcapture.protos.WriteObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.WriteObservation.getDefaultInstance(); } else { if (captureCase_ == 8) { return writeBuilder_.getMessage(); } return org.opensearch.migrations.trafficcapture.protos.WriteObservation.getDefaultInstance(); } } /** * .WriteObservation write = 8; */ public Builder setWrite(org.opensearch.migrations.trafficcapture.protos.WriteObservation value) { if (writeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capture_ = value; onChanged(); } else { writeBuilder_.setMessage(value); } captureCase_ = 8; return this; } /** * .WriteObservation write = 8; */ public Builder setWrite( org.opensearch.migrations.trafficcapture.protos.WriteObservation.Builder builderForValue) { if (writeBuilder_ == null) { capture_ = builderForValue.build(); onChanged(); } else { writeBuilder_.setMessage(builderForValue.build()); } captureCase_ = 8; return this; } /** * .WriteObservation write = 8; */ public Builder mergeWrite(org.opensearch.migrations.trafficcapture.protos.WriteObservation value) { if (writeBuilder_ == null) { if (captureCase_ == 8 && capture_ != org.opensearch.migrations.trafficcapture.protos.WriteObservation.getDefaultInstance()) { capture_ = org.opensearch.migrations.trafficcapture.protos.WriteObservation.newBuilder((org.opensearch.migrations.trafficcapture.protos.WriteObservation) capture_) .mergeFrom(value).buildPartial(); } else { capture_ = value; } onChanged(); } else { if (captureCase_ == 8) { writeBuilder_.mergeFrom(value); } else { writeBuilder_.setMessage(value); } } captureCase_ = 8; return this; } /** * .WriteObservation write = 8; */ public Builder clearWrite() { if (writeBuilder_ == null) { if (captureCase_ == 8) { captureCase_ = 0; capture_ = null; onChanged(); } } else { if (captureCase_ == 8) { captureCase_ = 0; capture_ = null; } writeBuilder_.clear(); } return this; } /** * .WriteObservation write = 8; */ public org.opensearch.migrations.trafficcapture.protos.WriteObservation.Builder getWriteBuilder() { return getWriteFieldBuilder().getBuilder(); } /** * .WriteObservation write = 8; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.WriteObservationOrBuilder getWriteOrBuilder() { if ((captureCase_ == 8) && (writeBuilder_ != null)) { return writeBuilder_.getMessageOrBuilder(); } else { if (captureCase_ == 8) { return (org.opensearch.migrations.trafficcapture.protos.WriteObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.WriteObservation.getDefaultInstance(); } } /** * .WriteObservation write = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.WriteObservation, org.opensearch.migrations.trafficcapture.protos.WriteObservation.Builder, org.opensearch.migrations.trafficcapture.protos.WriteObservationOrBuilder> getWriteFieldBuilder() { if (writeBuilder_ == null) { if (!(captureCase_ == 8)) { capture_ = org.opensearch.migrations.trafficcapture.protos.WriteObservation.getDefaultInstance(); } writeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.WriteObservation, org.opensearch.migrations.trafficcapture.protos.WriteObservation.Builder, org.opensearch.migrations.trafficcapture.protos.WriteObservationOrBuilder>( (org.opensearch.migrations.trafficcapture.protos.WriteObservation) capture_, getParentForChildren(), isClean()); capture_ = null; } captureCase_ = 8; onChanged(); return writeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation, org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation.Builder, org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservationOrBuilder> writeSegmentBuilder_; /** * .WriteSegmentObservation writeSegment = 9; * @return Whether the writeSegment field is set. */ @java.lang.Override public boolean hasWriteSegment() { return captureCase_ == 9; } /** * .WriteSegmentObservation writeSegment = 9; * @return The writeSegment. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation getWriteSegment() { if (writeSegmentBuilder_ == null) { if (captureCase_ == 9) { return (org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation.getDefaultInstance(); } else { if (captureCase_ == 9) { return writeSegmentBuilder_.getMessage(); } return org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation.getDefaultInstance(); } } /** * .WriteSegmentObservation writeSegment = 9; */ public Builder setWriteSegment(org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation value) { if (writeSegmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capture_ = value; onChanged(); } else { writeSegmentBuilder_.setMessage(value); } captureCase_ = 9; return this; } /** * .WriteSegmentObservation writeSegment = 9; */ public Builder setWriteSegment( org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation.Builder builderForValue) { if (writeSegmentBuilder_ == null) { capture_ = builderForValue.build(); onChanged(); } else { writeSegmentBuilder_.setMessage(builderForValue.build()); } captureCase_ = 9; return this; } /** * .WriteSegmentObservation writeSegment = 9; */ public Builder mergeWriteSegment(org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation value) { if (writeSegmentBuilder_ == null) { if (captureCase_ == 9 && capture_ != org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation.getDefaultInstance()) { capture_ = org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation.newBuilder((org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation) capture_) .mergeFrom(value).buildPartial(); } else { capture_ = value; } onChanged(); } else { if (captureCase_ == 9) { writeSegmentBuilder_.mergeFrom(value); } else { writeSegmentBuilder_.setMessage(value); } } captureCase_ = 9; return this; } /** * .WriteSegmentObservation writeSegment = 9; */ public Builder clearWriteSegment() { if (writeSegmentBuilder_ == null) { if (captureCase_ == 9) { captureCase_ = 0; capture_ = null; onChanged(); } } else { if (captureCase_ == 9) { captureCase_ = 0; capture_ = null; } writeSegmentBuilder_.clear(); } return this; } /** * .WriteSegmentObservation writeSegment = 9; */ public org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation.Builder getWriteSegmentBuilder() { return getWriteSegmentFieldBuilder().getBuilder(); } /** * .WriteSegmentObservation writeSegment = 9; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservationOrBuilder getWriteSegmentOrBuilder() { if ((captureCase_ == 9) && (writeSegmentBuilder_ != null)) { return writeSegmentBuilder_.getMessageOrBuilder(); } else { if (captureCase_ == 9) { return (org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation.getDefaultInstance(); } } /** * .WriteSegmentObservation writeSegment = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation, org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation.Builder, org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservationOrBuilder> getWriteSegmentFieldBuilder() { if (writeSegmentBuilder_ == null) { if (!(captureCase_ == 9)) { capture_ = org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation.getDefaultInstance(); } writeSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation, org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation.Builder, org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservationOrBuilder>( (org.opensearch.migrations.trafficcapture.protos.WriteSegmentObservation) capture_, getParentForChildren(), isClean()); capture_ = null; } captureCase_ = 9; onChanged(); return writeSegmentBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.DisconnectObservation, org.opensearch.migrations.trafficcapture.protos.DisconnectObservation.Builder, org.opensearch.migrations.trafficcapture.protos.DisconnectObservationOrBuilder> disconnectBuilder_; /** * .DisconnectObservation disconnect = 10; * @return Whether the disconnect field is set. */ @java.lang.Override public boolean hasDisconnect() { return captureCase_ == 10; } /** * .DisconnectObservation disconnect = 10; * @return The disconnect. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.DisconnectObservation getDisconnect() { if (disconnectBuilder_ == null) { if (captureCase_ == 10) { return (org.opensearch.migrations.trafficcapture.protos.DisconnectObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.DisconnectObservation.getDefaultInstance(); } else { if (captureCase_ == 10) { return disconnectBuilder_.getMessage(); } return org.opensearch.migrations.trafficcapture.protos.DisconnectObservation.getDefaultInstance(); } } /** * .DisconnectObservation disconnect = 10; */ public Builder setDisconnect(org.opensearch.migrations.trafficcapture.protos.DisconnectObservation value) { if (disconnectBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capture_ = value; onChanged(); } else { disconnectBuilder_.setMessage(value); } captureCase_ = 10; return this; } /** * .DisconnectObservation disconnect = 10; */ public Builder setDisconnect( org.opensearch.migrations.trafficcapture.protos.DisconnectObservation.Builder builderForValue) { if (disconnectBuilder_ == null) { capture_ = builderForValue.build(); onChanged(); } else { disconnectBuilder_.setMessage(builderForValue.build()); } captureCase_ = 10; return this; } /** * .DisconnectObservation disconnect = 10; */ public Builder mergeDisconnect(org.opensearch.migrations.trafficcapture.protos.DisconnectObservation value) { if (disconnectBuilder_ == null) { if (captureCase_ == 10 && capture_ != org.opensearch.migrations.trafficcapture.protos.DisconnectObservation.getDefaultInstance()) { capture_ = org.opensearch.migrations.trafficcapture.protos.DisconnectObservation.newBuilder((org.opensearch.migrations.trafficcapture.protos.DisconnectObservation) capture_) .mergeFrom(value).buildPartial(); } else { capture_ = value; } onChanged(); } else { if (captureCase_ == 10) { disconnectBuilder_.mergeFrom(value); } else { disconnectBuilder_.setMessage(value); } } captureCase_ = 10; return this; } /** * .DisconnectObservation disconnect = 10; */ public Builder clearDisconnect() { if (disconnectBuilder_ == null) { if (captureCase_ == 10) { captureCase_ = 0; capture_ = null; onChanged(); } } else { if (captureCase_ == 10) { captureCase_ = 0; capture_ = null; } disconnectBuilder_.clear(); } return this; } /** * .DisconnectObservation disconnect = 10; */ public org.opensearch.migrations.trafficcapture.protos.DisconnectObservation.Builder getDisconnectBuilder() { return getDisconnectFieldBuilder().getBuilder(); } /** * .DisconnectObservation disconnect = 10; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.DisconnectObservationOrBuilder getDisconnectOrBuilder() { if ((captureCase_ == 10) && (disconnectBuilder_ != null)) { return disconnectBuilder_.getMessageOrBuilder(); } else { if (captureCase_ == 10) { return (org.opensearch.migrations.trafficcapture.protos.DisconnectObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.DisconnectObservation.getDefaultInstance(); } } /** * .DisconnectObservation disconnect = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.DisconnectObservation, org.opensearch.migrations.trafficcapture.protos.DisconnectObservation.Builder, org.opensearch.migrations.trafficcapture.protos.DisconnectObservationOrBuilder> getDisconnectFieldBuilder() { if (disconnectBuilder_ == null) { if (!(captureCase_ == 10)) { capture_ = org.opensearch.migrations.trafficcapture.protos.DisconnectObservation.getDefaultInstance(); } disconnectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.DisconnectObservation, org.opensearch.migrations.trafficcapture.protos.DisconnectObservation.Builder, org.opensearch.migrations.trafficcapture.protos.DisconnectObservationOrBuilder>( (org.opensearch.migrations.trafficcapture.protos.DisconnectObservation) capture_, getParentForChildren(), isClean()); capture_ = null; } captureCase_ = 10; onChanged(); return disconnectBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.CloseObservation, org.opensearch.migrations.trafficcapture.protos.CloseObservation.Builder, org.opensearch.migrations.trafficcapture.protos.CloseObservationOrBuilder> closeBuilder_; /** * .CloseObservation close = 11; * @return Whether the close field is set. */ @java.lang.Override public boolean hasClose() { return captureCase_ == 11; } /** * .CloseObservation close = 11; * @return The close. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.CloseObservation getClose() { if (closeBuilder_ == null) { if (captureCase_ == 11) { return (org.opensearch.migrations.trafficcapture.protos.CloseObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.CloseObservation.getDefaultInstance(); } else { if (captureCase_ == 11) { return closeBuilder_.getMessage(); } return org.opensearch.migrations.trafficcapture.protos.CloseObservation.getDefaultInstance(); } } /** * .CloseObservation close = 11; */ public Builder setClose(org.opensearch.migrations.trafficcapture.protos.CloseObservation value) { if (closeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capture_ = value; onChanged(); } else { closeBuilder_.setMessage(value); } captureCase_ = 11; return this; } /** * .CloseObservation close = 11; */ public Builder setClose( org.opensearch.migrations.trafficcapture.protos.CloseObservation.Builder builderForValue) { if (closeBuilder_ == null) { capture_ = builderForValue.build(); onChanged(); } else { closeBuilder_.setMessage(builderForValue.build()); } captureCase_ = 11; return this; } /** * .CloseObservation close = 11; */ public Builder mergeClose(org.opensearch.migrations.trafficcapture.protos.CloseObservation value) { if (closeBuilder_ == null) { if (captureCase_ == 11 && capture_ != org.opensearch.migrations.trafficcapture.protos.CloseObservation.getDefaultInstance()) { capture_ = org.opensearch.migrations.trafficcapture.protos.CloseObservation.newBuilder((org.opensearch.migrations.trafficcapture.protos.CloseObservation) capture_) .mergeFrom(value).buildPartial(); } else { capture_ = value; } onChanged(); } else { if (captureCase_ == 11) { closeBuilder_.mergeFrom(value); } else { closeBuilder_.setMessage(value); } } captureCase_ = 11; return this; } /** * .CloseObservation close = 11; */ public Builder clearClose() { if (closeBuilder_ == null) { if (captureCase_ == 11) { captureCase_ = 0; capture_ = null; onChanged(); } } else { if (captureCase_ == 11) { captureCase_ = 0; capture_ = null; } closeBuilder_.clear(); } return this; } /** * .CloseObservation close = 11; */ public org.opensearch.migrations.trafficcapture.protos.CloseObservation.Builder getCloseBuilder() { return getCloseFieldBuilder().getBuilder(); } /** * .CloseObservation close = 11; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.CloseObservationOrBuilder getCloseOrBuilder() { if ((captureCase_ == 11) && (closeBuilder_ != null)) { return closeBuilder_.getMessageOrBuilder(); } else { if (captureCase_ == 11) { return (org.opensearch.migrations.trafficcapture.protos.CloseObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.CloseObservation.getDefaultInstance(); } } /** * .CloseObservation close = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.CloseObservation, org.opensearch.migrations.trafficcapture.protos.CloseObservation.Builder, org.opensearch.migrations.trafficcapture.protos.CloseObservationOrBuilder> getCloseFieldBuilder() { if (closeBuilder_ == null) { if (!(captureCase_ == 11)) { capture_ = org.opensearch.migrations.trafficcapture.protos.CloseObservation.getDefaultInstance(); } closeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.CloseObservation, org.opensearch.migrations.trafficcapture.protos.CloseObservation.Builder, org.opensearch.migrations.trafficcapture.protos.CloseObservationOrBuilder>( (org.opensearch.migrations.trafficcapture.protos.CloseObservation) capture_, getParentForChildren(), isClean()); capture_ = null; } captureCase_ = 11; onChanged(); return closeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation, org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservationOrBuilder> connectionExceptionBuilder_; /** * .ConnectionExceptionObservation connectionException = 12; * @return Whether the connectionException field is set. */ @java.lang.Override public boolean hasConnectionException() { return captureCase_ == 12; } /** * .ConnectionExceptionObservation connectionException = 12; * @return The connectionException. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation getConnectionException() { if (connectionExceptionBuilder_ == null) { if (captureCase_ == 12) { return (org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation.getDefaultInstance(); } else { if (captureCase_ == 12) { return connectionExceptionBuilder_.getMessage(); } return org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation.getDefaultInstance(); } } /** * .ConnectionExceptionObservation connectionException = 12; */ public Builder setConnectionException(org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation value) { if (connectionExceptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capture_ = value; onChanged(); } else { connectionExceptionBuilder_.setMessage(value); } captureCase_ = 12; return this; } /** * .ConnectionExceptionObservation connectionException = 12; */ public Builder setConnectionException( org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation.Builder builderForValue) { if (connectionExceptionBuilder_ == null) { capture_ = builderForValue.build(); onChanged(); } else { connectionExceptionBuilder_.setMessage(builderForValue.build()); } captureCase_ = 12; return this; } /** * .ConnectionExceptionObservation connectionException = 12; */ public Builder mergeConnectionException(org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation value) { if (connectionExceptionBuilder_ == null) { if (captureCase_ == 12 && capture_ != org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation.getDefaultInstance()) { capture_ = org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation.newBuilder((org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation) capture_) .mergeFrom(value).buildPartial(); } else { capture_ = value; } onChanged(); } else { if (captureCase_ == 12) { connectionExceptionBuilder_.mergeFrom(value); } else { connectionExceptionBuilder_.setMessage(value); } } captureCase_ = 12; return this; } /** * .ConnectionExceptionObservation connectionException = 12; */ public Builder clearConnectionException() { if (connectionExceptionBuilder_ == null) { if (captureCase_ == 12) { captureCase_ = 0; capture_ = null; onChanged(); } } else { if (captureCase_ == 12) { captureCase_ = 0; capture_ = null; } connectionExceptionBuilder_.clear(); } return this; } /** * .ConnectionExceptionObservation connectionException = 12; */ public org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation.Builder getConnectionExceptionBuilder() { return getConnectionExceptionFieldBuilder().getBuilder(); } /** * .ConnectionExceptionObservation connectionException = 12; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservationOrBuilder getConnectionExceptionOrBuilder() { if ((captureCase_ == 12) && (connectionExceptionBuilder_ != null)) { return connectionExceptionBuilder_.getMessageOrBuilder(); } else { if (captureCase_ == 12) { return (org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation) capture_; } return org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation.getDefaultInstance(); } } /** * .ConnectionExceptionObservation connectionException = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation, org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservationOrBuilder> getConnectionExceptionFieldBuilder() { if (connectionExceptionBuilder_ == null) { if (!(captureCase_ == 12)) { capture_ = org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation.getDefaultInstance(); } connectionExceptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation, org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation.Builder, org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservationOrBuilder>( (org.opensearch.migrations.trafficcapture.protos.ConnectionExceptionObservation) capture_, getParentForChildren(), isClean()); capture_ = null; } captureCase_ = 12; onChanged(); return connectionExceptionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication, org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication.Builder, org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndicationOrBuilder> segmentEndBuilder_; /** *
     * This seems a bit easier than adding a count of the number of segments that will be needed,
     * especially since the first segment might be smaller due to other observations already
     * having been committed to the stream.
     * 
* * .EndOfSegmentsIndication segmentEnd = 14; * @return Whether the segmentEnd field is set. */ @java.lang.Override public boolean hasSegmentEnd() { return captureCase_ == 14; } /** *
     * This seems a bit easier than adding a count of the number of segments that will be needed,
     * especially since the first segment might be smaller due to other observations already
     * having been committed to the stream.
     * 
* * .EndOfSegmentsIndication segmentEnd = 14; * @return The segmentEnd. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication getSegmentEnd() { if (segmentEndBuilder_ == null) { if (captureCase_ == 14) { return (org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication) capture_; } return org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication.getDefaultInstance(); } else { if (captureCase_ == 14) { return segmentEndBuilder_.getMessage(); } return org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication.getDefaultInstance(); } } /** *
     * This seems a bit easier than adding a count of the number of segments that will be needed,
     * especially since the first segment might be smaller due to other observations already
     * having been committed to the stream.
     * 
* * .EndOfSegmentsIndication segmentEnd = 14; */ public Builder setSegmentEnd(org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication value) { if (segmentEndBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capture_ = value; onChanged(); } else { segmentEndBuilder_.setMessage(value); } captureCase_ = 14; return this; } /** *
     * This seems a bit easier than adding a count of the number of segments that will be needed,
     * especially since the first segment might be smaller due to other observations already
     * having been committed to the stream.
     * 
* * .EndOfSegmentsIndication segmentEnd = 14; */ public Builder setSegmentEnd( org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication.Builder builderForValue) { if (segmentEndBuilder_ == null) { capture_ = builderForValue.build(); onChanged(); } else { segmentEndBuilder_.setMessage(builderForValue.build()); } captureCase_ = 14; return this; } /** *
     * This seems a bit easier than adding a count of the number of segments that will be needed,
     * especially since the first segment might be smaller due to other observations already
     * having been committed to the stream.
     * 
* * .EndOfSegmentsIndication segmentEnd = 14; */ public Builder mergeSegmentEnd(org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication value) { if (segmentEndBuilder_ == null) { if (captureCase_ == 14 && capture_ != org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication.getDefaultInstance()) { capture_ = org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication.newBuilder((org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication) capture_) .mergeFrom(value).buildPartial(); } else { capture_ = value; } onChanged(); } else { if (captureCase_ == 14) { segmentEndBuilder_.mergeFrom(value); } else { segmentEndBuilder_.setMessage(value); } } captureCase_ = 14; return this; } /** *
     * This seems a bit easier than adding a count of the number of segments that will be needed,
     * especially since the first segment might be smaller due to other observations already
     * having been committed to the stream.
     * 
* * .EndOfSegmentsIndication segmentEnd = 14; */ public Builder clearSegmentEnd() { if (segmentEndBuilder_ == null) { if (captureCase_ == 14) { captureCase_ = 0; capture_ = null; onChanged(); } } else { if (captureCase_ == 14) { captureCase_ = 0; capture_ = null; } segmentEndBuilder_.clear(); } return this; } /** *
     * This seems a bit easier than adding a count of the number of segments that will be needed,
     * especially since the first segment might be smaller due to other observations already
     * having been committed to the stream.
     * 
* * .EndOfSegmentsIndication segmentEnd = 14; */ public org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication.Builder getSegmentEndBuilder() { return getSegmentEndFieldBuilder().getBuilder(); } /** *
     * This seems a bit easier than adding a count of the number of segments that will be needed,
     * especially since the first segment might be smaller due to other observations already
     * having been committed to the stream.
     * 
* * .EndOfSegmentsIndication segmentEnd = 14; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndicationOrBuilder getSegmentEndOrBuilder() { if ((captureCase_ == 14) && (segmentEndBuilder_ != null)) { return segmentEndBuilder_.getMessageOrBuilder(); } else { if (captureCase_ == 14) { return (org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication) capture_; } return org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication.getDefaultInstance(); } } /** *
     * This seems a bit easier than adding a count of the number of segments that will be needed,
     * especially since the first segment might be smaller due to other observations already
     * having been committed to the stream.
     * 
* * .EndOfSegmentsIndication segmentEnd = 14; */ private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication, org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication.Builder, org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndicationOrBuilder> getSegmentEndFieldBuilder() { if (segmentEndBuilder_ == null) { if (!(captureCase_ == 14)) { capture_ = org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication.getDefaultInstance(); } segmentEndBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication, org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication.Builder, org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndicationOrBuilder>( (org.opensearch.migrations.trafficcapture.protos.EndOfSegmentsIndication) capture_, getParentForChildren(), isClean()); capture_ = null; } captureCase_ = 14; onChanged(); return segmentEndBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication, org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication.Builder, org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndicationOrBuilder> endOfMessageIndicatorBuilder_; /** * .EndOfMessageIndication endOfMessageIndicator = 15; * @return Whether the endOfMessageIndicator field is set. */ @java.lang.Override public boolean hasEndOfMessageIndicator() { return captureCase_ == 15; } /** * .EndOfMessageIndication endOfMessageIndicator = 15; * @return The endOfMessageIndicator. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication getEndOfMessageIndicator() { if (endOfMessageIndicatorBuilder_ == null) { if (captureCase_ == 15) { return (org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication) capture_; } return org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication.getDefaultInstance(); } else { if (captureCase_ == 15) { return endOfMessageIndicatorBuilder_.getMessage(); } return org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication.getDefaultInstance(); } } /** * .EndOfMessageIndication endOfMessageIndicator = 15; */ public Builder setEndOfMessageIndicator(org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication value) { if (endOfMessageIndicatorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capture_ = value; onChanged(); } else { endOfMessageIndicatorBuilder_.setMessage(value); } captureCase_ = 15; return this; } /** * .EndOfMessageIndication endOfMessageIndicator = 15; */ public Builder setEndOfMessageIndicator( org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication.Builder builderForValue) { if (endOfMessageIndicatorBuilder_ == null) { capture_ = builderForValue.build(); onChanged(); } else { endOfMessageIndicatorBuilder_.setMessage(builderForValue.build()); } captureCase_ = 15; return this; } /** * .EndOfMessageIndication endOfMessageIndicator = 15; */ public Builder mergeEndOfMessageIndicator(org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication value) { if (endOfMessageIndicatorBuilder_ == null) { if (captureCase_ == 15 && capture_ != org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication.getDefaultInstance()) { capture_ = org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication.newBuilder((org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication) capture_) .mergeFrom(value).buildPartial(); } else { capture_ = value; } onChanged(); } else { if (captureCase_ == 15) { endOfMessageIndicatorBuilder_.mergeFrom(value); } else { endOfMessageIndicatorBuilder_.setMessage(value); } } captureCase_ = 15; return this; } /** * .EndOfMessageIndication endOfMessageIndicator = 15; */ public Builder clearEndOfMessageIndicator() { if (endOfMessageIndicatorBuilder_ == null) { if (captureCase_ == 15) { captureCase_ = 0; capture_ = null; onChanged(); } } else { if (captureCase_ == 15) { captureCase_ = 0; capture_ = null; } endOfMessageIndicatorBuilder_.clear(); } return this; } /** * .EndOfMessageIndication endOfMessageIndicator = 15; */ public org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication.Builder getEndOfMessageIndicatorBuilder() { return getEndOfMessageIndicatorFieldBuilder().getBuilder(); } /** * .EndOfMessageIndication endOfMessageIndicator = 15; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndicationOrBuilder getEndOfMessageIndicatorOrBuilder() { if ((captureCase_ == 15) && (endOfMessageIndicatorBuilder_ != null)) { return endOfMessageIndicatorBuilder_.getMessageOrBuilder(); } else { if (captureCase_ == 15) { return (org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication) capture_; } return org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication.getDefaultInstance(); } } /** * .EndOfMessageIndication endOfMessageIndicator = 15; */ private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication, org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication.Builder, org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndicationOrBuilder> getEndOfMessageIndicatorFieldBuilder() { if (endOfMessageIndicatorBuilder_ == null) { if (!(captureCase_ == 15)) { capture_ = org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication.getDefaultInstance(); } endOfMessageIndicatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication, org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication.Builder, org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndicationOrBuilder>( (org.opensearch.migrations.trafficcapture.protos.EndOfMessageIndication) capture_, getParentForChildren(), isClean()); capture_ = null; } captureCase_ = 15; onChanged(); return endOfMessageIndicatorBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped, org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped.Builder, org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDroppedOrBuilder> requestDroppedBuilder_; /** * .RequestIntentionallyDropped requestDropped = 16; * @return Whether the requestDropped field is set. */ @java.lang.Override public boolean hasRequestDropped() { return captureCase_ == 16; } /** * .RequestIntentionallyDropped requestDropped = 16; * @return The requestDropped. */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped getRequestDropped() { if (requestDroppedBuilder_ == null) { if (captureCase_ == 16) { return (org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped) capture_; } return org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped.getDefaultInstance(); } else { if (captureCase_ == 16) { return requestDroppedBuilder_.getMessage(); } return org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped.getDefaultInstance(); } } /** * .RequestIntentionallyDropped requestDropped = 16; */ public Builder setRequestDropped(org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped value) { if (requestDroppedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capture_ = value; onChanged(); } else { requestDroppedBuilder_.setMessage(value); } captureCase_ = 16; return this; } /** * .RequestIntentionallyDropped requestDropped = 16; */ public Builder setRequestDropped( org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped.Builder builderForValue) { if (requestDroppedBuilder_ == null) { capture_ = builderForValue.build(); onChanged(); } else { requestDroppedBuilder_.setMessage(builderForValue.build()); } captureCase_ = 16; return this; } /** * .RequestIntentionallyDropped requestDropped = 16; */ public Builder mergeRequestDropped(org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped value) { if (requestDroppedBuilder_ == null) { if (captureCase_ == 16 && capture_ != org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped.getDefaultInstance()) { capture_ = org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped.newBuilder((org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped) capture_) .mergeFrom(value).buildPartial(); } else { capture_ = value; } onChanged(); } else { if (captureCase_ == 16) { requestDroppedBuilder_.mergeFrom(value); } else { requestDroppedBuilder_.setMessage(value); } } captureCase_ = 16; return this; } /** * .RequestIntentionallyDropped requestDropped = 16; */ public Builder clearRequestDropped() { if (requestDroppedBuilder_ == null) { if (captureCase_ == 16) { captureCase_ = 0; capture_ = null; onChanged(); } } else { if (captureCase_ == 16) { captureCase_ = 0; capture_ = null; } requestDroppedBuilder_.clear(); } return this; } /** * .RequestIntentionallyDropped requestDropped = 16; */ public org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped.Builder getRequestDroppedBuilder() { return getRequestDroppedFieldBuilder().getBuilder(); } /** * .RequestIntentionallyDropped requestDropped = 16; */ @java.lang.Override public org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDroppedOrBuilder getRequestDroppedOrBuilder() { if ((captureCase_ == 16) && (requestDroppedBuilder_ != null)) { return requestDroppedBuilder_.getMessageOrBuilder(); } else { if (captureCase_ == 16) { return (org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped) capture_; } return org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped.getDefaultInstance(); } } /** * .RequestIntentionallyDropped requestDropped = 16; */ private com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped, org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped.Builder, org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDroppedOrBuilder> getRequestDroppedFieldBuilder() { if (requestDroppedBuilder_ == null) { if (!(captureCase_ == 16)) { capture_ = org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped.getDefaultInstance(); } requestDroppedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped, org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped.Builder, org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDroppedOrBuilder>( (org.opensearch.migrations.trafficcapture.protos.RequestIntentionallyDropped) capture_, getParentForChildren(), isClean()); capture_ = null; } captureCase_ = 16; onChanged(); return requestDroppedBuilder_; } @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:TrafficObservation) } // @@protoc_insertion_point(class_scope:TrafficObservation) private static final org.opensearch.migrations.trafficcapture.protos.TrafficObservation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.opensearch.migrations.trafficcapture.protos.TrafficObservation(); } public static org.opensearch.migrations.trafficcapture.protos.TrafficObservation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TrafficObservation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.opensearch.migrations.trafficcapture.protos.TrafficObservation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy