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

io.numaproj.numaflow.source.v1.SourceOuterClass Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: source/v1/source.proto

package io.numaproj.numaflow.source.v1;

public final class SourceOuterClass {
  private SourceOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface HandshakeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:source.v1.Handshake)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Required field indicating the start of transmission.
     * 
* * bool sot = 1; * @return The sot. */ boolean getSot(); } /** *
   * Handshake message between client and server to indicate the start of transmission.
   * 
* * Protobuf type {@code source.v1.Handshake} */ public static final class Handshake extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.Handshake) HandshakeOrBuilder { private static final long serialVersionUID = 0L; // Use Handshake.newBuilder() to construct. private Handshake(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Handshake() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Handshake(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_Handshake_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_Handshake_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.class, io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder.class); } public static final int SOT_FIELD_NUMBER = 1; private boolean sot_; /** *
     * Required field indicating the start of transmission.
     * 
* * bool sot = 1; * @return The sot. */ @java.lang.Override public boolean getSot() { return sot_; } 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 (sot_ != false) { output.writeBool(1, sot_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sot_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, sot_); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake other = (io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake) obj; if (getSot() != other.getSot()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SOT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSot()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake 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 io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake 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 io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake 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(io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake 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; } /** *
     * Handshake message between client and server to indicate the start of transmission.
     * 
* * Protobuf type {@code source.v1.Handshake} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.Handshake) io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_Handshake_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_Handshake_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.class, io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); sot_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_Handshake_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake build() { io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake result = new io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake(this); result.sot_ = sot_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance()) return this; if (other.getSot() != false) { setSot(other.getSot()); } 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 8: { sot_ = input.readBool(); break; } // case 8 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 boolean sot_ ; /** *
       * Required field indicating the start of transmission.
       * 
* * bool sot = 1; * @return The sot. */ @java.lang.Override public boolean getSot() { return sot_; } /** *
       * Required field indicating the start of transmission.
       * 
* * bool sot = 1; * @param value The sot to set. * @return This builder for chaining. */ public Builder setSot(boolean value) { sot_ = value; onChanged(); return this; } /** *
       * Required field indicating the start of transmission.
       * 
* * bool sot = 1; * @return This builder for chaining. */ public Builder clearSot() { sot_ = false; onChanged(); return this; } @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:source.v1.Handshake) } // @@protoc_insertion_point(class_scope:source.v1.Handshake) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Handshake 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 io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.ReadRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Required field indicating the request.
     * 
* * .source.v1.ReadRequest.Request request = 1; * @return Whether the request field is set. */ boolean hasRequest(); /** *
     * Required field indicating the request.
     * 
* * .source.v1.ReadRequest.Request request = 1; * @return The request. */ io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request getRequest(); /** *
     * Required field indicating the request.
     * 
* * .source.v1.ReadRequest.Request request = 1; */ io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.RequestOrBuilder getRequestOrBuilder(); /** * optional .source.v1.Handshake handshake = 2; * @return Whether the handshake field is set. */ boolean hasHandshake(); /** * optional .source.v1.Handshake handshake = 2; * @return The handshake. */ io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getHandshake(); /** * optional .source.v1.Handshake handshake = 2; */ io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder getHandshakeOrBuilder(); } /** *
   * ReadRequest is the request for reading datum stream from user defined source.
   * 
* * Protobuf type {@code source.v1.ReadRequest} */ public static final class ReadRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.ReadRequest) ReadRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ReadRequest.newBuilder() to construct. private ReadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReadRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.class, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Builder.class); } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.ReadRequest.Request) com.google.protobuf.MessageOrBuilder { /** *
       * Required field indicating the number of records to read.
       * 
* * uint64 num_records = 1; * @return The numRecords. */ long getNumRecords(); /** *
       * Required field indicating the request timeout in milliseconds.
       * uint32 can represent 2^32 milliseconds, which is about 49 days.
       * We don't use uint64 because time.Duration takes int64 as nano seconds. Using uint64 for milli will cause overflow.
       * 
* * uint32 timeout_in_ms = 2; * @return The timeoutInMs. */ int getTimeoutInMs(); } /** * Protobuf type {@code source.v1.ReadRequest.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.ReadRequest.Request) RequestOrBuilder { private static final long serialVersionUID = 0L; // Use Request.newBuilder() to construct. private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Request() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Request(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadRequest_Request_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadRequest_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.class, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.Builder.class); } public static final int NUM_RECORDS_FIELD_NUMBER = 1; private long numRecords_; /** *
       * Required field indicating the number of records to read.
       * 
* * uint64 num_records = 1; * @return The numRecords. */ @java.lang.Override public long getNumRecords() { return numRecords_; } public static final int TIMEOUT_IN_MS_FIELD_NUMBER = 2; private int timeoutInMs_; /** *
       * Required field indicating the request timeout in milliseconds.
       * uint32 can represent 2^32 milliseconds, which is about 49 days.
       * We don't use uint64 because time.Duration takes int64 as nano seconds. Using uint64 for milli will cause overflow.
       * 
* * uint32 timeout_in_ms = 2; * @return The timeoutInMs. */ @java.lang.Override public int getTimeoutInMs() { return timeoutInMs_; } 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 (numRecords_ != 0L) { output.writeUInt64(1, numRecords_); } if (timeoutInMs_ != 0) { output.writeUInt32(2, timeoutInMs_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (numRecords_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, numRecords_); } if (timeoutInMs_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, timeoutInMs_); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request other = (io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request) obj; if (getNumRecords() != other.getNumRecords()) return false; if (getTimeoutInMs() != other.getTimeoutInMs()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NUM_RECORDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumRecords()); hash = (37 * hash) + TIMEOUT_IN_MS_FIELD_NUMBER; hash = (53 * hash) + getTimeoutInMs(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request 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(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request 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 source.v1.ReadRequest.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.ReadRequest.Request) io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadRequest_Request_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadRequest_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.class, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); numRecords_ = 0L; timeoutInMs_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadRequest_Request_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request build() { io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request result = new io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request(this); result.numRecords_ = numRecords_; result.timeoutInMs_ = timeoutInMs_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.getDefaultInstance()) return this; if (other.getNumRecords() != 0L) { setNumRecords(other.getNumRecords()); } if (other.getTimeoutInMs() != 0) { setTimeoutInMs(other.getTimeoutInMs()); } 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 8: { numRecords_ = input.readUInt64(); break; } // case 8 case 16: { timeoutInMs_ = input.readUInt32(); break; } // case 16 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 long numRecords_ ; /** *
         * Required field indicating the number of records to read.
         * 
* * uint64 num_records = 1; * @return The numRecords. */ @java.lang.Override public long getNumRecords() { return numRecords_; } /** *
         * Required field indicating the number of records to read.
         * 
* * uint64 num_records = 1; * @param value The numRecords to set. * @return This builder for chaining. */ public Builder setNumRecords(long value) { numRecords_ = value; onChanged(); return this; } /** *
         * Required field indicating the number of records to read.
         * 
* * uint64 num_records = 1; * @return This builder for chaining. */ public Builder clearNumRecords() { numRecords_ = 0L; onChanged(); return this; } private int timeoutInMs_ ; /** *
         * Required field indicating the request timeout in milliseconds.
         * uint32 can represent 2^32 milliseconds, which is about 49 days.
         * We don't use uint64 because time.Duration takes int64 as nano seconds. Using uint64 for milli will cause overflow.
         * 
* * uint32 timeout_in_ms = 2; * @return The timeoutInMs. */ @java.lang.Override public int getTimeoutInMs() { return timeoutInMs_; } /** *
         * Required field indicating the request timeout in milliseconds.
         * uint32 can represent 2^32 milliseconds, which is about 49 days.
         * We don't use uint64 because time.Duration takes int64 as nano seconds. Using uint64 for milli will cause overflow.
         * 
* * uint32 timeout_in_ms = 2; * @param value The timeoutInMs to set. * @return This builder for chaining. */ public Builder setTimeoutInMs(int value) { timeoutInMs_ = value; onChanged(); return this; } /** *
         * Required field indicating the request timeout in milliseconds.
         * uint32 can represent 2^32 milliseconds, which is about 49 days.
         * We don't use uint64 because time.Duration takes int64 as nano seconds. Using uint64 for milli will cause overflow.
         * 
* * uint32 timeout_in_ms = 2; * @return This builder for chaining. */ public Builder clearTimeoutInMs() { timeoutInMs_ = 0; onChanged(); return this; } @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:source.v1.ReadRequest.Request) } // @@protoc_insertion_point(class_scope:source.v1.ReadRequest.Request) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Request 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int REQUEST_FIELD_NUMBER = 1; private io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request request_; /** *
     * Required field indicating the request.
     * 
* * .source.v1.ReadRequest.Request request = 1; * @return Whether the request field is set. */ @java.lang.Override public boolean hasRequest() { return request_ != null; } /** *
     * Required field indicating the request.
     * 
* * .source.v1.ReadRequest.Request request = 1; * @return The request. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request getRequest() { return request_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.getDefaultInstance() : request_; } /** *
     * Required field indicating the request.
     * 
* * .source.v1.ReadRequest.Request request = 1; */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.RequestOrBuilder getRequestOrBuilder() { return getRequest(); } public static final int HANDSHAKE_FIELD_NUMBER = 2; private io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake handshake_; /** * optional .source.v1.Handshake handshake = 2; * @return Whether the handshake field is set. */ @java.lang.Override public boolean hasHandshake() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .source.v1.Handshake handshake = 2; * @return The handshake. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getHandshake() { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } /** * optional .source.v1.Handshake handshake = 2; */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder getHandshakeOrBuilder() { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } 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 (request_ != null) { output.writeMessage(1, getRequest()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getHandshake()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (request_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getHandshake()); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest other = (io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest) obj; if (hasRequest() != other.hasRequest()) return false; if (hasRequest()) { if (!getRequest() .equals(other.getRequest())) return false; } if (hasHandshake() != other.hasHandshake()) return false; if (hasHandshake()) { if (!getHandshake() .equals(other.getHandshake())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRequest()) { hash = (37 * hash) + REQUEST_FIELD_NUMBER; hash = (53 * hash) + getRequest().hashCode(); } if (hasHandshake()) { hash = (37 * hash) + HANDSHAKE_FIELD_NUMBER; hash = (53 * hash) + getHandshake().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest 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(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest 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; } /** *
     * ReadRequest is the request for reading datum stream from user defined source.
     * 
* * Protobuf type {@code source.v1.ReadRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.ReadRequest) io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.class, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHandshakeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (requestBuilder_ == null) { request_ = null; } else { request_ = null; requestBuilder_ = null; } if (handshakeBuilder_ == null) { handshake_ = null; } else { handshakeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadRequest_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest build() { io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest result = new io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (requestBuilder_ == null) { result.request_ = request_; } else { result.request_ = requestBuilder_.build(); } if (((from_bitField0_ & 0x00000001) != 0)) { if (handshakeBuilder_ == null) { result.handshake_ = handshake_; } else { result.handshake_ = handshakeBuilder_.build(); } to_bitField0_ |= 0x00000001; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.getDefaultInstance()) return this; if (other.hasRequest()) { mergeRequest(other.getRequest()); } if (other.hasHandshake()) { mergeHandshake(other.getHandshake()); } 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( getRequestFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getHandshakeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 18 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 bitField0_; private io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request request_; private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.RequestOrBuilder> requestBuilder_; /** *
       * Required field indicating the request.
       * 
* * .source.v1.ReadRequest.Request request = 1; * @return Whether the request field is set. */ public boolean hasRequest() { return requestBuilder_ != null || request_ != null; } /** *
       * Required field indicating the request.
       * 
* * .source.v1.ReadRequest.Request request = 1; * @return The request. */ public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request getRequest() { if (requestBuilder_ == null) { return request_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.getDefaultInstance() : request_; } else { return requestBuilder_.getMessage(); } } /** *
       * Required field indicating the request.
       * 
* * .source.v1.ReadRequest.Request request = 1; */ public Builder setRequest(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request value) { if (requestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { requestBuilder_.setMessage(value); } return this; } /** *
       * Required field indicating the request.
       * 
* * .source.v1.ReadRequest.Request request = 1; */ public Builder setRequest( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.Builder builderForValue) { if (requestBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { requestBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Required field indicating the request.
       * 
* * .source.v1.ReadRequest.Request request = 1; */ public Builder mergeRequest(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request value) { if (requestBuilder_ == null) { if (request_ != null) { request_ = io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { requestBuilder_.mergeFrom(value); } return this; } /** *
       * Required field indicating the request.
       * 
* * .source.v1.ReadRequest.Request request = 1; */ public Builder clearRequest() { if (requestBuilder_ == null) { request_ = null; onChanged(); } else { request_ = null; requestBuilder_ = null; } return this; } /** *
       * Required field indicating the request.
       * 
* * .source.v1.ReadRequest.Request request = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.Builder getRequestBuilder() { onChanged(); return getRequestFieldBuilder().getBuilder(); } /** *
       * Required field indicating the request.
       * 
* * .source.v1.ReadRequest.Request request = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.RequestOrBuilder getRequestOrBuilder() { if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilder(); } else { return request_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.getDefaultInstance() : request_; } } /** *
       * Required field indicating the request.
       * 
* * .source.v1.ReadRequest.Request request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.RequestOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.Request.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest.RequestOrBuilder>( getRequest(), getParentForChildren(), isClean()); request_ = null; } return requestBuilder_; } private io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake handshake_; private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake, io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder> handshakeBuilder_; /** * optional .source.v1.Handshake handshake = 2; * @return Whether the handshake field is set. */ public boolean hasHandshake() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .source.v1.Handshake handshake = 2; * @return The handshake. */ public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getHandshake() { if (handshakeBuilder_ == null) { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } else { return handshakeBuilder_.getMessage(); } } /** * optional .source.v1.Handshake handshake = 2; */ public Builder setHandshake(io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake value) { if (handshakeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } handshake_ = value; onChanged(); } else { handshakeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .source.v1.Handshake handshake = 2; */ public Builder setHandshake( io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder builderForValue) { if (handshakeBuilder_ == null) { handshake_ = builderForValue.build(); onChanged(); } else { handshakeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .source.v1.Handshake handshake = 2; */ public Builder mergeHandshake(io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake value) { if (handshakeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && handshake_ != null && handshake_ != io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance()) { handshake_ = io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.newBuilder(handshake_).mergeFrom(value).buildPartial(); } else { handshake_ = value; } onChanged(); } else { handshakeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .source.v1.Handshake handshake = 2; */ public Builder clearHandshake() { if (handshakeBuilder_ == null) { handshake_ = null; onChanged(); } else { handshakeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .source.v1.Handshake handshake = 2; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder getHandshakeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getHandshakeFieldBuilder().getBuilder(); } /** * optional .source.v1.Handshake handshake = 2; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder getHandshakeOrBuilder() { if (handshakeBuilder_ != null) { return handshakeBuilder_.getMessageOrBuilder(); } else { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } } /** * optional .source.v1.Handshake handshake = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake, io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder> getHandshakeFieldBuilder() { if (handshakeBuilder_ == null) { handshakeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake, io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder>( getHandshake(), getParentForChildren(), isClean()); handshake_ = null; } return handshakeBuilder_; } @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:source.v1.ReadRequest) } // @@protoc_insertion_point(class_scope:source.v1.ReadRequest) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReadRequest 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.ReadResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Required field holding the result.
     * 
* * .source.v1.ReadResponse.Result result = 1; * @return Whether the result field is set. */ boolean hasResult(); /** *
     * Required field holding the result.
     * 
* * .source.v1.ReadResponse.Result result = 1; * @return The result. */ io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result getResult(); /** *
     * Required field holding the result.
     * 
* * .source.v1.ReadResponse.Result result = 1; */ io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.ResultOrBuilder getResultOrBuilder(); /** *
     * Status of the response. Holds the end of transmission flag and the status code.
     * 
* * .source.v1.ReadResponse.Status status = 2; * @return Whether the status field is set. */ boolean hasStatus(); /** *
     * Status of the response. Holds the end of transmission flag and the status code.
     * 
* * .source.v1.ReadResponse.Status status = 2; * @return The status. */ io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status getStatus(); /** *
     * Status of the response. Holds the end of transmission flag and the status code.
     * 
* * .source.v1.ReadResponse.Status status = 2; */ io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.StatusOrBuilder getStatusOrBuilder(); /** *
     * Handshake message between client and server to indicate the start of transmission.
     * 
* * optional .source.v1.Handshake handshake = 3; * @return Whether the handshake field is set. */ boolean hasHandshake(); /** *
     * Handshake message between client and server to indicate the start of transmission.
     * 
* * optional .source.v1.Handshake handshake = 3; * @return The handshake. */ io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getHandshake(); /** *
     * Handshake message between client and server to indicate the start of transmission.
     * 
* * optional .source.v1.Handshake handshake = 3; */ io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder getHandshakeOrBuilder(); } /** *
   * ReadResponse is the response for reading datum stream from user defined source.
   * 
* * Protobuf type {@code source.v1.ReadResponse} */ public static final class ReadResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.ReadResponse) ReadResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ReadResponse.newBuilder() to construct. private ReadResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReadResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.class, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Builder.class); } public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.ReadResponse.Result) com.google.protobuf.MessageOrBuilder { /** *
       * Required field holding the payload of the datum.
       * 
* * bytes payload = 1; * @return The payload. */ com.google.protobuf.ByteString getPayload(); /** *
       * Required field indicating the offset information of the datum.
       * 
* * .source.v1.Offset offset = 2; * @return Whether the offset field is set. */ boolean hasOffset(); /** *
       * Required field indicating the offset information of the datum.
       * 
* * .source.v1.Offset offset = 2; * @return The offset. */ io.numaproj.numaflow.source.v1.SourceOuterClass.Offset getOffset(); /** *
       * Required field indicating the offset information of the datum.
       * 
* * .source.v1.Offset offset = 2; */ io.numaproj.numaflow.source.v1.SourceOuterClass.OffsetOrBuilder getOffsetOrBuilder(); /** *
       * Required field representing the time associated with each datum. It is used for watermarking.
       * 
* * .google.protobuf.Timestamp event_time = 3; * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** *
       * Required field representing the time associated with each datum. It is used for watermarking.
       * 
* * .google.protobuf.Timestamp event_time = 3; * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** *
       * Required field representing the time associated with each datum. It is used for watermarking.
       * 
* * .google.protobuf.Timestamp event_time = 3; */ com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); /** *
       * Optional list of keys associated with the datum.
       * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
       * We add this optional field to support the use case where the user defined source can provide keys for the datum.
       * e.g. Kafka and Redis Stream message usually include information about the keys.
       * 
* * repeated string keys = 4; * @return A list containing the keys. */ java.util.List getKeysList(); /** *
       * Optional list of keys associated with the datum.
       * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
       * We add this optional field to support the use case where the user defined source can provide keys for the datum.
       * e.g. Kafka and Redis Stream message usually include information about the keys.
       * 
* * repeated string keys = 4; * @return The count of keys. */ int getKeysCount(); /** *
       * Optional list of keys associated with the datum.
       * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
       * We add this optional field to support the use case where the user defined source can provide keys for the datum.
       * e.g. Kafka and Redis Stream message usually include information about the keys.
       * 
* * repeated string keys = 4; * @param index The index of the element to return. * @return The keys at the given index. */ java.lang.String getKeys(int index); /** *
       * Optional list of keys associated with the datum.
       * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
       * We add this optional field to support the use case where the user defined source can provide keys for the datum.
       * e.g. Kafka and Redis Stream message usually include information about the keys.
       * 
* * repeated string keys = 4; * @param index The index of the value to return. * @return The bytes of the keys at the given index. */ com.google.protobuf.ByteString getKeysBytes(int index); /** *
       * Optional list of headers associated with the datum.
       * Headers are the metadata associated with the datum.
       * e.g. Kafka and Redis Stream message usually include information about the headers.
       * 
* * map<string, string> headers = 5; */ int getHeadersCount(); /** *
       * Optional list of headers associated with the datum.
       * Headers are the metadata associated with the datum.
       * e.g. Kafka and Redis Stream message usually include information about the headers.
       * 
* * map<string, string> headers = 5; */ boolean containsHeaders( java.lang.String key); /** * Use {@link #getHeadersMap()} instead. */ @java.lang.Deprecated java.util.Map getHeaders(); /** *
       * Optional list of headers associated with the datum.
       * Headers are the metadata associated with the datum.
       * e.g. Kafka and Redis Stream message usually include information about the headers.
       * 
* * map<string, string> headers = 5; */ java.util.Map getHeadersMap(); /** *
       * Optional list of headers associated with the datum.
       * Headers are the metadata associated with the datum.
       * e.g. Kafka and Redis Stream message usually include information about the headers.
       * 
* * map<string, string> headers = 5; */ /* nullable */ java.lang.String getHeadersOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
       * Optional list of headers associated with the datum.
       * Headers are the metadata associated with the datum.
       * e.g. Kafka and Redis Stream message usually include information about the headers.
       * 
* * map<string, string> headers = 5; */ java.lang.String getHeadersOrThrow( java.lang.String key); } /** * Protobuf type {@code source.v1.ReadResponse.Result} */ public static final class Result extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.ReadResponse.Result) ResultOrBuilder { private static final long serialVersionUID = 0L; // Use Result.newBuilder() to construct. private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Result() { payload_ = com.google.protobuf.ByteString.EMPTY; keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Result(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_Result_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetHeaders(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.class, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; private com.google.protobuf.ByteString payload_; /** *
       * Required field holding the payload of the datum.
       * 
* * bytes payload = 1; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } public static final int OFFSET_FIELD_NUMBER = 2; private io.numaproj.numaflow.source.v1.SourceOuterClass.Offset offset_; /** *
       * Required field indicating the offset information of the datum.
       * 
* * .source.v1.Offset offset = 2; * @return Whether the offset field is set. */ @java.lang.Override public boolean hasOffset() { return offset_ != null; } /** *
       * Required field indicating the offset information of the datum.
       * 
* * .source.v1.Offset offset = 2; * @return The offset. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.Offset getOffset() { return offset_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.getDefaultInstance() : offset_; } /** *
       * Required field indicating the offset information of the datum.
       * 
* * .source.v1.Offset offset = 2; */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.OffsetOrBuilder getOffsetOrBuilder() { return getOffset(); } public static final int EVENT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp eventTime_; /** *
       * Required field representing the time associated with each datum. It is used for watermarking.
       * 
* * .google.protobuf.Timestamp event_time = 3; * @return Whether the eventTime field is set. */ @java.lang.Override public boolean hasEventTime() { return eventTime_ != null; } /** *
       * Required field representing the time associated with each datum. It is used for watermarking.
       * 
* * .google.protobuf.Timestamp event_time = 3; * @return The eventTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** *
       * Required field representing the time associated with each datum. It is used for watermarking.
       * 
* * .google.protobuf.Timestamp event_time = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { return getEventTime(); } public static final int KEYS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList keys_; /** *
       * Optional list of keys associated with the datum.
       * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
       * We add this optional field to support the use case where the user defined source can provide keys for the datum.
       * e.g. Kafka and Redis Stream message usually include information about the keys.
       * 
* * repeated string keys = 4; * @return A list containing the keys. */ public com.google.protobuf.ProtocolStringList getKeysList() { return keys_; } /** *
       * Optional list of keys associated with the datum.
       * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
       * We add this optional field to support the use case where the user defined source can provide keys for the datum.
       * e.g. Kafka and Redis Stream message usually include information about the keys.
       * 
* * repeated string keys = 4; * @return The count of keys. */ public int getKeysCount() { return keys_.size(); } /** *
       * Optional list of keys associated with the datum.
       * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
       * We add this optional field to support the use case where the user defined source can provide keys for the datum.
       * e.g. Kafka and Redis Stream message usually include information about the keys.
       * 
* * repeated string keys = 4; * @param index The index of the element to return. * @return The keys at the given index. */ public java.lang.String getKeys(int index) { return keys_.get(index); } /** *
       * Optional list of keys associated with the datum.
       * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
       * We add this optional field to support the use case where the user defined source can provide keys for the datum.
       * e.g. Kafka and Redis Stream message usually include information about the keys.
       * 
* * repeated string keys = 4; * @param index The index of the value to return. * @return The bytes of the keys at the given index. */ public com.google.protobuf.ByteString getKeysBytes(int index) { return keys_.getByteString(index); } public static final int HEADERS_FIELD_NUMBER = 5; private static final class HeadersDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_Result_HeadersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> headers_; private com.google.protobuf.MapField internalGetHeaders() { if (headers_ == null) { return com.google.protobuf.MapField.emptyMapField( HeadersDefaultEntryHolder.defaultEntry); } return headers_; } public int getHeadersCount() { return internalGetHeaders().getMap().size(); } /** *
       * Optional list of headers associated with the datum.
       * Headers are the metadata associated with the datum.
       * e.g. Kafka and Redis Stream message usually include information about the headers.
       * 
* * map<string, string> headers = 5; */ @java.lang.Override public boolean containsHeaders( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetHeaders().getMap().containsKey(key); } /** * Use {@link #getHeadersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHeaders() { return getHeadersMap(); } /** *
       * Optional list of headers associated with the datum.
       * Headers are the metadata associated with the datum.
       * e.g. Kafka and Redis Stream message usually include information about the headers.
       * 
* * map<string, string> headers = 5; */ @java.lang.Override public java.util.Map getHeadersMap() { return internalGetHeaders().getMap(); } /** *
       * Optional list of headers associated with the datum.
       * Headers are the metadata associated with the datum.
       * e.g. Kafka and Redis Stream message usually include information about the headers.
       * 
* * map<string, string> headers = 5; */ @java.lang.Override public java.lang.String getHeadersOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Optional list of headers associated with the datum.
       * Headers are the metadata associated with the datum.
       * e.g. Kafka and Redis Stream message usually include information about the headers.
       * 
* * map<string, string> headers = 5; */ @java.lang.Override public java.lang.String getHeadersOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 (!payload_.isEmpty()) { output.writeBytes(1, payload_); } if (offset_ != null) { output.writeMessage(2, getOffset()); } if (eventTime_ != null) { output.writeMessage(3, getEventTime()); } for (int i = 0; i < keys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, keys_.getRaw(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 5); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, payload_); } if (offset_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOffset()); } if (eventTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getEventTime()); } { int dataSize = 0; for (int i = 0; i < keys_.size(); i++) { dataSize += computeStringSizeNoTag(keys_.getRaw(i)); } size += dataSize; size += 1 * getKeysList().size(); } for (java.util.Map.Entry entry : internalGetHeaders().getMap().entrySet()) { com.google.protobuf.MapEntry headers__ = HeadersDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, headers__); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result other = (io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result) obj; if (!getPayload() .equals(other.getPayload())) return false; if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { if (!getOffset() .equals(other.getOffset())) return false; } if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { if (!getEventTime() .equals(other.getEventTime())) return false; } if (!getKeysList() .equals(other.getKeysList())) return false; if (!internalGetHeaders().equals( other.internalGetHeaders())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); if (hasOffset()) { hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset().hashCode(); } if (hasEventTime()) { hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; hash = (53 * hash) + getEventTime().hashCode(); } if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } if (!internalGetHeaders().getMap().isEmpty()) { hash = (37 * hash) + HEADERS_FIELD_NUMBER; hash = (53 * hash) + internalGetHeaders().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result 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(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result 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 source.v1.ReadResponse.Result} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.ReadResponse.Result) io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.ResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_Result_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetHeaders(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableHeaders(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.class, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); payload_ = com.google.protobuf.ByteString.EMPTY; if (offsetBuilder_ == null) { offset_ = null; } else { offset_ = null; offsetBuilder_ = null; } if (eventTimeBuilder_ == null) { eventTime_ = null; } else { eventTime_ = null; eventTimeBuilder_ = null; } keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableHeaders().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_Result_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result build() { io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result result = new io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result(this); int from_bitField0_ = bitField0_; result.payload_ = payload_; if (offsetBuilder_ == null) { result.offset_ = offset_; } else { result.offset_ = offsetBuilder_.build(); } if (eventTimeBuilder_ == null) { result.eventTime_ = eventTime_; } else { result.eventTime_ = eventTimeBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { keys_ = keys_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.keys_ = keys_; result.headers_ = internalGetHeaders(); result.headers_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.getDefaultInstance()) return this; if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } if (other.hasOffset()) { mergeOffset(other.getOffset()); } if (other.hasEventTime()) { mergeEventTime(other.getEventTime()); } if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } internalGetMutableHeaders().mergeFrom( other.internalGetHeaders()); 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: { payload_ = input.readBytes(); break; } // case 10 case 18: { input.readMessage( getOffsetFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { input.readMessage( getEventTimeFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureKeysIsMutable(); keys_.add(s); break; } // case 34 case 42: { com.google.protobuf.MapEntry headers__ = input.readMessage( HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableHeaders().getMutableMap().put( headers__.getKey(), headers__.getValue()); break; } // case 42 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 bitField0_; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** *
         * Required field holding the payload of the datum.
         * 
* * bytes payload = 1; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } /** *
         * Required field holding the payload of the datum.
         * 
* * bytes payload = 1; * @param value The payload to set. * @return This builder for chaining. */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /** *
         * Required field holding the payload of the datum.
         * 
* * bytes payload = 1; * @return This builder for chaining. */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } private io.numaproj.numaflow.source.v1.SourceOuterClass.Offset offset_; private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Offset, io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.OffsetOrBuilder> offsetBuilder_; /** *
         * Required field indicating the offset information of the datum.
         * 
* * .source.v1.Offset offset = 2; * @return Whether the offset field is set. */ public boolean hasOffset() { return offsetBuilder_ != null || offset_ != null; } /** *
         * Required field indicating the offset information of the datum.
         * 
* * .source.v1.Offset offset = 2; * @return The offset. */ public io.numaproj.numaflow.source.v1.SourceOuterClass.Offset getOffset() { if (offsetBuilder_ == null) { return offset_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.getDefaultInstance() : offset_; } else { return offsetBuilder_.getMessage(); } } /** *
         * Required field indicating the offset information of the datum.
         * 
* * .source.v1.Offset offset = 2; */ public Builder setOffset(io.numaproj.numaflow.source.v1.SourceOuterClass.Offset value) { if (offsetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } offset_ = value; onChanged(); } else { offsetBuilder_.setMessage(value); } return this; } /** *
         * Required field indicating the offset information of the datum.
         * 
* * .source.v1.Offset offset = 2; */ public Builder setOffset( io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder builderForValue) { if (offsetBuilder_ == null) { offset_ = builderForValue.build(); onChanged(); } else { offsetBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Required field indicating the offset information of the datum.
         * 
* * .source.v1.Offset offset = 2; */ public Builder mergeOffset(io.numaproj.numaflow.source.v1.SourceOuterClass.Offset value) { if (offsetBuilder_ == null) { if (offset_ != null) { offset_ = io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.newBuilder(offset_).mergeFrom(value).buildPartial(); } else { offset_ = value; } onChanged(); } else { offsetBuilder_.mergeFrom(value); } return this; } /** *
         * Required field indicating the offset information of the datum.
         * 
* * .source.v1.Offset offset = 2; */ public Builder clearOffset() { if (offsetBuilder_ == null) { offset_ = null; onChanged(); } else { offset_ = null; offsetBuilder_ = null; } return this; } /** *
         * Required field indicating the offset information of the datum.
         * 
* * .source.v1.Offset offset = 2; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder getOffsetBuilder() { onChanged(); return getOffsetFieldBuilder().getBuilder(); } /** *
         * Required field indicating the offset information of the datum.
         * 
* * .source.v1.Offset offset = 2; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.OffsetOrBuilder getOffsetOrBuilder() { if (offsetBuilder_ != null) { return offsetBuilder_.getMessageOrBuilder(); } else { return offset_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.getDefaultInstance() : offset_; } } /** *
         * Required field indicating the offset information of the datum.
         * 
* * .source.v1.Offset offset = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Offset, io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.OffsetOrBuilder> getOffsetFieldBuilder() { if (offsetBuilder_ == null) { offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Offset, io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.OffsetOrBuilder>( getOffset(), getParentForChildren(), isClean()); offset_ = null; } return offsetBuilder_; } private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; /** *
         * Required field representing the time associated with each datum. It is used for watermarking.
         * 
* * .google.protobuf.Timestamp event_time = 3; * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return eventTimeBuilder_ != null || eventTime_ != null; } /** *
         * Required field representing the time associated with each datum. It is used for watermarking.
         * 
* * .google.protobuf.Timestamp event_time = 3; * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { if (eventTimeBuilder_ == null) { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } else { return eventTimeBuilder_.getMessage(); } } /** *
         * Required field representing the time associated with each datum. It is used for watermarking.
         * 
* * .google.protobuf.Timestamp event_time = 3; */ public Builder setEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } eventTime_ = value; onChanged(); } else { eventTimeBuilder_.setMessage(value); } return this; } /** *
         * Required field representing the time associated with each datum. It is used for watermarking.
         * 
* * .google.protobuf.Timestamp event_time = 3; */ public Builder setEventTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (eventTimeBuilder_ == null) { eventTime_ = builderForValue.build(); onChanged(); } else { eventTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Required field representing the time associated with each datum. It is used for watermarking.
         * 
* * .google.protobuf.Timestamp event_time = 3; */ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { if (eventTime_ != null) { eventTime_ = com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial(); } else { eventTime_ = value; } onChanged(); } else { eventTimeBuilder_.mergeFrom(value); } return this; } /** *
         * Required field representing the time associated with each datum. It is used for watermarking.
         * 
* * .google.protobuf.Timestamp event_time = 3; */ public Builder clearEventTime() { if (eventTimeBuilder_ == null) { eventTime_ = null; onChanged(); } else { eventTime_ = null; eventTimeBuilder_ = null; } return this; } /** *
         * Required field representing the time associated with each datum. It is used for watermarking.
         * 
* * .google.protobuf.Timestamp event_time = 3; */ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { onChanged(); return getEventTimeFieldBuilder().getBuilder(); } /** *
         * Required field representing the time associated with each datum. It is used for watermarking.
         * 
* * .google.protobuf.Timestamp event_time = 3; */ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { if (eventTimeBuilder_ != null) { return eventTimeBuilder_.getMessageOrBuilder(); } else { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } } /** *
         * Required field representing the time associated with each datum. It is used for watermarking.
         * 
* * .google.protobuf.Timestamp event_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEventTimeFieldBuilder() { if (eventTimeBuilder_ == null) { eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getEventTime(), getParentForChildren(), isClean()); eventTime_ = null; } return eventTimeBuilder_; } private com.google.protobuf.LazyStringList keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { keys_ = new com.google.protobuf.LazyStringArrayList(keys_); bitField0_ |= 0x00000001; } } /** *
         * Optional list of keys associated with the datum.
         * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
         * We add this optional field to support the use case where the user defined source can provide keys for the datum.
         * e.g. Kafka and Redis Stream message usually include information about the keys.
         * 
* * repeated string keys = 4; * @return A list containing the keys. */ public com.google.protobuf.ProtocolStringList getKeysList() { return keys_.getUnmodifiableView(); } /** *
         * Optional list of keys associated with the datum.
         * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
         * We add this optional field to support the use case where the user defined source can provide keys for the datum.
         * e.g. Kafka and Redis Stream message usually include information about the keys.
         * 
* * repeated string keys = 4; * @return The count of keys. */ public int getKeysCount() { return keys_.size(); } /** *
         * Optional list of keys associated with the datum.
         * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
         * We add this optional field to support the use case where the user defined source can provide keys for the datum.
         * e.g. Kafka and Redis Stream message usually include information about the keys.
         * 
* * repeated string keys = 4; * @param index The index of the element to return. * @return The keys at the given index. */ public java.lang.String getKeys(int index) { return keys_.get(index); } /** *
         * Optional list of keys associated with the datum.
         * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
         * We add this optional field to support the use case where the user defined source can provide keys for the datum.
         * e.g. Kafka and Redis Stream message usually include information about the keys.
         * 
* * repeated string keys = 4; * @param index The index of the value to return. * @return The bytes of the keys at the given index. */ public com.google.protobuf.ByteString getKeysBytes(int index) { return keys_.getByteString(index); } /** *
         * Optional list of keys associated with the datum.
         * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
         * We add this optional field to support the use case where the user defined source can provide keys for the datum.
         * e.g. Kafka and Redis Stream message usually include information about the keys.
         * 
* * repeated string keys = 4; * @param index The index to set the value at. * @param value The keys to set. * @return This builder for chaining. */ public Builder setKeys( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); onChanged(); return this; } /** *
         * Optional list of keys associated with the datum.
         * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
         * We add this optional field to support the use case where the user defined source can provide keys for the datum.
         * e.g. Kafka and Redis Stream message usually include information about the keys.
         * 
* * repeated string keys = 4; * @param value The keys to add. * @return This builder for chaining. */ public Builder addKeys( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); onChanged(); return this; } /** *
         * Optional list of keys associated with the datum.
         * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
         * We add this optional field to support the use case where the user defined source can provide keys for the datum.
         * e.g. Kafka and Redis Stream message usually include information about the keys.
         * 
* * repeated string keys = 4; * @param values The keys to add. * @return This builder for chaining. */ public Builder addAllKeys( java.lang.Iterable values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); return this; } /** *
         * Optional list of keys associated with the datum.
         * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
         * We add this optional field to support the use case where the user defined source can provide keys for the datum.
         * e.g. Kafka and Redis Stream message usually include information about the keys.
         * 
* * repeated string keys = 4; * @return This builder for chaining. */ public Builder clearKeys() { keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * Optional list of keys associated with the datum.
         * Key is the "key" attribute in (key,value) as in the map-reduce paradigm.
         * We add this optional field to support the use case where the user defined source can provide keys for the datum.
         * e.g. Kafka and Redis Stream message usually include information about the keys.
         * 
* * repeated string keys = 4; * @param value The bytes of the keys to add. * @return This builder for chaining. */ public Builder addKeysBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureKeysIsMutable(); keys_.add(value); onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> headers_; private com.google.protobuf.MapField internalGetHeaders() { if (headers_ == null) { return com.google.protobuf.MapField.emptyMapField( HeadersDefaultEntryHolder.defaultEntry); } return headers_; } private com.google.protobuf.MapField internalGetMutableHeaders() { onChanged();; if (headers_ == null) { headers_ = com.google.protobuf.MapField.newMapField( HeadersDefaultEntryHolder.defaultEntry); } if (!headers_.isMutable()) { headers_ = headers_.copy(); } return headers_; } public int getHeadersCount() { return internalGetHeaders().getMap().size(); } /** *
         * Optional list of headers associated with the datum.
         * Headers are the metadata associated with the datum.
         * e.g. Kafka and Redis Stream message usually include information about the headers.
         * 
* * map<string, string> headers = 5; */ @java.lang.Override public boolean containsHeaders( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetHeaders().getMap().containsKey(key); } /** * Use {@link #getHeadersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHeaders() { return getHeadersMap(); } /** *
         * Optional list of headers associated with the datum.
         * Headers are the metadata associated with the datum.
         * e.g. Kafka and Redis Stream message usually include information about the headers.
         * 
* * map<string, string> headers = 5; */ @java.lang.Override public java.util.Map getHeadersMap() { return internalGetHeaders().getMap(); } /** *
         * Optional list of headers associated with the datum.
         * Headers are the metadata associated with the datum.
         * e.g. Kafka and Redis Stream message usually include information about the headers.
         * 
* * map<string, string> headers = 5; */ @java.lang.Override public java.lang.String getHeadersOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
         * Optional list of headers associated with the datum.
         * Headers are the metadata associated with the datum.
         * e.g. Kafka and Redis Stream message usually include information about the headers.
         * 
* * map<string, string> headers = 5; */ @java.lang.Override public java.lang.String getHeadersOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearHeaders() { internalGetMutableHeaders().getMutableMap() .clear(); return this; } /** *
         * Optional list of headers associated with the datum.
         * Headers are the metadata associated with the datum.
         * e.g. Kafka and Redis Stream message usually include information about the headers.
         * 
* * map<string, string> headers = 5; */ public Builder removeHeaders( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableHeaders().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableHeaders() { return internalGetMutableHeaders().getMutableMap(); } /** *
         * Optional list of headers associated with the datum.
         * Headers are the metadata associated with the datum.
         * e.g. Kafka and Redis Stream message usually include information about the headers.
         * 
* * map<string, string> headers = 5; */ public Builder putHeaders( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableHeaders().getMutableMap() .put(key, value); return this; } /** *
         * Optional list of headers associated with the datum.
         * Headers are the metadata associated with the datum.
         * e.g. Kafka and Redis Stream message usually include information about the headers.
         * 
* * map<string, string> headers = 5; */ public Builder putAllHeaders( java.util.Map values) { internalGetMutableHeaders().getMutableMap() .putAll(values); return this; } @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:source.v1.ReadResponse.Result) } // @@protoc_insertion_point(class_scope:source.v1.ReadResponse.Result) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Result 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StatusOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.ReadResponse.Status) com.google.protobuf.MessageOrBuilder { /** *
       * End of transmission flag.
       * 
* * bool eot = 1; * @return The eot. */ boolean getEot(); /** * .source.v1.ReadResponse.Status.Code code = 2; * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** * .source.v1.ReadResponse.Status.Code code = 2; * @return The code. */ io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Code getCode(); /** * optional .source.v1.ReadResponse.Status.Error error = 3; * @return Whether the error field is set. */ boolean hasError(); /** * optional .source.v1.ReadResponse.Status.Error error = 3; * @return The enum numeric value on the wire for error. */ int getErrorValue(); /** * optional .source.v1.ReadResponse.Status.Error error = 3; * @return The error. */ io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Error getError(); /** * optional string msg = 4; * @return Whether the msg field is set. */ boolean hasMsg(); /** * optional string msg = 4; * @return The msg. */ java.lang.String getMsg(); /** * optional string msg = 4; * @return The bytes for msg. */ com.google.protobuf.ByteString getMsgBytes(); } /** * Protobuf type {@code source.v1.ReadResponse.Status} */ public static final class Status extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.ReadResponse.Status) StatusOrBuilder { private static final long serialVersionUID = 0L; // Use Status.newBuilder() to construct. private Status(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Status() { code_ = 0; error_ = 0; msg_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Status(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_Status_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_Status_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.class, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Builder.class); } /** *
       * Code to indicate the status of the response.
       * 
* * Protobuf enum {@code source.v1.ReadResponse.Status.Code} */ public enum Code implements com.google.protobuf.ProtocolMessageEnum { /** * SUCCESS = 0; */ SUCCESS(0), /** * FAILURE = 1; */ FAILURE(1), UNRECOGNIZED(-1), ; /** * SUCCESS = 0; */ public static final int SUCCESS_VALUE = 0; /** * FAILURE = 1; */ public static final int FAILURE_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Code valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Code forNumber(int value) { switch (value) { case 0: return SUCCESS; case 1: return FAILURE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Code> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Code findValueByNumber(int number) { return Code.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); public static Code valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Code(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:source.v1.ReadResponse.Status.Code) } /** *
       * Error to indicate the error type. If the code is FAILURE, then the error field will be populated.
       * 
* * Protobuf enum {@code source.v1.ReadResponse.Status.Error} */ public enum Error implements com.google.protobuf.ProtocolMessageEnum { /** * UNACKED = 0; */ UNACKED(0), /** * OTHER = 1; */ OTHER(1), UNRECOGNIZED(-1), ; /** * UNACKED = 0; */ public static final int UNACKED_VALUE = 0; /** * OTHER = 1; */ public static final int OTHER_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Error valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Error forNumber(int value) { switch (value) { case 0: return UNACKED; case 1: return OTHER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Error> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Error findValueByNumber(int number) { return Error.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.getDescriptor().getEnumTypes().get(1); } private static final Error[] VALUES = values(); public static Error valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Error(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:source.v1.ReadResponse.Status.Error) } private int bitField0_; public static final int EOT_FIELD_NUMBER = 1; private boolean eot_; /** *
       * End of transmission flag.
       * 
* * bool eot = 1; * @return The eot. */ @java.lang.Override public boolean getEot() { return eot_; } public static final int CODE_FIELD_NUMBER = 2; private int code_; /** * .source.v1.ReadResponse.Status.Code code = 2; * @return The enum numeric value on the wire for code. */ @java.lang.Override public int getCodeValue() { return code_; } /** * .source.v1.ReadResponse.Status.Code code = 2; * @return The code. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Code getCode() { @SuppressWarnings("deprecation") io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Code result = io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Code.valueOf(code_); return result == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Code.UNRECOGNIZED : result; } public static final int ERROR_FIELD_NUMBER = 3; private int error_; /** * optional .source.v1.ReadResponse.Status.Error error = 3; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .source.v1.ReadResponse.Status.Error error = 3; * @return The enum numeric value on the wire for error. */ @java.lang.Override public int getErrorValue() { return error_; } /** * optional .source.v1.ReadResponse.Status.Error error = 3; * @return The error. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Error getError() { @SuppressWarnings("deprecation") io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Error result = io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Error.valueOf(error_); return result == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Error.UNRECOGNIZED : result; } public static final int MSG_FIELD_NUMBER = 4; private volatile java.lang.Object msg_; /** * optional string msg = 4; * @return Whether the msg field is set. */ @java.lang.Override public boolean hasMsg() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string msg = 4; * @return The msg. */ @java.lang.Override public java.lang.String getMsg() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); msg_ = s; return s; } } /** * optional string msg = 4; * @return The bytes for msg. */ @java.lang.Override public com.google.protobuf.ByteString getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (eot_ != false) { output.writeBool(1, eot_); } if (code_ != io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Code.SUCCESS.getNumber()) { output.writeEnum(2, code_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(3, error_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, msg_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (eot_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, eot_); } if (code_ != io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Code.SUCCESS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, code_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, error_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, msg_); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status other = (io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status) obj; if (getEot() != other.getEot()) return false; if (code_ != other.code_) return false; if (hasError() != other.hasError()) return false; if (hasError()) { if (error_ != other.error_) return false; } if (hasMsg() != other.hasMsg()) return false; if (hasMsg()) { if (!getMsg() .equals(other.getMsg())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EOT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEot()); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + code_; if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + error_; } if (hasMsg()) { hash = (37 * hash) + MSG_FIELD_NUMBER; hash = (53 * hash) + getMsg().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status 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(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status 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 source.v1.ReadResponse.Status} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.ReadResponse.Status) io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.StatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_Status_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_Status_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.class, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); eot_ = false; code_ = 0; error_ = 0; bitField0_ = (bitField0_ & ~0x00000001); msg_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_Status_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status build() { io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status result = new io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.eot_ = eot_; result.code_ = code_; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.error_ = error_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.msg_ = msg_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.getDefaultInstance()) return this; if (other.getEot() != false) { setEot(other.getEot()); } if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } if (other.hasError()) { setError(other.getError()); } if (other.hasMsg()) { bitField0_ |= 0x00000002; msg_ = other.msg_; onChanged(); } 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 8: { eot_ = input.readBool(); break; } // case 8 case 16: { code_ = input.readEnum(); break; } // case 16 case 24: { error_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 24 case 34: { msg_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 34 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 bitField0_; private boolean eot_ ; /** *
         * End of transmission flag.
         * 
* * bool eot = 1; * @return The eot. */ @java.lang.Override public boolean getEot() { return eot_; } /** *
         * End of transmission flag.
         * 
* * bool eot = 1; * @param value The eot to set. * @return This builder for chaining. */ public Builder setEot(boolean value) { eot_ = value; onChanged(); return this; } /** *
         * End of transmission flag.
         * 
* * bool eot = 1; * @return This builder for chaining. */ public Builder clearEot() { eot_ = false; onChanged(); return this; } private int code_ = 0; /** * .source.v1.ReadResponse.Status.Code code = 2; * @return The enum numeric value on the wire for code. */ @java.lang.Override public int getCodeValue() { return code_; } /** * .source.v1.ReadResponse.Status.Code code = 2; * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { code_ = value; onChanged(); return this; } /** * .source.v1.ReadResponse.Status.Code code = 2; * @return The code. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Code getCode() { @SuppressWarnings("deprecation") io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Code result = io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Code.valueOf(code_); return result == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Code.UNRECOGNIZED : result; } /** * .source.v1.ReadResponse.Status.Code code = 2; * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Code value) { if (value == null) { throw new NullPointerException(); } code_ = value.getNumber(); onChanged(); return this; } /** * .source.v1.ReadResponse.Status.Code code = 2; * @return This builder for chaining. */ public Builder clearCode() { code_ = 0; onChanged(); return this; } private int error_ = 0; /** * optional .source.v1.ReadResponse.Status.Error error = 3; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .source.v1.ReadResponse.Status.Error error = 3; * @return The enum numeric value on the wire for error. */ @java.lang.Override public int getErrorValue() { return error_; } /** * optional .source.v1.ReadResponse.Status.Error error = 3; * @param value The enum numeric value on the wire for error to set. * @return This builder for chaining. */ public Builder setErrorValue(int value) { bitField0_ |= 0x00000001; error_ = value; onChanged(); return this; } /** * optional .source.v1.ReadResponse.Status.Error error = 3; * @return The error. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Error getError() { @SuppressWarnings("deprecation") io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Error result = io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Error.valueOf(error_); return result == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Error.UNRECOGNIZED : result; } /** * optional .source.v1.ReadResponse.Status.Error error = 3; * @param value The error to set. * @return This builder for chaining. */ public Builder setError(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Error value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; error_ = value.getNumber(); onChanged(); return this; } /** * optional .source.v1.ReadResponse.Status.Error error = 3; * @return This builder for chaining. */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000001); error_ = 0; onChanged(); return this; } private java.lang.Object msg_ = ""; /** * optional string msg = 4; * @return Whether the msg field is set. */ public boolean hasMsg() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string msg = 4; * @return The msg. */ public java.lang.String getMsg() { java.lang.Object ref = msg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); msg_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string msg = 4; * @return The bytes for msg. */ public com.google.protobuf.ByteString getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string msg = 4; * @param value The msg to set. * @return This builder for chaining. */ public Builder setMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; msg_ = value; onChanged(); return this; } /** * optional string msg = 4; * @return This builder for chaining. */ public Builder clearMsg() { bitField0_ = (bitField0_ & ~0x00000002); msg_ = getDefaultInstance().getMsg(); onChanged(); return this; } /** * optional string msg = 4; * @param value The bytes for msg to set. * @return This builder for chaining. */ public Builder setMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000002; msg_ = value; onChanged(); return this; } @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:source.v1.ReadResponse.Status) } // @@protoc_insertion_point(class_scope:source.v1.ReadResponse.Status) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Status 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int RESULT_FIELD_NUMBER = 1; private io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result result_; /** *
     * Required field holding the result.
     * 
* * .source.v1.ReadResponse.Result result = 1; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return result_ != null; } /** *
     * Required field holding the result.
     * 
* * .source.v1.ReadResponse.Result result = 1; * @return The result. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result getResult() { return result_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.getDefaultInstance() : result_; } /** *
     * Required field holding the result.
     * 
* * .source.v1.ReadResponse.Result result = 1; */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.ResultOrBuilder getResultOrBuilder() { return getResult(); } public static final int STATUS_FIELD_NUMBER = 2; private io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status status_; /** *
     * Status of the response. Holds the end of transmission flag and the status code.
     * 
* * .source.v1.ReadResponse.Status status = 2; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return status_ != null; } /** *
     * Status of the response. Holds the end of transmission flag and the status code.
     * 
* * .source.v1.ReadResponse.Status status = 2; * @return The status. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status getStatus() { return status_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.getDefaultInstance() : status_; } /** *
     * Status of the response. Holds the end of transmission flag and the status code.
     * 
* * .source.v1.ReadResponse.Status status = 2; */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.StatusOrBuilder getStatusOrBuilder() { return getStatus(); } public static final int HANDSHAKE_FIELD_NUMBER = 3; private io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake handshake_; /** *
     * Handshake message between client and server to indicate the start of transmission.
     * 
* * optional .source.v1.Handshake handshake = 3; * @return Whether the handshake field is set. */ @java.lang.Override public boolean hasHandshake() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Handshake message between client and server to indicate the start of transmission.
     * 
* * optional .source.v1.Handshake handshake = 3; * @return The handshake. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getHandshake() { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } /** *
     * Handshake message between client and server to indicate the start of transmission.
     * 
* * optional .source.v1.Handshake handshake = 3; */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder getHandshakeOrBuilder() { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } 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 (result_ != null) { output.writeMessage(1, getResult()); } if (status_ != null) { output.writeMessage(2, getStatus()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getHandshake()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResult()); } if (status_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStatus()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getHandshake()); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse other = (io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse) obj; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (hasHandshake() != other.hasHandshake()) return false; if (hasHandshake()) { if (!getHandshake() .equals(other.getHandshake())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasHandshake()) { hash = (37 * hash) + HANDSHAKE_FIELD_NUMBER; hash = (53 * hash) + getHandshake().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse 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(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse 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; } /** *
     * ReadResponse is the response for reading datum stream from user defined source.
     * 
* * Protobuf type {@code source.v1.ReadResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.ReadResponse) io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.class, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHandshakeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } if (statusBuilder_ == null) { status_ = null; } else { status_ = null; statusBuilder_ = null; } if (handshakeBuilder_ == null) { handshake_ = null; } else { handshakeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadResponse_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse build() { io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse result = new io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } if (((from_bitField0_ & 0x00000001) != 0)) { if (handshakeBuilder_ == null) { result.handshake_ = handshake_; } else { result.handshake_ = handshakeBuilder_.build(); } to_bitField0_ |= 0x00000001; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.getDefaultInstance()) return this; if (other.hasResult()) { mergeResult(other.getResult()); } if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (other.hasHandshake()) { mergeHandshake(other.getHandshake()); } 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( getResultFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getStatusFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { input.readMessage( getHandshakeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 26 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 bitField0_; private io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result result_; private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.ResultOrBuilder> resultBuilder_; /** *
       * Required field holding the result.
       * 
* * .source.v1.ReadResponse.Result result = 1; * @return Whether the result field is set. */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** *
       * Required field holding the result.
       * 
* * .source.v1.ReadResponse.Result result = 1; * @return The result. */ public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result getResult() { if (resultBuilder_ == null) { return result_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** *
       * Required field holding the result.
       * 
* * .source.v1.ReadResponse.Result result = 1; */ public Builder setResult(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultBuilder_.setMessage(value); } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.ReadResponse.Result result = 1; */ public Builder setResult( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.ReadResponse.Result result = 1; */ public Builder mergeResult(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.ReadResponse.Result result = 1; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.ReadResponse.Result result = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** *
       * Required field holding the result.
       * 
* * .source.v1.ReadResponse.Result result = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.ResultOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.getDefaultInstance() : result_; } } /** *
       * Required field holding the result.
       * 
* * .source.v1.ReadResponse.Result result = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.ResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Result.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.ResultOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status status_; private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.StatusOrBuilder> statusBuilder_; /** *
       * Status of the response. Holds the end of transmission flag and the status code.
       * 
* * .source.v1.ReadResponse.Status status = 2; * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** *
       * Status of the response. Holds the end of transmission flag and the status code.
       * 
* * .source.v1.ReadResponse.Status status = 2; * @return The status. */ public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** *
       * Status of the response. Holds the end of transmission flag and the status code.
       * 
* * .source.v1.ReadResponse.Status status = 2; */ public Builder setStatus(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } return this; } /** *
       * Status of the response. Holds the end of transmission flag and the status code.
       * 
* * .source.v1.ReadResponse.Status status = 2; */ public Builder setStatus( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Status of the response. Holds the end of transmission flag and the status code.
       * 
* * .source.v1.ReadResponse.Status status = 2; */ public Builder mergeStatus(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } return this; } /** *
       * Status of the response. Holds the end of transmission flag and the status code.
       * 
* * .source.v1.ReadResponse.Status status = 2; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { status_ = null; statusBuilder_ = null; } return this; } /** *
       * Status of the response. Holds the end of transmission flag and the status code.
       * 
* * .source.v1.ReadResponse.Status status = 2; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Builder getStatusBuilder() { onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
       * Status of the response. Holds the end of transmission flag and the status code.
       * 
* * .source.v1.ReadResponse.Status status = 2; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.getDefaultInstance() : status_; } } /** *
       * Status of the response. Holds the end of transmission flag and the status code.
       * 
* * .source.v1.ReadResponse.Status status = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.Status.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse.StatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake handshake_; private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake, io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder> handshakeBuilder_; /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 3; * @return Whether the handshake field is set. */ public boolean hasHandshake() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 3; * @return The handshake. */ public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getHandshake() { if (handshakeBuilder_ == null) { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } else { return handshakeBuilder_.getMessage(); } } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 3; */ public Builder setHandshake(io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake value) { if (handshakeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } handshake_ = value; onChanged(); } else { handshakeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 3; */ public Builder setHandshake( io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder builderForValue) { if (handshakeBuilder_ == null) { handshake_ = builderForValue.build(); onChanged(); } else { handshakeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 3; */ public Builder mergeHandshake(io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake value) { if (handshakeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && handshake_ != null && handshake_ != io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance()) { handshake_ = io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.newBuilder(handshake_).mergeFrom(value).buildPartial(); } else { handshake_ = value; } onChanged(); } else { handshakeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 3; */ public Builder clearHandshake() { if (handshakeBuilder_ == null) { handshake_ = null; onChanged(); } else { handshakeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 3; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder getHandshakeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getHandshakeFieldBuilder().getBuilder(); } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 3; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder getHandshakeOrBuilder() { if (handshakeBuilder_ != null) { return handshakeBuilder_.getMessageOrBuilder(); } else { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake, io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder> getHandshakeFieldBuilder() { if (handshakeBuilder_ == null) { handshakeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake, io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder>( getHandshake(), getParentForChildren(), isClean()); handshake_ = null; } return handshakeBuilder_; } @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:source.v1.ReadResponse) } // @@protoc_insertion_point(class_scope:source.v1.ReadResponse) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReadResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AckRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.AckRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
     * 
* * .source.v1.AckRequest.Request request = 1; * @return Whether the request field is set. */ boolean hasRequest(); /** *
     * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
     * 
* * .source.v1.AckRequest.Request request = 1; * @return The request. */ io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request getRequest(); /** *
     * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
     * 
* * .source.v1.AckRequest.Request request = 1; */ io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.RequestOrBuilder getRequestOrBuilder(); /** * optional .source.v1.Handshake handshake = 2; * @return Whether the handshake field is set. */ boolean hasHandshake(); /** * optional .source.v1.Handshake handshake = 2; * @return The handshake. */ io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getHandshake(); /** * optional .source.v1.Handshake handshake = 2; */ io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder getHandshakeOrBuilder(); } /** *
   * AckRequest is the request for acknowledging datum.
   * It takes a list of offsets to be acknowledged.
   * 
* * Protobuf type {@code source.v1.AckRequest} */ public static final class AckRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.AckRequest) AckRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AckRequest.newBuilder() to construct. private AckRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AckRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AckRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.class, io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Builder.class); } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.AckRequest.Request) com.google.protobuf.MessageOrBuilder { /** *
       * Required field holding the offsets to be acked
       * 
* * repeated .source.v1.Offset offsets = 1; */ java.util.List getOffsetsList(); /** *
       * Required field holding the offsets to be acked
       * 
* * repeated .source.v1.Offset offsets = 1; */ io.numaproj.numaflow.source.v1.SourceOuterClass.Offset getOffsets(int index); /** *
       * Required field holding the offsets to be acked
       * 
* * repeated .source.v1.Offset offsets = 1; */ int getOffsetsCount(); /** *
       * Required field holding the offsets to be acked
       * 
* * repeated .source.v1.Offset offsets = 1; */ java.util.List getOffsetsOrBuilderList(); /** *
       * Required field holding the offsets to be acked
       * 
* * repeated .source.v1.Offset offsets = 1; */ io.numaproj.numaflow.source.v1.SourceOuterClass.OffsetOrBuilder getOffsetsOrBuilder( int index); } /** * Protobuf type {@code source.v1.AckRequest.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.AckRequest.Request) RequestOrBuilder { private static final long serialVersionUID = 0L; // Use Request.newBuilder() to construct. private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Request() { offsets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Request(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckRequest_Request_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckRequest_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.class, io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.Builder.class); } public static final int OFFSETS_FIELD_NUMBER = 1; private java.util.List offsets_; /** *
       * Required field holding the offsets to be acked
       * 
* * repeated .source.v1.Offset offsets = 1; */ @java.lang.Override public java.util.List getOffsetsList() { return offsets_; } /** *
       * Required field holding the offsets to be acked
       * 
* * repeated .source.v1.Offset offsets = 1; */ @java.lang.Override public java.util.List getOffsetsOrBuilderList() { return offsets_; } /** *
       * Required field holding the offsets to be acked
       * 
* * repeated .source.v1.Offset offsets = 1; */ @java.lang.Override public int getOffsetsCount() { return offsets_.size(); } /** *
       * Required field holding the offsets to be acked
       * 
* * repeated .source.v1.Offset offsets = 1; */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.Offset getOffsets(int index) { return offsets_.get(index); } /** *
       * Required field holding the offsets to be acked
       * 
* * repeated .source.v1.Offset offsets = 1; */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.OffsetOrBuilder getOffsetsOrBuilder( int index) { return offsets_.get(index); } 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 { for (int i = 0; i < offsets_.size(); i++) { output.writeMessage(1, offsets_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < offsets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, offsets_.get(i)); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request other = (io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request) obj; if (!getOffsetsList() .equals(other.getOffsetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getOffsetsCount() > 0) { hash = (37 * hash) + OFFSETS_FIELD_NUMBER; hash = (53 * hash) + getOffsetsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request 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(io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request 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 source.v1.AckRequest.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.AckRequest.Request) io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckRequest_Request_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckRequest_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.class, io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (offsetsBuilder_ == null) { offsets_ = java.util.Collections.emptyList(); } else { offsets_ = null; offsetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckRequest_Request_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request build() { io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request result = new io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request(this); int from_bitField0_ = bitField0_; if (offsetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { offsets_ = java.util.Collections.unmodifiableList(offsets_); bitField0_ = (bitField0_ & ~0x00000001); } result.offsets_ = offsets_; } else { result.offsets_ = offsetsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.getDefaultInstance()) return this; if (offsetsBuilder_ == null) { if (!other.offsets_.isEmpty()) { if (offsets_.isEmpty()) { offsets_ = other.offsets_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOffsetsIsMutable(); offsets_.addAll(other.offsets_); } onChanged(); } } else { if (!other.offsets_.isEmpty()) { if (offsetsBuilder_.isEmpty()) { offsetsBuilder_.dispose(); offsetsBuilder_ = null; offsets_ = other.offsets_; bitField0_ = (bitField0_ & ~0x00000001); offsetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOffsetsFieldBuilder() : null; } else { offsetsBuilder_.addAllMessages(other.offsets_); } } } 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: { io.numaproj.numaflow.source.v1.SourceOuterClass.Offset m = input.readMessage( io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.parser(), extensionRegistry); if (offsetsBuilder_ == null) { ensureOffsetsIsMutable(); offsets_.add(m); } else { offsetsBuilder_.addMessage(m); } break; } // case 10 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 bitField0_; private java.util.List offsets_ = java.util.Collections.emptyList(); private void ensureOffsetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { offsets_ = new java.util.ArrayList(offsets_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Offset, io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.OffsetOrBuilder> offsetsBuilder_; /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public java.util.List getOffsetsList() { if (offsetsBuilder_ == null) { return java.util.Collections.unmodifiableList(offsets_); } else { return offsetsBuilder_.getMessageList(); } } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public int getOffsetsCount() { if (offsetsBuilder_ == null) { return offsets_.size(); } else { return offsetsBuilder_.getCount(); } } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.Offset getOffsets(int index) { if (offsetsBuilder_ == null) { return offsets_.get(index); } else { return offsetsBuilder_.getMessage(index); } } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public Builder setOffsets( int index, io.numaproj.numaflow.source.v1.SourceOuterClass.Offset value) { if (offsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOffsetsIsMutable(); offsets_.set(index, value); onChanged(); } else { offsetsBuilder_.setMessage(index, value); } return this; } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public Builder setOffsets( int index, io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder builderForValue) { if (offsetsBuilder_ == null) { ensureOffsetsIsMutable(); offsets_.set(index, builderForValue.build()); onChanged(); } else { offsetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public Builder addOffsets(io.numaproj.numaflow.source.v1.SourceOuterClass.Offset value) { if (offsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOffsetsIsMutable(); offsets_.add(value); onChanged(); } else { offsetsBuilder_.addMessage(value); } return this; } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public Builder addOffsets( int index, io.numaproj.numaflow.source.v1.SourceOuterClass.Offset value) { if (offsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOffsetsIsMutable(); offsets_.add(index, value); onChanged(); } else { offsetsBuilder_.addMessage(index, value); } return this; } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public Builder addOffsets( io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder builderForValue) { if (offsetsBuilder_ == null) { ensureOffsetsIsMutable(); offsets_.add(builderForValue.build()); onChanged(); } else { offsetsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public Builder addOffsets( int index, io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder builderForValue) { if (offsetsBuilder_ == null) { ensureOffsetsIsMutable(); offsets_.add(index, builderForValue.build()); onChanged(); } else { offsetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public Builder addAllOffsets( java.lang.Iterable values) { if (offsetsBuilder_ == null) { ensureOffsetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, offsets_); onChanged(); } else { offsetsBuilder_.addAllMessages(values); } return this; } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public Builder clearOffsets() { if (offsetsBuilder_ == null) { offsets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { offsetsBuilder_.clear(); } return this; } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public Builder removeOffsets(int index) { if (offsetsBuilder_ == null) { ensureOffsetsIsMutable(); offsets_.remove(index); onChanged(); } else { offsetsBuilder_.remove(index); } return this; } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder getOffsetsBuilder( int index) { return getOffsetsFieldBuilder().getBuilder(index); } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.OffsetOrBuilder getOffsetsOrBuilder( int index) { if (offsetsBuilder_ == null) { return offsets_.get(index); } else { return offsetsBuilder_.getMessageOrBuilder(index); } } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public java.util.List getOffsetsOrBuilderList() { if (offsetsBuilder_ != null) { return offsetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(offsets_); } } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder addOffsetsBuilder() { return getOffsetsFieldBuilder().addBuilder( io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.getDefaultInstance()); } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder addOffsetsBuilder( int index) { return getOffsetsFieldBuilder().addBuilder( index, io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.getDefaultInstance()); } /** *
         * Required field holding the offsets to be acked
         * 
* * repeated .source.v1.Offset offsets = 1; */ public java.util.List getOffsetsBuilderList() { return getOffsetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Offset, io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.OffsetOrBuilder> getOffsetsFieldBuilder() { if (offsetsBuilder_ == null) { offsetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Offset, io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.OffsetOrBuilder>( offsets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); offsets_ = null; } return offsetsBuilder_; } @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:source.v1.AckRequest.Request) } // @@protoc_insertion_point(class_scope:source.v1.AckRequest.Request) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Request 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int REQUEST_FIELD_NUMBER = 1; private io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request request_; /** *
     * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
     * 
* * .source.v1.AckRequest.Request request = 1; * @return Whether the request field is set. */ @java.lang.Override public boolean hasRequest() { return request_ != null; } /** *
     * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
     * 
* * .source.v1.AckRequest.Request request = 1; * @return The request. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request getRequest() { return request_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.getDefaultInstance() : request_; } /** *
     * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
     * 
* * .source.v1.AckRequest.Request request = 1; */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.RequestOrBuilder getRequestOrBuilder() { return getRequest(); } public static final int HANDSHAKE_FIELD_NUMBER = 2; private io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake handshake_; /** * optional .source.v1.Handshake handshake = 2; * @return Whether the handshake field is set. */ @java.lang.Override public boolean hasHandshake() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .source.v1.Handshake handshake = 2; * @return The handshake. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getHandshake() { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } /** * optional .source.v1.Handshake handshake = 2; */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder getHandshakeOrBuilder() { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } 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 (request_ != null) { output.writeMessage(1, getRequest()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getHandshake()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (request_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequest()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getHandshake()); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest other = (io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest) obj; if (hasRequest() != other.hasRequest()) return false; if (hasRequest()) { if (!getRequest() .equals(other.getRequest())) return false; } if (hasHandshake() != other.hasHandshake()) return false; if (hasHandshake()) { if (!getHandshake() .equals(other.getHandshake())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRequest()) { hash = (37 * hash) + REQUEST_FIELD_NUMBER; hash = (53 * hash) + getRequest().hashCode(); } if (hasHandshake()) { hash = (37 * hash) + HANDSHAKE_FIELD_NUMBER; hash = (53 * hash) + getHandshake().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest 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(io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest 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; } /** *
     * AckRequest is the request for acknowledging datum.
     * It takes a list of offsets to be acknowledged.
     * 
* * Protobuf type {@code source.v1.AckRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.AckRequest) io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.class, io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHandshakeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (requestBuilder_ == null) { request_ = null; } else { request_ = null; requestBuilder_ = null; } if (handshakeBuilder_ == null) { handshake_ = null; } else { handshakeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckRequest_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest build() { io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest result = new io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (requestBuilder_ == null) { result.request_ = request_; } else { result.request_ = requestBuilder_.build(); } if (((from_bitField0_ & 0x00000001) != 0)) { if (handshakeBuilder_ == null) { result.handshake_ = handshake_; } else { result.handshake_ = handshakeBuilder_.build(); } to_bitField0_ |= 0x00000001; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.getDefaultInstance()) return this; if (other.hasRequest()) { mergeRequest(other.getRequest()); } if (other.hasHandshake()) { mergeHandshake(other.getHandshake()); } 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( getRequestFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getHandshakeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 18 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 bitField0_; private io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request request_; private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request, io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.RequestOrBuilder> requestBuilder_; /** *
       * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
       * 
* * .source.v1.AckRequest.Request request = 1; * @return Whether the request field is set. */ public boolean hasRequest() { return requestBuilder_ != null || request_ != null; } /** *
       * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
       * 
* * .source.v1.AckRequest.Request request = 1; * @return The request. */ public io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request getRequest() { if (requestBuilder_ == null) { return request_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.getDefaultInstance() : request_; } else { return requestBuilder_.getMessage(); } } /** *
       * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
       * 
* * .source.v1.AckRequest.Request request = 1; */ public Builder setRequest(io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request value) { if (requestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { requestBuilder_.setMessage(value); } return this; } /** *
       * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
       * 
* * .source.v1.AckRequest.Request request = 1; */ public Builder setRequest( io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.Builder builderForValue) { if (requestBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { requestBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
       * 
* * .source.v1.AckRequest.Request request = 1; */ public Builder mergeRequest(io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request value) { if (requestBuilder_ == null) { if (request_ != null) { request_ = io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.newBuilder(request_).mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { requestBuilder_.mergeFrom(value); } return this; } /** *
       * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
       * 
* * .source.v1.AckRequest.Request request = 1; */ public Builder clearRequest() { if (requestBuilder_ == null) { request_ = null; onChanged(); } else { request_ = null; requestBuilder_ = null; } return this; } /** *
       * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
       * 
* * .source.v1.AckRequest.Request request = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.Builder getRequestBuilder() { onChanged(); return getRequestFieldBuilder().getBuilder(); } /** *
       * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
       * 
* * .source.v1.AckRequest.Request request = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.RequestOrBuilder getRequestOrBuilder() { if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilder(); } else { return request_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.getDefaultInstance() : request_; } } /** *
       * Required field holding the request. The list will be ordered and will have the same order as the original Read response.
       * 
* * .source.v1.AckRequest.Request request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request, io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.RequestOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request, io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.Request.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest.RequestOrBuilder>( getRequest(), getParentForChildren(), isClean()); request_ = null; } return requestBuilder_; } private io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake handshake_; private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake, io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder> handshakeBuilder_; /** * optional .source.v1.Handshake handshake = 2; * @return Whether the handshake field is set. */ public boolean hasHandshake() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .source.v1.Handshake handshake = 2; * @return The handshake. */ public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getHandshake() { if (handshakeBuilder_ == null) { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } else { return handshakeBuilder_.getMessage(); } } /** * optional .source.v1.Handshake handshake = 2; */ public Builder setHandshake(io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake value) { if (handshakeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } handshake_ = value; onChanged(); } else { handshakeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .source.v1.Handshake handshake = 2; */ public Builder setHandshake( io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder builderForValue) { if (handshakeBuilder_ == null) { handshake_ = builderForValue.build(); onChanged(); } else { handshakeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .source.v1.Handshake handshake = 2; */ public Builder mergeHandshake(io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake value) { if (handshakeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && handshake_ != null && handshake_ != io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance()) { handshake_ = io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.newBuilder(handshake_).mergeFrom(value).buildPartial(); } else { handshake_ = value; } onChanged(); } else { handshakeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .source.v1.Handshake handshake = 2; */ public Builder clearHandshake() { if (handshakeBuilder_ == null) { handshake_ = null; onChanged(); } else { handshakeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .source.v1.Handshake handshake = 2; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder getHandshakeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getHandshakeFieldBuilder().getBuilder(); } /** * optional .source.v1.Handshake handshake = 2; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder getHandshakeOrBuilder() { if (handshakeBuilder_ != null) { return handshakeBuilder_.getMessageOrBuilder(); } else { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } } /** * optional .source.v1.Handshake handshake = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake, io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder> getHandshakeFieldBuilder() { if (handshakeBuilder_ == null) { handshakeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake, io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder>( getHandshake(), getParentForChildren(), isClean()); handshake_ = null; } return handshakeBuilder_; } @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:source.v1.AckRequest) } // @@protoc_insertion_point(class_scope:source.v1.AckRequest) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AckRequest 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AckResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.AckResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Required field holding the result.
     * 
* * .source.v1.AckResponse.Result result = 1; * @return Whether the result field is set. */ boolean hasResult(); /** *
     * Required field holding the result.
     * 
* * .source.v1.AckResponse.Result result = 1; * @return The result. */ io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result getResult(); /** *
     * Required field holding the result.
     * 
* * .source.v1.AckResponse.Result result = 1; */ io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.ResultOrBuilder getResultOrBuilder(); /** *
     * Handshake message between client and server to indicate the start of transmission.
     * 
* * optional .source.v1.Handshake handshake = 2; * @return Whether the handshake field is set. */ boolean hasHandshake(); /** *
     * Handshake message between client and server to indicate the start of transmission.
     * 
* * optional .source.v1.Handshake handshake = 2; * @return The handshake. */ io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getHandshake(); /** *
     * Handshake message between client and server to indicate the start of transmission.
     * 
* * optional .source.v1.Handshake handshake = 2; */ io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder getHandshakeOrBuilder(); } /** *
   * AckResponse is the response for acknowledging datum. It contains one empty field confirming
   * the batch of offsets that have been successfully acknowledged. The contract between client and server
   * is that the server will only return the AckResponse if the ack request is successful.
   * If the server hangs during the ack request, the client can decide to timeout and error out the data forwarder.
   * The reason why we define such contract is that we always expect the server to be able to process the ack request.
   * Client is expected to send the AckRequest to the server with offsets that are strictly
   * corresponding to the previously read batch. If the client sends the AckRequest with offsets that are not,
   * it is considered as a client error and the server will not return the AckResponse.
   * 
* * Protobuf type {@code source.v1.AckResponse} */ public static final class AckResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.AckResponse) AckResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AckResponse.newBuilder() to construct. private AckResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AckResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AckResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.class, io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Builder.class); } public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.AckResponse.Result) com.google.protobuf.MessageOrBuilder { /** *
       * Required field indicating the ack request is successful.
       * 
* * .google.protobuf.Empty success = 1; * @return Whether the success field is set. */ boolean hasSuccess(); /** *
       * Required field indicating the ack request is successful.
       * 
* * .google.protobuf.Empty success = 1; * @return The success. */ com.google.protobuf.Empty getSuccess(); /** *
       * Required field indicating the ack request is successful.
       * 
* * .google.protobuf.Empty success = 1; */ com.google.protobuf.EmptyOrBuilder getSuccessOrBuilder(); } /** * Protobuf type {@code source.v1.AckResponse.Result} */ public static final class Result extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.AckResponse.Result) ResultOrBuilder { private static final long serialVersionUID = 0L; // Use Result.newBuilder() to construct. private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Result() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Result(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckResponse_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckResponse_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.class, io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.Builder.class); } public static final int SUCCESS_FIELD_NUMBER = 1; private com.google.protobuf.Empty success_; /** *
       * Required field indicating the ack request is successful.
       * 
* * .google.protobuf.Empty success = 1; * @return Whether the success field is set. */ @java.lang.Override public boolean hasSuccess() { return success_ != null; } /** *
       * Required field indicating the ack request is successful.
       * 
* * .google.protobuf.Empty success = 1; * @return The success. */ @java.lang.Override public com.google.protobuf.Empty getSuccess() { return success_ == null ? com.google.protobuf.Empty.getDefaultInstance() : success_; } /** *
       * Required field indicating the ack request is successful.
       * 
* * .google.protobuf.Empty success = 1; */ @java.lang.Override public com.google.protobuf.EmptyOrBuilder getSuccessOrBuilder() { return getSuccess(); } 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 (success_ != null) { output.writeMessage(1, getSuccess()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (success_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSuccess()); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result other = (io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result) obj; if (hasSuccess() != other.hasSuccess()) return false; if (hasSuccess()) { if (!getSuccess() .equals(other.getSuccess())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSuccess()) { hash = (37 * hash) + SUCCESS_FIELD_NUMBER; hash = (53 * hash) + getSuccess().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result 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(io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result 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 source.v1.AckResponse.Result} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.AckResponse.Result) io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.ResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckResponse_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckResponse_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.class, io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (successBuilder_ == null) { success_ = null; } else { success_ = null; successBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckResponse_Result_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result build() { io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result result = new io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result(this); if (successBuilder_ == null) { result.success_ = success_; } else { result.success_ = successBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.getDefaultInstance()) return this; if (other.hasSuccess()) { mergeSuccess(other.getSuccess()); } 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( getSuccessFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 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 com.google.protobuf.Empty success_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> successBuilder_; /** *
         * Required field indicating the ack request is successful.
         * 
* * .google.protobuf.Empty success = 1; * @return Whether the success field is set. */ public boolean hasSuccess() { return successBuilder_ != null || success_ != null; } /** *
         * Required field indicating the ack request is successful.
         * 
* * .google.protobuf.Empty success = 1; * @return The success. */ public com.google.protobuf.Empty getSuccess() { if (successBuilder_ == null) { return success_ == null ? com.google.protobuf.Empty.getDefaultInstance() : success_; } else { return successBuilder_.getMessage(); } } /** *
         * Required field indicating the ack request is successful.
         * 
* * .google.protobuf.Empty success = 1; */ public Builder setSuccess(com.google.protobuf.Empty value) { if (successBuilder_ == null) { if (value == null) { throw new NullPointerException(); } success_ = value; onChanged(); } else { successBuilder_.setMessage(value); } return this; } /** *
         * Required field indicating the ack request is successful.
         * 
* * .google.protobuf.Empty success = 1; */ public Builder setSuccess( com.google.protobuf.Empty.Builder builderForValue) { if (successBuilder_ == null) { success_ = builderForValue.build(); onChanged(); } else { successBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Required field indicating the ack request is successful.
         * 
* * .google.protobuf.Empty success = 1; */ public Builder mergeSuccess(com.google.protobuf.Empty value) { if (successBuilder_ == null) { if (success_ != null) { success_ = com.google.protobuf.Empty.newBuilder(success_).mergeFrom(value).buildPartial(); } else { success_ = value; } onChanged(); } else { successBuilder_.mergeFrom(value); } return this; } /** *
         * Required field indicating the ack request is successful.
         * 
* * .google.protobuf.Empty success = 1; */ public Builder clearSuccess() { if (successBuilder_ == null) { success_ = null; onChanged(); } else { success_ = null; successBuilder_ = null; } return this; } /** *
         * Required field indicating the ack request is successful.
         * 
* * .google.protobuf.Empty success = 1; */ public com.google.protobuf.Empty.Builder getSuccessBuilder() { onChanged(); return getSuccessFieldBuilder().getBuilder(); } /** *
         * Required field indicating the ack request is successful.
         * 
* * .google.protobuf.Empty success = 1; */ public com.google.protobuf.EmptyOrBuilder getSuccessOrBuilder() { if (successBuilder_ != null) { return successBuilder_.getMessageOrBuilder(); } else { return success_ == null ? com.google.protobuf.Empty.getDefaultInstance() : success_; } } /** *
         * Required field indicating the ack request is successful.
         * 
* * .google.protobuf.Empty success = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> getSuccessFieldBuilder() { if (successBuilder_ == null) { successBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder>( getSuccess(), getParentForChildren(), isClean()); success_ = null; } return successBuilder_; } @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:source.v1.AckResponse.Result) } // @@protoc_insertion_point(class_scope:source.v1.AckResponse.Result) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Result 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int RESULT_FIELD_NUMBER = 1; private io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result result_; /** *
     * Required field holding the result.
     * 
* * .source.v1.AckResponse.Result result = 1; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return result_ != null; } /** *
     * Required field holding the result.
     * 
* * .source.v1.AckResponse.Result result = 1; * @return The result. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result getResult() { return result_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.getDefaultInstance() : result_; } /** *
     * Required field holding the result.
     * 
* * .source.v1.AckResponse.Result result = 1; */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.ResultOrBuilder getResultOrBuilder() { return getResult(); } public static final int HANDSHAKE_FIELD_NUMBER = 2; private io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake handshake_; /** *
     * Handshake message between client and server to indicate the start of transmission.
     * 
* * optional .source.v1.Handshake handshake = 2; * @return Whether the handshake field is set. */ @java.lang.Override public boolean hasHandshake() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Handshake message between client and server to indicate the start of transmission.
     * 
* * optional .source.v1.Handshake handshake = 2; * @return The handshake. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getHandshake() { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } /** *
     * Handshake message between client and server to indicate the start of transmission.
     * 
* * optional .source.v1.Handshake handshake = 2; */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder getHandshakeOrBuilder() { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } 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 (result_ != null) { output.writeMessage(1, getResult()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getHandshake()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResult()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getHandshake()); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse other = (io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse) obj; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (hasHandshake() != other.hasHandshake()) return false; if (hasHandshake()) { if (!getHandshake() .equals(other.getHandshake())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } if (hasHandshake()) { hash = (37 * hash) + HANDSHAKE_FIELD_NUMBER; hash = (53 * hash) + getHandshake().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse 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(io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse 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; } /** *
     * AckResponse is the response for acknowledging datum. It contains one empty field confirming
     * the batch of offsets that have been successfully acknowledged. The contract between client and server
     * is that the server will only return the AckResponse if the ack request is successful.
     * If the server hangs during the ack request, the client can decide to timeout and error out the data forwarder.
     * The reason why we define such contract is that we always expect the server to be able to process the ack request.
     * Client is expected to send the AckRequest to the server with offsets that are strictly
     * corresponding to the previously read batch. If the client sends the AckRequest with offsets that are not,
     * it is considered as a client error and the server will not return the AckResponse.
     * 
* * Protobuf type {@code source.v1.AckResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.AckResponse) io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.class, io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHandshakeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } if (handshakeBuilder_ == null) { handshake_ = null; } else { handshakeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_AckResponse_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse build() { io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse result = new io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } if (((from_bitField0_ & 0x00000001) != 0)) { if (handshakeBuilder_ == null) { result.handshake_ = handshake_; } else { result.handshake_ = handshakeBuilder_.build(); } to_bitField0_ |= 0x00000001; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.getDefaultInstance()) return this; if (other.hasResult()) { mergeResult(other.getResult()); } if (other.hasHandshake()) { mergeHandshake(other.getHandshake()); } 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( getResultFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getHandshakeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 18 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 bitField0_; private io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result result_; private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result, io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.ResultOrBuilder> resultBuilder_; /** *
       * Required field holding the result.
       * 
* * .source.v1.AckResponse.Result result = 1; * @return Whether the result field is set. */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** *
       * Required field holding the result.
       * 
* * .source.v1.AckResponse.Result result = 1; * @return The result. */ public io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result getResult() { if (resultBuilder_ == null) { return result_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** *
       * Required field holding the result.
       * 
* * .source.v1.AckResponse.Result result = 1; */ public Builder setResult(io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultBuilder_.setMessage(value); } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.AckResponse.Result result = 1; */ public Builder setResult( io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.AckResponse.Result result = 1; */ public Builder mergeResult(io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.AckResponse.Result result = 1; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.AckResponse.Result result = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** *
       * Required field holding the result.
       * 
* * .source.v1.AckResponse.Result result = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.ResultOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.getDefaultInstance() : result_; } } /** *
       * Required field holding the result.
       * 
* * .source.v1.AckResponse.Result result = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result, io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.ResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result, io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.Result.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse.ResultOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake handshake_; private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake, io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder> handshakeBuilder_; /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 2; * @return Whether the handshake field is set. */ public boolean hasHandshake() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 2; * @return The handshake. */ public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake getHandshake() { if (handshakeBuilder_ == null) { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } else { return handshakeBuilder_.getMessage(); } } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 2; */ public Builder setHandshake(io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake value) { if (handshakeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } handshake_ = value; onChanged(); } else { handshakeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 2; */ public Builder setHandshake( io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder builderForValue) { if (handshakeBuilder_ == null) { handshake_ = builderForValue.build(); onChanged(); } else { handshakeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 2; */ public Builder mergeHandshake(io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake value) { if (handshakeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && handshake_ != null && handshake_ != io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance()) { handshake_ = io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.newBuilder(handshake_).mergeFrom(value).buildPartial(); } else { handshake_ = value; } onChanged(); } else { handshakeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 2; */ public Builder clearHandshake() { if (handshakeBuilder_ == null) { handshake_ = null; onChanged(); } else { handshakeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 2; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder getHandshakeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getHandshakeFieldBuilder().getBuilder(); } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 2; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder getHandshakeOrBuilder() { if (handshakeBuilder_ != null) { return handshakeBuilder_.getMessageOrBuilder(); } else { return handshake_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.getDefaultInstance() : handshake_; } } /** *
       * Handshake message between client and server to indicate the start of transmission.
       * 
* * optional .source.v1.Handshake handshake = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake, io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder> getHandshakeFieldBuilder() { if (handshakeBuilder_ == null) { handshakeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake, io.numaproj.numaflow.source.v1.SourceOuterClass.Handshake.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.HandshakeOrBuilder>( getHandshake(), getParentForChildren(), isClean()); handshake_ = null; } return handshakeBuilder_; } @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:source.v1.AckResponse) } // @@protoc_insertion_point(class_scope:source.v1.AckResponse) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AckResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.AckResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadyResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.ReadyResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Required field holding the health check result.
     * 
* * bool ready = 1; * @return The ready. */ boolean getReady(); } /** *
   * ReadyResponse is the health check result for user defined source.
   * 
* * Protobuf type {@code source.v1.ReadyResponse} */ public static final class ReadyResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.ReadyResponse) ReadyResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ReadyResponse.newBuilder() to construct. private ReadyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadyResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReadyResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse.class, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse.Builder.class); } public static final int READY_FIELD_NUMBER = 1; private boolean ready_; /** *
     * Required field holding the health check result.
     * 
* * bool ready = 1; * @return The ready. */ @java.lang.Override public boolean getReady() { return ready_; } 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 (ready_ != false) { output.writeBool(1, ready_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ready_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, ready_); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse other = (io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse) obj; if (getReady() != other.getReady()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + READY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReady()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse 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(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse 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; } /** *
     * ReadyResponse is the health check result for user defined source.
     * 
* * Protobuf type {@code source.v1.ReadyResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.ReadyResponse) io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse.class, io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); ready_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_ReadyResponse_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse build() { io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse result = new io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse(this); result.ready_ = ready_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse.getDefaultInstance()) return this; if (other.getReady() != false) { setReady(other.getReady()); } 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 8: { ready_ = input.readBool(); break; } // case 8 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 boolean ready_ ; /** *
       * Required field holding the health check result.
       * 
* * bool ready = 1; * @return The ready. */ @java.lang.Override public boolean getReady() { return ready_; } /** *
       * Required field holding the health check result.
       * 
* * bool ready = 1; * @param value The ready to set. * @return This builder for chaining. */ public Builder setReady(boolean value) { ready_ = value; onChanged(); return this; } /** *
       * Required field holding the health check result.
       * 
* * bool ready = 1; * @return This builder for chaining. */ public Builder clearReady() { ready_ = false; onChanged(); return this; } @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:source.v1.ReadyResponse) } // @@protoc_insertion_point(class_scope:source.v1.ReadyResponse) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReadyResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.ReadyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PendingResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.PendingResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Required field holding the result.
     * 
* * .source.v1.PendingResponse.Result result = 1; * @return Whether the result field is set. */ boolean hasResult(); /** *
     * Required field holding the result.
     * 
* * .source.v1.PendingResponse.Result result = 1; * @return The result. */ io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result getResult(); /** *
     * Required field holding the result.
     * 
* * .source.v1.PendingResponse.Result result = 1; */ io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.ResultOrBuilder getResultOrBuilder(); } /** *
   * PendingResponse is the response for the pending request.
   * 
* * Protobuf type {@code source.v1.PendingResponse} */ public static final class PendingResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.PendingResponse) PendingResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PendingResponse.newBuilder() to construct. private PendingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PendingResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PendingResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PendingResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PendingResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.class, io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Builder.class); } public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.PendingResponse.Result) com.google.protobuf.MessageOrBuilder { /** *
       * Required field holding the number of pending records at the user defined source.
       * A negative count indicates that the pending information is not available.
       * 
* * int64 count = 1; * @return The count. */ long getCount(); } /** * Protobuf type {@code source.v1.PendingResponse.Result} */ public static final class Result extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.PendingResponse.Result) ResultOrBuilder { private static final long serialVersionUID = 0L; // Use Result.newBuilder() to construct. private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Result() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Result(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PendingResponse_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PendingResponse_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.class, io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.Builder.class); } public static final int COUNT_FIELD_NUMBER = 1; private long count_; /** *
       * Required field holding the number of pending records at the user defined source.
       * A negative count indicates that the pending information is not available.
       * 
* * int64 count = 1; * @return The count. */ @java.lang.Override public long getCount() { return count_; } 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 (count_ != 0L) { output.writeInt64(1, count_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (count_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, count_); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result other = (io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result) obj; if (getCount() != other.getCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result 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(io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result 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 source.v1.PendingResponse.Result} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.PendingResponse.Result) io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.ResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PendingResponse_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PendingResponse_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.class, io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); count_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PendingResponse_Result_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result build() { io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result result = new io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result(this); result.count_ = count_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.getDefaultInstance()) return this; if (other.getCount() != 0L) { setCount(other.getCount()); } 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 8: { count_ = input.readInt64(); break; } // case 8 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 long count_ ; /** *
         * Required field holding the number of pending records at the user defined source.
         * A negative count indicates that the pending information is not available.
         * 
* * int64 count = 1; * @return The count. */ @java.lang.Override public long getCount() { return count_; } /** *
         * Required field holding the number of pending records at the user defined source.
         * A negative count indicates that the pending information is not available.
         * 
* * int64 count = 1; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { count_ = value; onChanged(); return this; } /** *
         * Required field holding the number of pending records at the user defined source.
         * A negative count indicates that the pending information is not available.
         * 
* * int64 count = 1; * @return This builder for chaining. */ public Builder clearCount() { count_ = 0L; onChanged(); return this; } @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:source.v1.PendingResponse.Result) } // @@protoc_insertion_point(class_scope:source.v1.PendingResponse.Result) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Result 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int RESULT_FIELD_NUMBER = 1; private io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result result_; /** *
     * Required field holding the result.
     * 
* * .source.v1.PendingResponse.Result result = 1; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return result_ != null; } /** *
     * Required field holding the result.
     * 
* * .source.v1.PendingResponse.Result result = 1; * @return The result. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result getResult() { return result_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.getDefaultInstance() : result_; } /** *
     * Required field holding the result.
     * 
* * .source.v1.PendingResponse.Result result = 1; */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.ResultOrBuilder getResultOrBuilder() { return getResult(); } 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 (result_ != null) { output.writeMessage(1, getResult()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResult()); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse other = (io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse) obj; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse 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(io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse 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; } /** *
     * PendingResponse is the response for the pending request.
     * 
* * Protobuf type {@code source.v1.PendingResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.PendingResponse) io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PendingResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PendingResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.class, io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PendingResponse_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse build() { io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse result = new io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse(this); if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.getDefaultInstance()) return this; if (other.hasResult()) { mergeResult(other.getResult()); } 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( getResultFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result result_; private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result, io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.ResultOrBuilder> resultBuilder_; /** *
       * Required field holding the result.
       * 
* * .source.v1.PendingResponse.Result result = 1; * @return Whether the result field is set. */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** *
       * Required field holding the result.
       * 
* * .source.v1.PendingResponse.Result result = 1; * @return The result. */ public io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result getResult() { if (resultBuilder_ == null) { return result_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** *
       * Required field holding the result.
       * 
* * .source.v1.PendingResponse.Result result = 1; */ public Builder setResult(io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultBuilder_.setMessage(value); } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.PendingResponse.Result result = 1; */ public Builder setResult( io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.PendingResponse.Result result = 1; */ public Builder mergeResult(io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.PendingResponse.Result result = 1; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.PendingResponse.Result result = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** *
       * Required field holding the result.
       * 
* * .source.v1.PendingResponse.Result result = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.ResultOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.getDefaultInstance() : result_; } } /** *
       * Required field holding the result.
       * 
* * .source.v1.PendingResponse.Result result = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result, io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.ResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result, io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.Result.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse.ResultOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } @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:source.v1.PendingResponse) } // @@protoc_insertion_point(class_scope:source.v1.PendingResponse) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PendingResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PendingResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PartitionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.PartitionsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Required field holding the result.
     * 
* * .source.v1.PartitionsResponse.Result result = 1; * @return Whether the result field is set. */ boolean hasResult(); /** *
     * Required field holding the result.
     * 
* * .source.v1.PartitionsResponse.Result result = 1; * @return The result. */ io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result getResult(); /** *
     * Required field holding the result.
     * 
* * .source.v1.PartitionsResponse.Result result = 1; */ io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.ResultOrBuilder getResultOrBuilder(); } /** *
   * PartitionsResponse is the response for the partitions request.
   * 
* * Protobuf type {@code source.v1.PartitionsResponse} */ public static final class PartitionsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.PartitionsResponse) PartitionsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PartitionsResponse.newBuilder() to construct. private PartitionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitionsResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitionsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PartitionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PartitionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.class, io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Builder.class); } public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.PartitionsResponse.Result) com.google.protobuf.MessageOrBuilder { /** *
       * Required field holding the list of partitions.
       * 
* * repeated int32 partitions = 1; * @return A list containing the partitions. */ java.util.List getPartitionsList(); /** *
       * Required field holding the list of partitions.
       * 
* * repeated int32 partitions = 1; * @return The count of partitions. */ int getPartitionsCount(); /** *
       * Required field holding the list of partitions.
       * 
* * repeated int32 partitions = 1; * @param index The index of the element to return. * @return The partitions at the given index. */ int getPartitions(int index); } /** * Protobuf type {@code source.v1.PartitionsResponse.Result} */ public static final class Result extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.PartitionsResponse.Result) ResultOrBuilder { private static final long serialVersionUID = 0L; // Use Result.newBuilder() to construct. private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Result() { partitions_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Result(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PartitionsResponse_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PartitionsResponse_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.class, io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.Builder.class); } public static final int PARTITIONS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.IntList partitions_; /** *
       * Required field holding the list of partitions.
       * 
* * repeated int32 partitions = 1; * @return A list containing the partitions. */ @java.lang.Override public java.util.List getPartitionsList() { return partitions_; } /** *
       * Required field holding the list of partitions.
       * 
* * repeated int32 partitions = 1; * @return The count of partitions. */ public int getPartitionsCount() { return partitions_.size(); } /** *
       * Required field holding the list of partitions.
       * 
* * repeated int32 partitions = 1; * @param index The index of the element to return. * @return The partitions at the given index. */ public int getPartitions(int index) { return partitions_.getInt(index); } private int partitionsMemoizedSerializedSize = -1; 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 { getSerializedSize(); if (getPartitionsList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(partitionsMemoizedSerializedSize); } for (int i = 0; i < partitions_.size(); i++) { output.writeInt32NoTag(partitions_.getInt(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < partitions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(partitions_.getInt(i)); } size += dataSize; if (!getPartitionsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } partitionsMemoizedSerializedSize = dataSize; } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result other = (io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result) obj; if (!getPartitionsList() .equals(other.getPartitionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPartitionsCount() > 0) { hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; hash = (53 * hash) + getPartitionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result 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(io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result 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 source.v1.PartitionsResponse.Result} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.PartitionsResponse.Result) io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.ResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PartitionsResponse_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PartitionsResponse_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.class, io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); partitions_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PartitionsResponse_Result_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result build() { io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result result = new io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { partitions_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.partitions_ = partitions_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.getDefaultInstance()) return this; if (!other.partitions_.isEmpty()) { if (partitions_.isEmpty()) { partitions_ = other.partitions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePartitionsIsMutable(); partitions_.addAll(other.partitions_); } onChanged(); } 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 8: { int v = input.readInt32(); ensurePartitionsIsMutable(); partitions_.addInt(v); break; } // case 8 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensurePartitionsIsMutable(); while (input.getBytesUntilLimit() > 0) { partitions_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 10 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 bitField0_; private com.google.protobuf.Internal.IntList partitions_ = emptyIntList(); private void ensurePartitionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { partitions_ = mutableCopy(partitions_); bitField0_ |= 0x00000001; } } /** *
         * Required field holding the list of partitions.
         * 
* * repeated int32 partitions = 1; * @return A list containing the partitions. */ public java.util.List getPartitionsList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(partitions_) : partitions_; } /** *
         * Required field holding the list of partitions.
         * 
* * repeated int32 partitions = 1; * @return The count of partitions. */ public int getPartitionsCount() { return partitions_.size(); } /** *
         * Required field holding the list of partitions.
         * 
* * repeated int32 partitions = 1; * @param index The index of the element to return. * @return The partitions at the given index. */ public int getPartitions(int index) { return partitions_.getInt(index); } /** *
         * Required field holding the list of partitions.
         * 
* * repeated int32 partitions = 1; * @param index The index to set the value at. * @param value The partitions to set. * @return This builder for chaining. */ public Builder setPartitions( int index, int value) { ensurePartitionsIsMutable(); partitions_.setInt(index, value); onChanged(); return this; } /** *
         * Required field holding the list of partitions.
         * 
* * repeated int32 partitions = 1; * @param value The partitions to add. * @return This builder for chaining. */ public Builder addPartitions(int value) { ensurePartitionsIsMutable(); partitions_.addInt(value); onChanged(); return this; } /** *
         * Required field holding the list of partitions.
         * 
* * repeated int32 partitions = 1; * @param values The partitions to add. * @return This builder for chaining. */ public Builder addAllPartitions( java.lang.Iterable values) { ensurePartitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, partitions_); onChanged(); return this; } /** *
         * Required field holding the list of partitions.
         * 
* * repeated int32 partitions = 1; * @return This builder for chaining. */ public Builder clearPartitions() { partitions_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @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:source.v1.PartitionsResponse.Result) } // @@protoc_insertion_point(class_scope:source.v1.PartitionsResponse.Result) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Result 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int RESULT_FIELD_NUMBER = 1; private io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result result_; /** *
     * Required field holding the result.
     * 
* * .source.v1.PartitionsResponse.Result result = 1; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return result_ != null; } /** *
     * Required field holding the result.
     * 
* * .source.v1.PartitionsResponse.Result result = 1; * @return The result. */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result getResult() { return result_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.getDefaultInstance() : result_; } /** *
     * Required field holding the result.
     * 
* * .source.v1.PartitionsResponse.Result result = 1; */ @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.ResultOrBuilder getResultOrBuilder() { return getResult(); } 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 (result_ != null) { output.writeMessage(1, getResult()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getResult()); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse other = (io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse) obj; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse 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(io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse 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; } /** *
     * PartitionsResponse is the response for the partitions request.
     * 
* * Protobuf type {@code source.v1.PartitionsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.PartitionsResponse) io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PartitionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PartitionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.class, io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_PartitionsResponse_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse build() { io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse result = new io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse(this); if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.getDefaultInstance()) return this; if (other.hasResult()) { mergeResult(other.getResult()); } 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( getResultFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result result_; private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result, io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.ResultOrBuilder> resultBuilder_; /** *
       * Required field holding the result.
       * 
* * .source.v1.PartitionsResponse.Result result = 1; * @return Whether the result field is set. */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** *
       * Required field holding the result.
       * 
* * .source.v1.PartitionsResponse.Result result = 1; * @return The result. */ public io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result getResult() { if (resultBuilder_ == null) { return result_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** *
       * Required field holding the result.
       * 
* * .source.v1.PartitionsResponse.Result result = 1; */ public Builder setResult(io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultBuilder_.setMessage(value); } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.PartitionsResponse.Result result = 1; */ public Builder setResult( io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.PartitionsResponse.Result result = 1; */ public Builder mergeResult(io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.PartitionsResponse.Result result = 1; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** *
       * Required field holding the result.
       * 
* * .source.v1.PartitionsResponse.Result result = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** *
       * Required field holding the result.
       * 
* * .source.v1.PartitionsResponse.Result result = 1; */ public io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.ResultOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.getDefaultInstance() : result_; } } /** *
       * Required field holding the result.
       * 
* * .source.v1.PartitionsResponse.Result result = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result, io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.ResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result, io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.Result.Builder, io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse.ResultOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } @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:source.v1.PartitionsResponse) } // @@protoc_insertion_point(class_scope:source.v1.PartitionsResponse) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionsResponse 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 io.numaproj.numaflow.source.v1.SourceOuterClass.PartitionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OffsetOrBuilder extends // @@protoc_insertion_point(interface_extends:source.v1.Offset) com.google.protobuf.MessageOrBuilder { /** *
     * offset is the offset of the datum. This field is required.
     * We define Offset as a byte array because different input data sources can have different representations for Offset.
     * The only way to generalize it is to define it as a byte array,
     * Such that we can let the UDSource to de-serialize the offset using its own interpretation logics.
     * 
* * bytes offset = 1; * @return The offset. */ com.google.protobuf.ByteString getOffset(); /** *
     * Optional partition_id indicates which partition of the source the datum belongs to.
     * It is useful for sources that have multiple partitions. e.g. Kafka.
     * If the partition_id is not specified, it is assumed that the source has a single partition.
     * 
* * int32 partition_id = 2; * @return The partitionId. */ int getPartitionId(); } /** *
   * Offset is the offset of the datum.
   * 
* * Protobuf type {@code source.v1.Offset} */ public static final class Offset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:source.v1.Offset) OffsetOrBuilder { private static final long serialVersionUID = 0L; // Use Offset.newBuilder() to construct. private Offset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Offset() { offset_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Offset(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_Offset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_Offset_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.class, io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder.class); } public static final int OFFSET_FIELD_NUMBER = 1; private com.google.protobuf.ByteString offset_; /** *
     * offset is the offset of the datum. This field is required.
     * We define Offset as a byte array because different input data sources can have different representations for Offset.
     * The only way to generalize it is to define it as a byte array,
     * Such that we can let the UDSource to de-serialize the offset using its own interpretation logics.
     * 
* * bytes offset = 1; * @return The offset. */ @java.lang.Override public com.google.protobuf.ByteString getOffset() { return offset_; } public static final int PARTITION_ID_FIELD_NUMBER = 2; private int partitionId_; /** *
     * Optional partition_id indicates which partition of the source the datum belongs to.
     * It is useful for sources that have multiple partitions. e.g. Kafka.
     * If the partition_id is not specified, it is assumed that the source has a single partition.
     * 
* * int32 partition_id = 2; * @return The partitionId. */ @java.lang.Override public int getPartitionId() { return partitionId_; } 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 (!offset_.isEmpty()) { output.writeBytes(1, offset_); } if (partitionId_ != 0) { output.writeInt32(2, partitionId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!offset_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, offset_); } if (partitionId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, partitionId_); } 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 io.numaproj.numaflow.source.v1.SourceOuterClass.Offset)) { return super.equals(obj); } io.numaproj.numaflow.source.v1.SourceOuterClass.Offset other = (io.numaproj.numaflow.source.v1.SourceOuterClass.Offset) obj; if (!getOffset() .equals(other.getOffset())) return false; if (getPartitionId() != other.getPartitionId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + getPartitionId(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Offset parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Offset parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Offset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Offset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Offset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Offset parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Offset parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Offset 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 io.numaproj.numaflow.source.v1.SourceOuterClass.Offset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Offset 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 io.numaproj.numaflow.source.v1.SourceOuterClass.Offset parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Offset 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(io.numaproj.numaflow.source.v1.SourceOuterClass.Offset 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; } /** *
     * Offset is the offset of the datum.
     * 
* * Protobuf type {@code source.v1.Offset} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:source.v1.Offset) io.numaproj.numaflow.source.v1.SourceOuterClass.OffsetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_Offset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_Offset_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.class, io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.Builder.class); } // Construct using io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); offset_ = com.google.protobuf.ByteString.EMPTY; partitionId_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.internal_static_source_v1_Offset_descriptor; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.Offset getDefaultInstanceForType() { return io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.Offset build() { io.numaproj.numaflow.source.v1.SourceOuterClass.Offset result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.source.v1.SourceOuterClass.Offset buildPartial() { io.numaproj.numaflow.source.v1.SourceOuterClass.Offset result = new io.numaproj.numaflow.source.v1.SourceOuterClass.Offset(this); result.offset_ = offset_; result.partitionId_ = partitionId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.numaproj.numaflow.source.v1.SourceOuterClass.Offset) { return mergeFrom((io.numaproj.numaflow.source.v1.SourceOuterClass.Offset)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.source.v1.SourceOuterClass.Offset other) { if (other == io.numaproj.numaflow.source.v1.SourceOuterClass.Offset.getDefaultInstance()) return this; if (other.getOffset() != com.google.protobuf.ByteString.EMPTY) { setOffset(other.getOffset()); } if (other.getPartitionId() != 0) { setPartitionId(other.getPartitionId()); } 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: { offset_ = input.readBytes(); break; } // case 10 case 16: { partitionId_ = input.readInt32(); break; } // case 16 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 com.google.protobuf.ByteString offset_ = com.google.protobuf.ByteString.EMPTY; /** *
       * offset is the offset of the datum. This field is required.
       * We define Offset as a byte array because different input data sources can have different representations for Offset.
       * The only way to generalize it is to define it as a byte array,
       * Such that we can let the UDSource to de-serialize the offset using its own interpretation logics.
       * 
* * bytes offset = 1; * @return The offset. */ @java.lang.Override public com.google.protobuf.ByteString getOffset() { return offset_; } /** *
       * offset is the offset of the datum. This field is required.
       * We define Offset as a byte array because different input data sources can have different representations for Offset.
       * The only way to generalize it is to define it as a byte array,
       * Such that we can let the UDSource to de-serialize the offset using its own interpretation logics.
       * 
* * bytes offset = 1; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } offset_ = value; onChanged(); return this; } /** *
       * offset is the offset of the datum. This field is required.
       * We define Offset as a byte array because different input data sources can have different representations for Offset.
       * The only way to generalize it is to define it as a byte array,
       * Such that we can let the UDSource to de-serialize the offset using its own interpretation logics.
       * 
* * bytes offset = 1; * @return This builder for chaining. */ public Builder clearOffset() { offset_ = getDefaultInstance().getOffset(); onChanged(); return this; } private int partitionId_ ; /** *
       * Optional partition_id indicates which partition of the source the datum belongs to.
       * It is useful for sources that have multiple partitions. e.g. Kafka.
       * If the partition_id is not specified, it is assumed that the source has a single partition.
       * 
* * int32 partition_id = 2; * @return The partitionId. */ @java.lang.Override public int getPartitionId() { return partitionId_; } /** *
       * Optional partition_id indicates which partition of the source the datum belongs to.
       * It is useful for sources that have multiple partitions. e.g. Kafka.
       * If the partition_id is not specified, it is assumed that the source has a single partition.
       * 
* * int32 partition_id = 2; * @param value The partitionId to set. * @return This builder for chaining. */ public Builder setPartitionId(int value) { partitionId_ = value; onChanged(); return this; } /** *
       * Optional partition_id indicates which partition of the source the datum belongs to.
       * It is useful for sources that have multiple partitions. e.g. Kafka.
       * If the partition_id is not specified, it is assumed that the source has a single partition.
       * 
* * int32 partition_id = 2; * @return This builder for chaining. */ public Builder clearPartitionId() { partitionId_ = 0; onChanged(); return this; } @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:source.v1.Offset) } // @@protoc_insertion_point(class_scope:source.v1.Offset) private static final io.numaproj.numaflow.source.v1.SourceOuterClass.Offset DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.source.v1.SourceOuterClass.Offset(); } public static io.numaproj.numaflow.source.v1.SourceOuterClass.Offset getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Offset 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 io.numaproj.numaflow.source.v1.SourceOuterClass.Offset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_Handshake_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_Handshake_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_ReadRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_ReadRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_ReadRequest_Request_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_ReadRequest_Request_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_ReadResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_ReadResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_ReadResponse_Result_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_ReadResponse_Result_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_ReadResponse_Result_HeadersEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_ReadResponse_Result_HeadersEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_ReadResponse_Status_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_ReadResponse_Status_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_AckRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_AckRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_AckRequest_Request_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_AckRequest_Request_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_AckResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_AckResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_AckResponse_Result_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_AckResponse_Result_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_ReadyResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_ReadyResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_PendingResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_PendingResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_PendingResponse_Result_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_PendingResponse_Result_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_PartitionsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_PartitionsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_PartitionsResponse_Result_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_PartitionsResponse_Result_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_source_v1_Offset_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_source_v1_Offset_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\026source/v1/source.proto\022\tsource.v1\032\037goo" + "gle/protobuf/timestamp.proto\032\033google/pro" + "tobuf/empty.proto\"\030\n\tHandshake\022\013\n\003sot\030\001 " + "\001(\010\"\261\001\n\013ReadRequest\022/\n\007request\030\001 \001(\0132\036.s" + "ource.v1.ReadRequest.Request\022,\n\thandshak" + "e\030\002 \001(\0132\024.source.v1.HandshakeH\000\210\001\001\0325\n\007Re" + "quest\022\023\n\013num_records\030\001 \001(\004\022\025\n\rtimeout_in" + "_ms\030\002 \001(\rB\014\n\n_handshake\"\201\005\n\014ReadResponse" + "\022.\n\006result\030\001 \001(\0132\036.source.v1.ReadRespons" + "e.Result\022.\n\006status\030\002 \001(\0132\036.source.v1.Rea" + "dResponse.Status\022,\n\thandshake\030\003 \001(\0132\024.so" + "urce.v1.HandshakeH\000\210\001\001\032\350\001\n\006Result\022\017\n\007pay" + "load\030\001 \001(\014\022!\n\006offset\030\002 \001(\0132\021.source.v1.O" + "ffset\022.\n\nevent_time\030\003 \001(\0132\032.google.proto" + "buf.Timestamp\022\014\n\004keys\030\004 \003(\t\022<\n\007headers\030\005" + " \003(\0132+.source.v1.ReadResponse.Result.Hea" + "dersEntry\032.\n\014HeadersEntry\022\013\n\003key\030\001 \001(\t\022\r" + "\n\005value\030\002 \001(\t:\0028\001\032\351\001\n\006Status\022\013\n\003eot\030\001 \001(" + "\010\0221\n\004code\030\002 \001(\0162#.source.v1.ReadResponse" + ".Status.Code\0228\n\005error\030\003 \001(\0162$.source.v1." + "ReadResponse.Status.ErrorH\000\210\001\001\022\020\n\003msg\030\004 " + "\001(\tH\001\210\001\001\" \n\004Code\022\013\n\007SUCCESS\020\000\022\013\n\007FAILURE" + "\020\001\"\037\n\005Error\022\013\n\007UNACKED\020\000\022\t\n\005OTHER\020\001B\010\n\006_" + "errorB\006\n\004_msgB\014\n\n_handshake\"\247\001\n\nAckReque" + "st\022.\n\007request\030\001 \001(\0132\035.source.v1.AckReque" + "st.Request\022,\n\thandshake\030\002 \001(\0132\024.source.v" + "1.HandshakeH\000\210\001\001\032-\n\007Request\022\"\n\007offsets\030\001" + " \003(\0132\021.source.v1.OffsetB\014\n\n_handshake\"\253\001" + "\n\013AckResponse\022-\n\006result\030\001 \001(\0132\035.source.v" + "1.AckResponse.Result\022,\n\thandshake\030\002 \001(\0132" + "\024.source.v1.HandshakeH\000\210\001\001\0321\n\006Result\022\'\n\007" + "success\030\001 \001(\0132\026.google.protobuf.EmptyB\014\n" + "\n_handshake\"\036\n\rReadyResponse\022\r\n\005ready\030\001 " + "\001(\010\"]\n\017PendingResponse\0221\n\006result\030\001 \001(\0132!" + ".source.v1.PendingResponse.Result\032\027\n\006Res" + "ult\022\r\n\005count\030\001 \001(\003\"h\n\022PartitionsResponse" + "\0224\n\006result\030\001 \001(\0132$.source.v1.PartitionsR" + "esponse.Result\032\034\n\006Result\022\022\n\npartitions\030\001" + " \003(\005\".\n\006Offset\022\016\n\006offset\030\001 \001(\014\022\024\n\014partit" + "ion_id\030\002 \001(\0052\310\002\n\006Source\022=\n\006ReadFn\022\026.sour" + "ce.v1.ReadRequest\032\027.source.v1.ReadRespon" + "se(\0010\001\022:\n\005AckFn\022\025.source.v1.AckRequest\032\026" + ".source.v1.AckResponse(\0010\001\022?\n\tPendingFn\022" + "\026.google.protobuf.Empty\032\032.source.v1.Pend" + "ingResponse\022E\n\014PartitionsFn\022\026.google.pro" + "tobuf.Empty\032\035.source.v1.PartitionsRespon" + "se\022;\n\007IsReady\022\026.google.protobuf.Empty\032\030." + "source.v1.ReadyResponseB \n\036io.numaproj.n" + "umaflow.source.v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), }); internal_static_source_v1_Handshake_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_source_v1_Handshake_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_Handshake_descriptor, new java.lang.String[] { "Sot", }); internal_static_source_v1_ReadRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_source_v1_ReadRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_ReadRequest_descriptor, new java.lang.String[] { "Request", "Handshake", "Handshake", }); internal_static_source_v1_ReadRequest_Request_descriptor = internal_static_source_v1_ReadRequest_descriptor.getNestedTypes().get(0); internal_static_source_v1_ReadRequest_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_ReadRequest_Request_descriptor, new java.lang.String[] { "NumRecords", "TimeoutInMs", }); internal_static_source_v1_ReadResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_source_v1_ReadResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_ReadResponse_descriptor, new java.lang.String[] { "Result", "Status", "Handshake", "Handshake", }); internal_static_source_v1_ReadResponse_Result_descriptor = internal_static_source_v1_ReadResponse_descriptor.getNestedTypes().get(0); internal_static_source_v1_ReadResponse_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_ReadResponse_Result_descriptor, new java.lang.String[] { "Payload", "Offset", "EventTime", "Keys", "Headers", }); internal_static_source_v1_ReadResponse_Result_HeadersEntry_descriptor = internal_static_source_v1_ReadResponse_Result_descriptor.getNestedTypes().get(0); internal_static_source_v1_ReadResponse_Result_HeadersEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_ReadResponse_Result_HeadersEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_source_v1_ReadResponse_Status_descriptor = internal_static_source_v1_ReadResponse_descriptor.getNestedTypes().get(1); internal_static_source_v1_ReadResponse_Status_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_ReadResponse_Status_descriptor, new java.lang.String[] { "Eot", "Code", "Error", "Msg", "Error", "Msg", }); internal_static_source_v1_AckRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_source_v1_AckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_AckRequest_descriptor, new java.lang.String[] { "Request", "Handshake", "Handshake", }); internal_static_source_v1_AckRequest_Request_descriptor = internal_static_source_v1_AckRequest_descriptor.getNestedTypes().get(0); internal_static_source_v1_AckRequest_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_AckRequest_Request_descriptor, new java.lang.String[] { "Offsets", }); internal_static_source_v1_AckResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_source_v1_AckResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_AckResponse_descriptor, new java.lang.String[] { "Result", "Handshake", "Handshake", }); internal_static_source_v1_AckResponse_Result_descriptor = internal_static_source_v1_AckResponse_descriptor.getNestedTypes().get(0); internal_static_source_v1_AckResponse_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_AckResponse_Result_descriptor, new java.lang.String[] { "Success", }); internal_static_source_v1_ReadyResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_source_v1_ReadyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_ReadyResponse_descriptor, new java.lang.String[] { "Ready", }); internal_static_source_v1_PendingResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_source_v1_PendingResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_PendingResponse_descriptor, new java.lang.String[] { "Result", }); internal_static_source_v1_PendingResponse_Result_descriptor = internal_static_source_v1_PendingResponse_descriptor.getNestedTypes().get(0); internal_static_source_v1_PendingResponse_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_PendingResponse_Result_descriptor, new java.lang.String[] { "Count", }); internal_static_source_v1_PartitionsResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_source_v1_PartitionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_PartitionsResponse_descriptor, new java.lang.String[] { "Result", }); internal_static_source_v1_PartitionsResponse_Result_descriptor = internal_static_source_v1_PartitionsResponse_descriptor.getNestedTypes().get(0); internal_static_source_v1_PartitionsResponse_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_PartitionsResponse_Result_descriptor, new java.lang.String[] { "Partitions", }); internal_static_source_v1_Offset_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_source_v1_Offset_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_source_v1_Offset_descriptor, new java.lang.String[] { "Offset", "PartitionId", }); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }