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

io.numaproj.numaflow.mapstream.v1.Mapstream Maven / Gradle / Ivy

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

package io.numaproj.numaflow.mapstream.v1;

public final class Mapstream {
  private Mapstream() {}
  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 MapStreamRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:mapstream.v1.MapStreamRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated string keys = 1;
     * @return A list containing the keys.
     */
    java.util.List
        getKeysList();
    /**
     * repeated string keys = 1;
     * @return The count of keys.
     */
    int getKeysCount();
    /**
     * repeated string keys = 1;
     * @param index The index of the element to return.
     * @return The keys at the given index.
     */
    java.lang.String getKeys(int index);
    /**
     * repeated string keys = 1;
     * @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);

    /**
     * bytes value = 2;
     * @return The value.
     */
    com.google.protobuf.ByteString getValue();

    /**
     * .google.protobuf.Timestamp event_time = 3;
     * @return Whether the eventTime field is set.
     */
    boolean hasEventTime();
    /**
     * .google.protobuf.Timestamp event_time = 3;
     * @return The eventTime.
     */
    com.google.protobuf.Timestamp getEventTime();
    /**
     * .google.protobuf.Timestamp event_time = 3;
     */
    com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();

    /**
     * .google.protobuf.Timestamp watermark = 4;
     * @return Whether the watermark field is set.
     */
    boolean hasWatermark();
    /**
     * .google.protobuf.Timestamp watermark = 4;
     * @return The watermark.
     */
    com.google.protobuf.Timestamp getWatermark();
    /**
     * .google.protobuf.Timestamp watermark = 4;
     */
    com.google.protobuf.TimestampOrBuilder getWatermarkOrBuilder();
  }
  /**
   * 
   **
   * MapStreamRequest represents a request element.
   * 
* * Protobuf type {@code mapstream.v1.MapStreamRequest} */ public static final class MapStreamRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mapstream.v1.MapStreamRequest) MapStreamRequestOrBuilder { private static final long serialVersionUID = 0L; // Use MapStreamRequest.newBuilder() to construct. private MapStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MapStreamRequest() { keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MapStreamRequest(); } @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.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest.class, io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest.Builder.class); } public static final int KEYS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList keys_; /** * repeated string keys = 1; * @return A list containing the keys. */ public com.google.protobuf.ProtocolStringList getKeysList() { return keys_; } /** * repeated string keys = 1; * @return The count of keys. */ public int getKeysCount() { return keys_.size(); } /** * repeated string keys = 1; * @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); } /** * repeated string keys = 1; * @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 VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; /** * bytes value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } public static final int EVENT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp eventTime_; /** * .google.protobuf.Timestamp event_time = 3; * @return Whether the eventTime field is set. */ @java.lang.Override public boolean hasEventTime() { return eventTime_ != null; } /** * .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_; } /** * .google.protobuf.Timestamp event_time = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { return getEventTime(); } public static final int WATERMARK_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp watermark_; /** * .google.protobuf.Timestamp watermark = 4; * @return Whether the watermark field is set. */ @java.lang.Override public boolean hasWatermark() { return watermark_ != null; } /** * .google.protobuf.Timestamp watermark = 4; * @return The watermark. */ @java.lang.Override public com.google.protobuf.Timestamp getWatermark() { return watermark_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : watermark_; } /** * .google.protobuf.Timestamp watermark = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getWatermarkOrBuilder() { return getWatermark(); } 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 < keys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keys_.getRaw(i)); } if (!value_.isEmpty()) { output.writeBytes(2, value_); } if (eventTime_ != null) { output.writeMessage(3, getEventTime()); } if (watermark_ != null) { output.writeMessage(4, getWatermark()); } 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 < keys_.size(); i++) { dataSize += computeStringSizeNoTag(keys_.getRaw(i)); } size += dataSize; size += 1 * getKeysList().size(); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, value_); } if (eventTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getEventTime()); } if (watermark_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getWatermark()); } 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.mapstream.v1.Mapstream.MapStreamRequest)) { return super.equals(obj); } io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest other = (io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest) obj; if (!getKeysList() .equals(other.getKeysList())) return false; if (!getValue() .equals(other.getValue())) return false; if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { if (!getEventTime() .equals(other.getEventTime())) return false; } if (hasWatermark() != other.hasWatermark()) return false; if (hasWatermark()) { if (!getWatermark() .equals(other.getWatermark())) 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 (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); if (hasEventTime()) { hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; hash = (53 * hash) + getEventTime().hashCode(); } if (hasWatermark()) { hash = (37 * hash) + WATERMARK_FIELD_NUMBER; hash = (53 * hash) + getWatermark().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest 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.mapstream.v1.Mapstream.MapStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest 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.mapstream.v1.Mapstream.MapStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest 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.mapstream.v1.Mapstream.MapStreamRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest 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.mapstream.v1.Mapstream.MapStreamRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest 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.mapstream.v1.Mapstream.MapStreamRequest 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; } /** *
     **
     * MapStreamRequest represents a request element.
     * 
* * Protobuf type {@code mapstream.v1.MapStreamRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mapstream.v1.MapStreamRequest) io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest.class, io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest.Builder.class); } // Construct using io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); value_ = com.google.protobuf.ByteString.EMPTY; if (eventTimeBuilder_ == null) { eventTime_ = null; } else { eventTime_ = null; eventTimeBuilder_ = null; } if (watermarkBuilder_ == null) { watermark_ = null; } else { watermark_ = null; watermarkBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamRequest_descriptor; } @java.lang.Override public io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest getDefaultInstanceForType() { return io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest build() { io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest buildPartial() { io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest result = new io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { keys_ = keys_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.keys_ = keys_; result.value_ = value_; if (eventTimeBuilder_ == null) { result.eventTime_ = eventTime_; } else { result.eventTime_ = eventTimeBuilder_.build(); } if (watermarkBuilder_ == null) { result.watermark_ = watermark_; } else { result.watermark_ = watermarkBuilder_.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.mapstream.v1.Mapstream.MapStreamRequest) { return mergeFrom((io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest other) { if (other == io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest.getDefaultInstance()) return this; if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (other.hasEventTime()) { mergeEventTime(other.getEventTime()); } if (other.hasWatermark()) { mergeWatermark(other.getWatermark()); } 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: { java.lang.String s = input.readStringRequireUtf8(); ensureKeysIsMutable(); keys_.add(s); break; } // case 10 case 18: { value_ = input.readBytes(); break; } // case 18 case 26: { input.readMessage( getEventTimeFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 case 34: { input.readMessage( getWatermarkFieldBuilder().getBuilder(), extensionRegistry); 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 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; } } /** * repeated string keys = 1; * @return A list containing the keys. */ public com.google.protobuf.ProtocolStringList getKeysList() { return keys_.getUnmodifiableView(); } /** * repeated string keys = 1; * @return The count of keys. */ public int getKeysCount() { return keys_.size(); } /** * repeated string keys = 1; * @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); } /** * repeated string keys = 1; * @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); } /** * repeated string keys = 1; * @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; } /** * repeated string keys = 1; * @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; } /** * repeated string keys = 1; * @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; } /** * repeated string keys = 1; * @return This builder for chaining. */ public Builder clearKeys() { keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string keys = 1; * @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.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 2; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } 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_; /** * .google.protobuf.Timestamp event_time = 3; * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return eventTimeBuilder_ != null || eventTime_ != null; } /** * .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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .google.protobuf.Timestamp event_time = 3; */ public Builder clearEventTime() { if (eventTimeBuilder_ == null) { eventTime_ = null; onChanged(); } else { eventTime_ = null; eventTimeBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp event_time = 3; */ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { onChanged(); return getEventTimeFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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.Timestamp watermark_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> watermarkBuilder_; /** * .google.protobuf.Timestamp watermark = 4; * @return Whether the watermark field is set. */ public boolean hasWatermark() { return watermarkBuilder_ != null || watermark_ != null; } /** * .google.protobuf.Timestamp watermark = 4; * @return The watermark. */ public com.google.protobuf.Timestamp getWatermark() { if (watermarkBuilder_ == null) { return watermark_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : watermark_; } else { return watermarkBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp watermark = 4; */ public Builder setWatermark(com.google.protobuf.Timestamp value) { if (watermarkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } watermark_ = value; onChanged(); } else { watermarkBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp watermark = 4; */ public Builder setWatermark( com.google.protobuf.Timestamp.Builder builderForValue) { if (watermarkBuilder_ == null) { watermark_ = builderForValue.build(); onChanged(); } else { watermarkBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp watermark = 4; */ public Builder mergeWatermark(com.google.protobuf.Timestamp value) { if (watermarkBuilder_ == null) { if (watermark_ != null) { watermark_ = com.google.protobuf.Timestamp.newBuilder(watermark_).mergeFrom(value).buildPartial(); } else { watermark_ = value; } onChanged(); } else { watermarkBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp watermark = 4; */ public Builder clearWatermark() { if (watermarkBuilder_ == null) { watermark_ = null; onChanged(); } else { watermark_ = null; watermarkBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp watermark = 4; */ public com.google.protobuf.Timestamp.Builder getWatermarkBuilder() { onChanged(); return getWatermarkFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp watermark = 4; */ public com.google.protobuf.TimestampOrBuilder getWatermarkOrBuilder() { if (watermarkBuilder_ != null) { return watermarkBuilder_.getMessageOrBuilder(); } else { return watermark_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : watermark_; } } /** * .google.protobuf.Timestamp watermark = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getWatermarkFieldBuilder() { if (watermarkBuilder_ == null) { watermarkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getWatermark(), getParentForChildren(), isClean()); watermark_ = null; } return watermarkBuilder_; } @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:mapstream.v1.MapStreamRequest) } // @@protoc_insertion_point(class_scope:mapstream.v1.MapStreamRequest) private static final io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest(); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MapStreamRequest 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.mapstream.v1.Mapstream.MapStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MapStreamResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:mapstream.v1.MapStreamResponse) com.google.protobuf.MessageOrBuilder { /** * .mapstream.v1.MapStreamResponse.Result result = 1; * @return Whether the result field is set. */ boolean hasResult(); /** * .mapstream.v1.MapStreamResponse.Result result = 1; * @return The result. */ io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result getResult(); /** * .mapstream.v1.MapStreamResponse.Result result = 1; */ io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.ResultOrBuilder getResultOrBuilder(); } /** *
   **
   * MapStreamResponse represents a response element.
   * 
* * Protobuf type {@code mapstream.v1.MapStreamResponse} */ public static final class MapStreamResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mapstream.v1.MapStreamResponse) MapStreamResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MapStreamResponse.newBuilder() to construct. private MapStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MapStreamResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MapStreamResponse(); } @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.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.class, io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Builder.class); } public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:mapstream.v1.MapStreamResponse.Result) com.google.protobuf.MessageOrBuilder { /** * repeated string keys = 1; * @return A list containing the keys. */ java.util.List getKeysList(); /** * repeated string keys = 1; * @return The count of keys. */ int getKeysCount(); /** * repeated string keys = 1; * @param index The index of the element to return. * @return The keys at the given index. */ java.lang.String getKeys(int index); /** * repeated string keys = 1; * @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); /** * bytes value = 2; * @return The value. */ com.google.protobuf.ByteString getValue(); /** * repeated string tags = 3; * @return A list containing the tags. */ java.util.List getTagsList(); /** * repeated string tags = 3; * @return The count of tags. */ int getTagsCount(); /** * repeated string tags = 3; * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** * repeated string tags = 3; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); } /** * Protobuf type {@code mapstream.v1.MapStreamResponse.Result} */ public static final class Result extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mapstream.v1.MapStreamResponse.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() { keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; tags_ = 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.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamResponse_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamResponse_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.class, io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.Builder.class); } public static final int KEYS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList keys_; /** * repeated string keys = 1; * @return A list containing the keys. */ public com.google.protobuf.ProtocolStringList getKeysList() { return keys_; } /** * repeated string keys = 1; * @return The count of keys. */ public int getKeysCount() { return keys_.size(); } /** * repeated string keys = 1; * @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); } /** * repeated string keys = 1; * @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 VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; /** * bytes value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } public static final int TAGS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList tags_; /** * repeated string tags = 3; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** * repeated string tags = 3; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** * repeated string tags = 3; * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * repeated string tags = 3; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(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 < keys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keys_.getRaw(i)); } if (!value_.isEmpty()) { output.writeBytes(2, value_); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(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 < keys_.size(); i++) { dataSize += computeStringSizeNoTag(keys_.getRaw(i)); } size += dataSize; size += 1 * getKeysList().size(); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, value_); } { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } 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.mapstream.v1.Mapstream.MapStreamResponse.Result)) { return super.equals(obj); } io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result other = (io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result) obj; if (!getKeysList() .equals(other.getKeysList())) return false; if (!getValue() .equals(other.getValue())) return false; if (!getTagsList() .equals(other.getTagsList())) 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 (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.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.mapstream.v1.Mapstream.MapStreamResponse.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.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.mapstream.v1.Mapstream.MapStreamResponse.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.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.mapstream.v1.Mapstream.MapStreamResponse.Result parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.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.mapstream.v1.Mapstream.MapStreamResponse.Result parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.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.mapstream.v1.Mapstream.MapStreamResponse.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 mapstream.v1.MapStreamResponse.Result} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mapstream.v1.MapStreamResponse.Result) io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.ResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamResponse_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamResponse_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.class, io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.Builder.class); } // Construct using io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); value_ = com.google.protobuf.ByteString.EMPTY; tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.numaproj.numaflow.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamResponse_Result_descriptor; } @java.lang.Override public io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result getDefaultInstanceForType() { return io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result build() { io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result buildPartial() { io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result result = new io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { keys_ = keys_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.keys_ = keys_; result.value_ = value_; if (((bitField0_ & 0x00000002) != 0)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.tags_ = tags_; 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.mapstream.v1.Mapstream.MapStreamResponse.Result) { return mergeFrom((io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result other) { if (other == io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.getDefaultInstance()) return this; if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } 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 10: { java.lang.String s = input.readStringRequireUtf8(); ensureKeysIsMutable(); keys_.add(s); break; } // case 10 case 18: { value_ = input.readBytes(); break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureTagsIsMutable(); tags_.add(s); 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 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; } } /** * repeated string keys = 1; * @return A list containing the keys. */ public com.google.protobuf.ProtocolStringList getKeysList() { return keys_.getUnmodifiableView(); } /** * repeated string keys = 1; * @return The count of keys. */ public int getKeysCount() { return keys_.size(); } /** * repeated string keys = 1; * @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); } /** * repeated string keys = 1; * @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); } /** * repeated string keys = 1; * @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; } /** * repeated string keys = 1; * @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; } /** * repeated string keys = 1; * @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; } /** * repeated string keys = 1; * @return This builder for chaining. */ public Builder clearKeys() { keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string keys = 1; * @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.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 2; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000002; } } /** * repeated string tags = 3; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** * repeated string tags = 3; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** * repeated string tags = 3; * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * repeated string tags = 3; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** * repeated string tags = 3; * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** * repeated string tags = 3; * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** * repeated string tags = 3; * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags( java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); onChanged(); return this; } /** * repeated string tags = 3; * @return This builder for chaining. */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string tags = 3; * @param value The bytes of the tags to add. * @return This builder for chaining. */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(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:mapstream.v1.MapStreamResponse.Result) } // @@protoc_insertion_point(class_scope:mapstream.v1.MapStreamResponse.Result) private static final io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result(); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.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.mapstream.v1.Mapstream.MapStreamResponse.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int RESULT_FIELD_NUMBER = 1; private io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result result_; /** * .mapstream.v1.MapStreamResponse.Result result = 1; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return result_ != null; } /** * .mapstream.v1.MapStreamResponse.Result result = 1; * @return The result. */ @java.lang.Override public io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result getResult() { return result_ == null ? io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.getDefaultInstance() : result_; } /** * .mapstream.v1.MapStreamResponse.Result result = 1; */ @java.lang.Override public io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.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.mapstream.v1.Mapstream.MapStreamResponse)) { return super.equals(obj); } io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse other = (io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse) 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.mapstream.v1.Mapstream.MapStreamResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse 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.mapstream.v1.Mapstream.MapStreamResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse 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.mapstream.v1.Mapstream.MapStreamResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse 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.mapstream.v1.Mapstream.MapStreamResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse 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.mapstream.v1.Mapstream.MapStreamResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse 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.mapstream.v1.Mapstream.MapStreamResponse 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; } /** *
     **
     * MapStreamResponse represents a response element.
     * 
* * Protobuf type {@code mapstream.v1.MapStreamResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mapstream.v1.MapStreamResponse) io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.class, io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Builder.class); } // Construct using io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.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.mapstream.v1.Mapstream.internal_static_mapstream_v1_MapStreamResponse_descriptor; } @java.lang.Override public io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse getDefaultInstanceForType() { return io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse build() { io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse buildPartial() { io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse result = new io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse(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.mapstream.v1.Mapstream.MapStreamResponse) { return mergeFrom((io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse other) { if (other == io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.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.mapstream.v1.Mapstream.MapStreamResponse.Result result_; private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result, io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.Builder, io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.ResultOrBuilder> resultBuilder_; /** * .mapstream.v1.MapStreamResponse.Result result = 1; * @return Whether the result field is set. */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** * .mapstream.v1.MapStreamResponse.Result result = 1; * @return The result. */ public io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result getResult() { if (resultBuilder_ == null) { return result_ == null ? io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .mapstream.v1.MapStreamResponse.Result result = 1; */ public Builder setResult(io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultBuilder_.setMessage(value); } return this; } /** * .mapstream.v1.MapStreamResponse.Result result = 1; */ public Builder setResult( io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } /** * .mapstream.v1.MapStreamResponse.Result result = 1; */ public Builder mergeResult(io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } /** * .mapstream.v1.MapStreamResponse.Result result = 1; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** * .mapstream.v1.MapStreamResponse.Result result = 1; */ public io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .mapstream.v1.MapStreamResponse.Result result = 1; */ public io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.ResultOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.getDefaultInstance() : result_; } } /** * .mapstream.v1.MapStreamResponse.Result result = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result, io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.Builder, io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.ResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result, io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.Result.Builder, io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse.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:mapstream.v1.MapStreamResponse) } // @@protoc_insertion_point(class_scope:mapstream.v1.MapStreamResponse) private static final io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse(); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.MapStreamResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MapStreamResponse 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.mapstream.v1.Mapstream.MapStreamResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadyResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:mapstream.v1.ReadyResponse) com.google.protobuf.MessageOrBuilder { /** * bool ready = 1; * @return The ready. */ boolean getReady(); } /** *
   **
   * ReadyResponse is the health check result.
   * 
* * Protobuf type {@code mapstream.v1.ReadyResponse} */ public static final class ReadyResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mapstream.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.mapstream.v1.Mapstream.internal_static_mapstream_v1_ReadyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.mapstream.v1.Mapstream.internal_static_mapstream_v1_ReadyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse.class, io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse.Builder.class); } public static final int READY_FIELD_NUMBER = 1; private boolean ready_; /** * 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.mapstream.v1.Mapstream.ReadyResponse)) { return super.equals(obj); } io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse other = (io.numaproj.numaflow.mapstream.v1.Mapstream.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.mapstream.v1.Mapstream.ReadyResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.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.mapstream.v1.Mapstream.ReadyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.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.mapstream.v1.Mapstream.ReadyResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.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.mapstream.v1.Mapstream.ReadyResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.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.mapstream.v1.Mapstream.ReadyResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.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.mapstream.v1.Mapstream.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.
     * 
* * Protobuf type {@code mapstream.v1.ReadyResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mapstream.v1.ReadyResponse) io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.numaproj.numaflow.mapstream.v1.Mapstream.internal_static_mapstream_v1_ReadyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.numaproj.numaflow.mapstream.v1.Mapstream.internal_static_mapstream_v1_ReadyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse.class, io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse.Builder.class); } // Construct using io.numaproj.numaflow.mapstream.v1.Mapstream.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.mapstream.v1.Mapstream.internal_static_mapstream_v1_ReadyResponse_descriptor; } @java.lang.Override public io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse getDefaultInstanceForType() { return io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse.getDefaultInstance(); } @java.lang.Override public io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse build() { io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse buildPartial() { io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse result = new io.numaproj.numaflow.mapstream.v1.Mapstream.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.mapstream.v1.Mapstream.ReadyResponse) { return mergeFrom((io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse other) { if (other == io.numaproj.numaflow.mapstream.v1.Mapstream.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_ ; /** * bool ready = 1; * @return The ready. */ @java.lang.Override public boolean getReady() { return ready_; } /** * bool ready = 1; * @param value The ready to set. * @return This builder for chaining. */ public Builder setReady(boolean value) { ready_ = value; onChanged(); return this; } /** * 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:mapstream.v1.ReadyResponse) } // @@protoc_insertion_point(class_scope:mapstream.v1.ReadyResponse) private static final io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.numaproj.numaflow.mapstream.v1.Mapstream.ReadyResponse(); } public static io.numaproj.numaflow.mapstream.v1.Mapstream.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.mapstream.v1.Mapstream.ReadyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_mapstream_v1_MapStreamRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_mapstream_v1_MapStreamRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mapstream_v1_MapStreamResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_mapstream_v1_MapStreamResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mapstream_v1_MapStreamResponse_Result_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_mapstream_v1_MapStreamResponse_Result_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mapstream_v1_ReadyResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_mapstream_v1_ReadyResponse_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\034mapstream/v1/mapstream.proto\022\014mapstrea" + "m.v1\032\037google/protobuf/timestamp.proto\032\033g" + "oogle/protobuf/empty.proto\"\216\001\n\020MapStream" + "Request\022\014\n\004keys\030\001 \003(\t\022\r\n\005value\030\002 \001(\014\022.\n\n" + "event_time\030\003 \001(\0132\032.google.protobuf.Times" + "tamp\022-\n\twatermark\030\004 \001(\0132\032.google.protobu" + "f.Timestamp\"\200\001\n\021MapStreamResponse\0226\n\006res" + "ult\030\001 \001(\0132&.mapstream.v1.MapStreamRespon" + "se.Result\0323\n\006Result\022\014\n\004keys\030\001 \003(\t\022\r\n\005val" + "ue\030\002 \001(\014\022\014\n\004tags\030\003 \003(\t\"\036\n\rReadyResponse\022" + "\r\n\005ready\030\001 \001(\0102\235\001\n\tMapStream\022P\n\013MapStrea" + "mFn\022\036.mapstream.v1.MapStreamRequest\032\037.ma" + "pstream.v1.MapStreamResponse0\001\022>\n\007IsRead" + "y\022\026.google.protobuf.Empty\032\033.mapstream.v1" + ".ReadyResponseB#\n!io.numaproj.numaflow.m" + "apstream.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_mapstream_v1_MapStreamRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_mapstream_v1_MapStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_mapstream_v1_MapStreamRequest_descriptor, new java.lang.String[] { "Keys", "Value", "EventTime", "Watermark", }); internal_static_mapstream_v1_MapStreamResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_mapstream_v1_MapStreamResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_mapstream_v1_MapStreamResponse_descriptor, new java.lang.String[] { "Result", }); internal_static_mapstream_v1_MapStreamResponse_Result_descriptor = internal_static_mapstream_v1_MapStreamResponse_descriptor.getNestedTypes().get(0); internal_static_mapstream_v1_MapStreamResponse_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_mapstream_v1_MapStreamResponse_Result_descriptor, new java.lang.String[] { "Keys", "Value", "Tags", }); internal_static_mapstream_v1_ReadyResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_mapstream_v1_ReadyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_mapstream_v1_ReadyResponse_descriptor, new java.lang.String[] { "Ready", }); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy