() {
+
+ public INLONG_COMPRESSED_TYPE findValueByNumber(int number) {
+ return INLONG_COMPRESSED_TYPE.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final INLONG_COMPRESSED_TYPE[] VALUES = values();
+
+ public static INLONG_COMPRESSED_TYPE valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private INLONG_COMPRESSED_TYPE(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:org.apache.inlong.sdk.commons.protocol.INLONG_COMPRESSED_TYPE)
+ }
+
+ /**
+ * Protobuf enum {@code org.apache.inlong.sdk.commons.protocol.ResultCode}
+ */
+ public enum ResultCode
+ implements
+ com.google.protobuf.ProtocolMessageEnum {
+
+ /**
+ *
+ * success
+ *
+ *
+ * SUCCUSS = 0;
+ */
+ SUCCUSS(0),
+ /**
+ *
+ * general error code
+ *
+ *
+ * FAIL = -1;
+ */
+ FAIL(-1),
+ /**
+ *
+ * not support version
+ *
+ *
+ * ERR_VERSION_ERROR = -101;
+ */
+ ERR_VERSION_ERROR(-101),
+ /**
+ *
+ * error length, the length is negitive or over.
+ *
+ *
+ * ERR_LENGTH_ERROR = -102;
+ */
+ ERR_LENGTH_ERROR(-102),
+ /**
+ *
+ * Proxy rejects the request, because proxy can not process more data, or the cache cluster can not be connected.
+ *
+ *
+ * ERR_REJECT = -103;
+ */
+ ERR_REJECT(-103),
+ /**
+ *
+ * request data can not be decoded with PB protocol.
+ *
+ *
+ * ERR_PACKAGE_ERROR = -104;
+ */
+ ERR_PACKAGE_ERROR(-104),
+ /**
+ *
+ * inlongGroupId or inlongStreamId is bad; The length is wrong, or the CRC check is wrong.
+ *
+ *
+ * ERR_ID_ERROR = -105;
+ */
+ ERR_ID_ERROR(-105),
+ ;
+
+ /**
+ *
+ * success
+ *
+ *
+ * SUCCUSS = 0;
+ */
+ public static final int SUCCUSS_VALUE = 0;
+ /**
+ *
+ * general error code
+ *
+ *
+ * FAIL = -1;
+ */
+ public static final int FAIL_VALUE = -1;
+ /**
+ *
+ * not support version
+ *
+ *
+ * ERR_VERSION_ERROR = -101;
+ */
+ public static final int ERR_VERSION_ERROR_VALUE = -101;
+ /**
+ *
+ * error length, the length is negitive or over.
+ *
+ *
+ * ERR_LENGTH_ERROR = -102;
+ */
+ public static final int ERR_LENGTH_ERROR_VALUE = -102;
+ /**
+ *
+ * Proxy rejects the request, because proxy can not process more data, or the cache cluster can not be connected.
+ *
+ *
+ * ERR_REJECT = -103;
+ */
+ public static final int ERR_REJECT_VALUE = -103;
+ /**
+ *
+ * request data can not be decoded with PB protocol.
+ *
+ *
+ * ERR_PACKAGE_ERROR = -104;
+ */
+ public static final int ERR_PACKAGE_ERROR_VALUE = -104;
+ /**
+ *
+ * inlongGroupId or inlongStreamId is bad; The length is wrong, or the CRC check is wrong.
+ *
+ *
+ * ERR_ID_ERROR = -105;
+ */
+ public static final int ERR_ID_ERROR_VALUE = -105;
+
+ public final int getNumber() {
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ResultCode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static ResultCode forNumber(int value) {
+ switch (value) {
+ case 0:
+ return SUCCUSS;
+ case -1:
+ return FAIL;
+ case -101:
+ return ERR_VERSION_ERROR;
+ case -102:
+ return ERR_LENGTH_ERROR;
+ case -103:
+ return ERR_REJECT;
+ case -104:
+ return ERR_PACKAGE_ERROR;
+ case -105:
+ return ERR_ID_ERROR;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+
+ public ResultCode findValueByNumber(int number) {
+ return ResultCode.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.getDescriptor().getEnumTypes().get(1);
+ }
+
+ private static final ResultCode[] VALUES = values();
+
+ public static ResultCode valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private ResultCode(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:org.apache.inlong.sdk.commons.protocol.ResultCode)
+ }
+
+ public interface MapFieldEntryOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:org.apache.inlong.sdk.commons.protocol.MapFieldEntry)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional string key = 1;
+ * @return Whether the key field is set.
+ */
+ boolean hasKey();
+ /**
+ * optional string key = 1;
+ * @return The key.
+ */
+ java.lang.String getKey();
+ /**
+ * optional string key = 1;
+ * @return The bytes for key.
+ */
+ com.google.protobuf.ByteString getKeyBytes();
+
+ /**
+ * optional string value = 2;
+ * @return Whether the value field is set.
+ */
+ boolean hasValue();
+ /**
+ * optional string value = 2;
+ * @return The value.
+ */
+ java.lang.String getValue();
+ /**
+ * optional string value = 2;
+ * @return The bytes for value.
+ */
+ com.google.protobuf.ByteString getValueBytes();
+ }
+ /**
+ * Protobuf type {@code org.apache.inlong.sdk.commons.protocol.MapFieldEntry}
+ */
+ public static final class MapFieldEntry
+ extends
+ com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:org.apache.inlong.sdk.commons.protocol.MapFieldEntry)
+ MapFieldEntryOrBuilder {
+
+ private static final long serialVersionUID = 0L;
+ // Use MapFieldEntry.newBuilder() to construct.
+ private MapFieldEntry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MapFieldEntry() {
+ key_ = "";
+ value_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new MapFieldEntry();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MapFieldEntry(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ key_ = bs;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ value_ = bs;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MapFieldEntry_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MapFieldEntry_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.class,
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int KEY_FIELD_NUMBER = 1;
+ private volatile java.lang.Object key_;
+ /**
+ * optional string key = 1;
+ * @return Whether the key field is set.
+ */
+ @java.lang.Override
+ public boolean hasKey() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string key = 1;
+ * @return The key.
+ */
+ @java.lang.Override
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ key_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string key = 1;
+ * @return The bytes for key.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object value_;
+ /**
+ * optional string value = 2;
+ * @return Whether the value field is set.
+ */
+ @java.lang.Override
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional string value = 2;
+ * @return The value.
+ */
+ @java.lang.Override
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ value_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string value = 2;
+ * @return The bytes for value.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry)) {
+ return super.equals(obj);
+ }
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry other =
+ (org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry) obj;
+
+ if (hasKey() != other.hasKey())
+ return false;
+ if (hasKey()) {
+ if (!getKey()
+ .equals(other.getKey()))
+ return false;
+ }
+ if (hasValue() != other.hasValue())
+ return false;
+ if (hasValue()) {
+ if (!getValue()
+ .equals(other.getValue()))
+ return false;
+ }
+ if (!unknownFields.equals(other.unknownFields))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasKey()) {
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ }
+ if (hasValue()) {
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry parseDelimitedFrom(
+ java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry 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 org.apache.inlong.sdk.commons.protocol.MapFieldEntry}
+ */
+ public static final class Builder
+ extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:org.apache.inlong.sdk.commons.protocol.MapFieldEntry)
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntryOrBuilder {
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MapFieldEntry_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MapFieldEntry_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.class,
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.Builder.class);
+ }
+
+ // Construct using org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ key_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ value_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MapFieldEntry_descriptor;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry getDefaultInstanceForType() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry build() {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry buildPartial() {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry result =
+ new org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.key_ = key_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.value_ = value_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry) {
+ return mergeFrom((org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry other) {
+ if (other == org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.getDefaultInstance())
+ return this;
+ if (other.hasKey()) {
+ bitField0_ |= 0x00000001;
+ key_ = other.key_;
+ onChanged();
+ }
+ if (other.hasValue()) {
+ bitField0_ |= 0x00000002;
+ value_ = other.value_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ 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 {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object key_ = "";
+ /**
+ * optional string key = 1;
+ * @return Whether the key field is set.
+ */
+ public boolean hasKey() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string key = 1;
+ * @return The key.
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ key_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string key = 1;
+ * @return The bytes for key.
+ */
+ public com.google.protobuf.ByteString getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string key = 1;
+ * @param value The key to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string key = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearKey() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string key = 1;
+ * @param value The bytes for key to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object value_ = "";
+ /**
+ * optional string value = 2;
+ * @return Whether the value field is set.
+ */
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional string value = 2;
+ * @return The value.
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ value_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string value = 2;
+ * @return The bytes for value.
+ */
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string value = 2;
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string value = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string value = 2;
+ * @param value The bytes for value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ value_ = 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:org.apache.inlong.sdk.commons.protocol.MapFieldEntry)
+ }
+
+ // @@protoc_insertion_point(class_scope:org.apache.inlong.sdk.commons.protocol.MapFieldEntry)
+ private static final org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry();
+ }
+
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated
+ public static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+
+ @java.lang.Override
+ public MapFieldEntry parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MapFieldEntry(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface MessagePackHeaderOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:org.apache.inlong.sdk.commons.protocol.MessagePackHeader)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *inlongGroupId
+ *
+ *
+ * required string inlongGroupId = 1;
+ * @return Whether the inlongGroupId field is set.
+ */
+ boolean hasInlongGroupId();
+ /**
+ *
+ *inlongGroupId
+ *
+ *
+ * required string inlongGroupId = 1;
+ * @return The inlongGroupId.
+ */
+ java.lang.String getInlongGroupId();
+ /**
+ *
+ *inlongGroupId
+ *
+ *
+ * required string inlongGroupId = 1;
+ * @return The bytes for inlongGroupId.
+ */
+ com.google.protobuf.ByteString getInlongGroupIdBytes();
+
+ /**
+ *
+ *inlongStreamId
+ *
+ *
+ * required string inlongStreamId = 2;
+ * @return Whether the inlongStreamId field is set.
+ */
+ boolean hasInlongStreamId();
+ /**
+ *
+ *inlongStreamId
+ *
+ *
+ * required string inlongStreamId = 2;
+ * @return The inlongStreamId.
+ */
+ java.lang.String getInlongStreamId();
+ /**
+ *
+ *inlongStreamId
+ *
+ *
+ * required string inlongStreamId = 2;
+ * @return The bytes for inlongStreamId.
+ */
+ com.google.protobuf.ByteString getInlongStreamIdBytes();
+
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 3;
+ * @return Whether the packId field is set.
+ */
+ boolean hasPackId();
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 3;
+ * @return The packId.
+ */
+ long getPackId();
+
+ /**
+ *
+ *pack time, milliseconds
+ *
+ *
+ * required int64 packTime = 4;
+ * @return Whether the packTime field is set.
+ */
+ boolean hasPackTime();
+ /**
+ *
+ *pack time, milliseconds
+ *
+ *
+ * required int64 packTime = 4;
+ * @return The packTime.
+ */
+ long getPackTime();
+
+ /**
+ *
+ *message count
+ *
+ *
+ * required int32 msgCount = 5;
+ * @return Whether the msgCount field is set.
+ */
+ boolean hasMsgCount();
+ /**
+ *
+ *message count
+ *
+ *
+ * required int32 msgCount = 5;
+ * @return The msgCount.
+ */
+ int getMsgCount();
+
+ /**
+ *
+ *total length of raw messages body
+ *
+ *
+ * required int32 srcLength = 6;
+ * @return Whether the srcLength field is set.
+ */
+ boolean hasSrcLength();
+ /**
+ *
+ *total length of raw messages body
+ *
+ *
+ * required int32 srcLength = 6;
+ * @return The srcLength.
+ */
+ int getSrcLength();
+
+ /**
+ *
+ *compress length of messages
+ *
+ *
+ * required int32 compressLen = 7;
+ * @return Whether the compressLen field is set.
+ */
+ boolean hasCompressLen();
+ /**
+ *
+ *compress length of messages
+ *
+ *
+ * required int32 compressLen = 7;
+ * @return The compressLen.
+ */
+ int getCompressLen();
+
+ /**
+ *
+ *compress type
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.INLONG_COMPRESSED_TYPE compressType = 8;
+ * @return Whether the compressType field is set.
+ */
+ boolean hasCompressType();
+ /**
+ *
+ *compress type
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.INLONG_COMPRESSED_TYPE compressType = 8;
+ * @return The compressType.
+ */
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.INLONG_COMPRESSED_TYPE getCompressType();
+
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ java.util.List getParamsList();
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry getParams(int index);
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ int getParamsCount();
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ java.util.List extends org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntryOrBuilder> getParamsOrBuilderList();
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntryOrBuilder getParamsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code org.apache.inlong.sdk.commons.protocol.MessagePackHeader}
+ */
+ public static final class MessagePackHeader
+ extends
+ com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:org.apache.inlong.sdk.commons.protocol.MessagePackHeader)
+ MessagePackHeaderOrBuilder {
+
+ private static final long serialVersionUID = 0L;
+ // Use MessagePackHeader.newBuilder() to construct.
+ private MessagePackHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MessagePackHeader() {
+ inlongGroupId_ = "";
+ inlongStreamId_ = "";
+ compressType_ = 0;
+ params_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new MessagePackHeader();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MessagePackHeader(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ inlongGroupId_ = bs;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ inlongStreamId_ = bs;
+ break;
+ }
+ case 24: {
+ bitField0_ |= 0x00000004;
+ packId_ = input.readInt64();
+ break;
+ }
+ case 32: {
+ bitField0_ |= 0x00000008;
+ packTime_ = input.readInt64();
+ break;
+ }
+ case 40: {
+ bitField0_ |= 0x00000010;
+ msgCount_ = input.readInt32();
+ break;
+ }
+ case 48: {
+ bitField0_ |= 0x00000020;
+ srcLength_ = input.readInt32();
+ break;
+ }
+ case 56: {
+ bitField0_ |= 0x00000040;
+ compressLen_ = input.readInt32();
+ break;
+ }
+ case 64: {
+ int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.INLONG_COMPRESSED_TYPE value =
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.INLONG_COMPRESSED_TYPE
+ .valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(8, rawValue);
+ } else {
+ bitField0_ |= 0x00000080;
+ compressType_ = rawValue;
+ }
+ break;
+ }
+ case 74: {
+ if (!((mutable_bitField0_ & 0x00000100) != 0)) {
+ params_ =
+ new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000100;
+ }
+ params_.add(
+ input.readMessage(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.PARSER,
+ extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000100) != 0)) {
+ params_ = java.util.Collections.unmodifiableList(params_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessagePackHeader_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessagePackHeader_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.class,
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int INLONGGROUPID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object inlongGroupId_;
+ /**
+ *
+ *inlongGroupId
+ *
+ *
+ * required string inlongGroupId = 1;
+ * @return Whether the inlongGroupId field is set.
+ */
+ @java.lang.Override
+ public boolean hasInlongGroupId() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *inlongGroupId
+ *
+ *
+ * required string inlongGroupId = 1;
+ * @return The inlongGroupId.
+ */
+ @java.lang.Override
+ public java.lang.String getInlongGroupId() {
+ java.lang.Object ref = inlongGroupId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ inlongGroupId_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *inlongGroupId
+ *
+ *
+ * required string inlongGroupId = 1;
+ * @return The bytes for inlongGroupId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInlongGroupIdBytes() {
+ java.lang.Object ref = inlongGroupId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ inlongGroupId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INLONGSTREAMID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object inlongStreamId_;
+ /**
+ *
+ *inlongStreamId
+ *
+ *
+ * required string inlongStreamId = 2;
+ * @return Whether the inlongStreamId field is set.
+ */
+ @java.lang.Override
+ public boolean hasInlongStreamId() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *inlongStreamId
+ *
+ *
+ * required string inlongStreamId = 2;
+ * @return The inlongStreamId.
+ */
+ @java.lang.Override
+ public java.lang.String getInlongStreamId() {
+ java.lang.Object ref = inlongStreamId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ inlongStreamId_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *inlongStreamId
+ *
+ *
+ * required string inlongStreamId = 2;
+ * @return The bytes for inlongStreamId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInlongStreamIdBytes() {
+ java.lang.Object ref = inlongStreamId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ inlongStreamId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PACKID_FIELD_NUMBER = 3;
+ private long packId_;
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 3;
+ * @return Whether the packId field is set.
+ */
+ @java.lang.Override
+ public boolean hasPackId() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 3;
+ * @return The packId.
+ */
+ @java.lang.Override
+ public long getPackId() {
+ return packId_;
+ }
+
+ public static final int PACKTIME_FIELD_NUMBER = 4;
+ private long packTime_;
+ /**
+ *
+ *pack time, milliseconds
+ *
+ *
+ * required int64 packTime = 4;
+ * @return Whether the packTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasPackTime() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *pack time, milliseconds
+ *
+ *
+ * required int64 packTime = 4;
+ * @return The packTime.
+ */
+ @java.lang.Override
+ public long getPackTime() {
+ return packTime_;
+ }
+
+ public static final int MSGCOUNT_FIELD_NUMBER = 5;
+ private int msgCount_;
+ /**
+ *
+ *message count
+ *
+ *
+ * required int32 msgCount = 5;
+ * @return Whether the msgCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasMsgCount() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *message count
+ *
+ *
+ * required int32 msgCount = 5;
+ * @return The msgCount.
+ */
+ @java.lang.Override
+ public int getMsgCount() {
+ return msgCount_;
+ }
+
+ public static final int SRCLENGTH_FIELD_NUMBER = 6;
+ private int srcLength_;
+ /**
+ *
+ *total length of raw messages body
+ *
+ *
+ * required int32 srcLength = 6;
+ * @return Whether the srcLength field is set.
+ */
+ @java.lang.Override
+ public boolean hasSrcLength() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *total length of raw messages body
+ *
+ *
+ * required int32 srcLength = 6;
+ * @return The srcLength.
+ */
+ @java.lang.Override
+ public int getSrcLength() {
+ return srcLength_;
+ }
+
+ public static final int COMPRESSLEN_FIELD_NUMBER = 7;
+ private int compressLen_;
+ /**
+ *
+ *compress length of messages
+ *
+ *
+ * required int32 compressLen = 7;
+ * @return Whether the compressLen field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompressLen() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ *
+ *compress length of messages
+ *
+ *
+ * required int32 compressLen = 7;
+ * @return The compressLen.
+ */
+ @java.lang.Override
+ public int getCompressLen() {
+ return compressLen_;
+ }
+
+ public static final int COMPRESSTYPE_FIELD_NUMBER = 8;
+ private int compressType_;
+ /**
+ *
+ *compress type
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.INLONG_COMPRESSED_TYPE compressType = 8;
+ * @return Whether the compressType field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompressType() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ *
+ *compress type
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.INLONG_COMPRESSED_TYPE compressType = 8;
+ * @return The compressType.
+ */
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.INLONG_COMPRESSED_TYPE getCompressType() {
+ @SuppressWarnings("deprecation")
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.INLONG_COMPRESSED_TYPE result =
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.INLONG_COMPRESSED_TYPE.valueOf(compressType_);
+ return result == null
+ ? org.apache.inlong.sdk.commons.protocol.ProxySdk.INLONG_COMPRESSED_TYPE.INLONG_NO_COMPRESS
+ : result;
+ }
+
+ public static final int PARAMS_FIELD_NUMBER = 9;
+ private java.util.List params_;
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ @java.lang.Override
+ public java.util.List getParamsList() {
+ return params_;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ @java.lang.Override
+ public java.util.List extends org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntryOrBuilder> getParamsOrBuilderList() {
+ return params_;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ @java.lang.Override
+ public int getParamsCount() {
+ return params_.size();
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry getParams(int index) {
+ return params_.get(index);
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntryOrBuilder getParamsOrBuilder(
+ int index) {
+ return params_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ if (!hasInlongGroupId()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasInlongStreamId()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasPackId()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasPackTime()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasMsgCount()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasSrcLength()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasCompressLen()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasCompressType()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inlongGroupId_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inlongStreamId_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeInt64(3, packId_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeInt64(4, packTime_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeInt32(5, msgCount_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeInt32(6, srcLength_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeInt32(7, compressLen_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ output.writeEnum(8, compressType_);
+ }
+ for (int i = 0; i < params_.size(); i++) {
+ output.writeMessage(9, params_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inlongGroupId_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inlongStreamId_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(3, packId_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(4, packTime_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(5, msgCount_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(6, srcLength_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(7, compressLen_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(8, compressType_);
+ }
+ for (int i = 0; i < params_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(9, params_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader)) {
+ return super.equals(obj);
+ }
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader other =
+ (org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader) obj;
+
+ if (hasInlongGroupId() != other.hasInlongGroupId())
+ return false;
+ if (hasInlongGroupId()) {
+ if (!getInlongGroupId()
+ .equals(other.getInlongGroupId()))
+ return false;
+ }
+ if (hasInlongStreamId() != other.hasInlongStreamId())
+ return false;
+ if (hasInlongStreamId()) {
+ if (!getInlongStreamId()
+ .equals(other.getInlongStreamId()))
+ return false;
+ }
+ if (hasPackId() != other.hasPackId())
+ return false;
+ if (hasPackId()) {
+ if (getPackId() != other.getPackId())
+ return false;
+ }
+ if (hasPackTime() != other.hasPackTime())
+ return false;
+ if (hasPackTime()) {
+ if (getPackTime() != other.getPackTime())
+ return false;
+ }
+ if (hasMsgCount() != other.hasMsgCount())
+ return false;
+ if (hasMsgCount()) {
+ if (getMsgCount() != other.getMsgCount())
+ return false;
+ }
+ if (hasSrcLength() != other.hasSrcLength())
+ return false;
+ if (hasSrcLength()) {
+ if (getSrcLength() != other.getSrcLength())
+ return false;
+ }
+ if (hasCompressLen() != other.hasCompressLen())
+ return false;
+ if (hasCompressLen()) {
+ if (getCompressLen() != other.getCompressLen())
+ return false;
+ }
+ if (hasCompressType() != other.hasCompressType())
+ return false;
+ if (hasCompressType()) {
+ if (compressType_ != other.compressType_)
+ return false;
+ }
+ if (!getParamsList()
+ .equals(other.getParamsList()))
+ return false;
+ if (!unknownFields.equals(other.unknownFields))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasInlongGroupId()) {
+ hash = (37 * hash) + INLONGGROUPID_FIELD_NUMBER;
+ hash = (53 * hash) + getInlongGroupId().hashCode();
+ }
+ if (hasInlongStreamId()) {
+ hash = (37 * hash) + INLONGSTREAMID_FIELD_NUMBER;
+ hash = (53 * hash) + getInlongStreamId().hashCode();
+ }
+ if (hasPackId()) {
+ hash = (37 * hash) + PACKID_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPackId());
+ }
+ if (hasPackTime()) {
+ hash = (37 * hash) + PACKTIME_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPackTime());
+ }
+ if (hasMsgCount()) {
+ hash = (37 * hash) + MSGCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getMsgCount();
+ }
+ if (hasSrcLength()) {
+ hash = (37 * hash) + SRCLENGTH_FIELD_NUMBER;
+ hash = (53 * hash) + getSrcLength();
+ }
+ if (hasCompressLen()) {
+ hash = (37 * hash) + COMPRESSLEN_FIELD_NUMBER;
+ hash = (53 * hash) + getCompressLen();
+ }
+ if (hasCompressType()) {
+ hash = (37 * hash) + COMPRESSTYPE_FIELD_NUMBER;
+ hash = (53 * hash) + compressType_;
+ }
+ if (getParamsCount() > 0) {
+ hash = (37 * hash) + PARAMS_FIELD_NUMBER;
+ hash = (53 * hash) + getParamsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader parseFrom(
+ java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader parseDelimitedFrom(
+ java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader 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 org.apache.inlong.sdk.commons.protocol.MessagePackHeader}
+ */
+ public static final class Builder
+ extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:org.apache.inlong.sdk.commons.protocol.MessagePackHeader)
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeaderOrBuilder {
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessagePackHeader_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessagePackHeader_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.class,
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.Builder.class);
+ }
+
+ // Construct using org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getParamsFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ inlongGroupId_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ inlongStreamId_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ packId_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ packTime_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ msgCount_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ srcLength_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ compressLen_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ compressType_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ if (paramsBuilder_ == null) {
+ params_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ } else {
+ paramsBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessagePackHeader_descriptor;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader getDefaultInstanceForType() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader build() {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader buildPartial() {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader result =
+ new org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.inlongGroupId_ = inlongGroupId_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.inlongStreamId_ = inlongStreamId_;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.packId_ = packId_;
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.packTime_ = packTime_;
+ to_bitField0_ |= 0x00000008;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.msgCount_ = msgCount_;
+ to_bitField0_ |= 0x00000010;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.srcLength_ = srcLength_;
+ to_bitField0_ |= 0x00000020;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.compressLen_ = compressLen_;
+ to_bitField0_ |= 0x00000040;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ to_bitField0_ |= 0x00000080;
+ }
+ result.compressType_ = compressType_;
+ if (paramsBuilder_ == null) {
+ if (((bitField0_ & 0x00000100) != 0)) {
+ params_ = java.util.Collections.unmodifiableList(params_);
+ bitField0_ = (bitField0_ & ~0x00000100);
+ }
+ result.params_ = params_;
+ } else {
+ result.params_ = paramsBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader) {
+ return mergeFrom((org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader other) {
+ if (other == org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.getDefaultInstance())
+ return this;
+ if (other.hasInlongGroupId()) {
+ bitField0_ |= 0x00000001;
+ inlongGroupId_ = other.inlongGroupId_;
+ onChanged();
+ }
+ if (other.hasInlongStreamId()) {
+ bitField0_ |= 0x00000002;
+ inlongStreamId_ = other.inlongStreamId_;
+ onChanged();
+ }
+ if (other.hasPackId()) {
+ setPackId(other.getPackId());
+ }
+ if (other.hasPackTime()) {
+ setPackTime(other.getPackTime());
+ }
+ if (other.hasMsgCount()) {
+ setMsgCount(other.getMsgCount());
+ }
+ if (other.hasSrcLength()) {
+ setSrcLength(other.getSrcLength());
+ }
+ if (other.hasCompressLen()) {
+ setCompressLen(other.getCompressLen());
+ }
+ if (other.hasCompressType()) {
+ setCompressType(other.getCompressType());
+ }
+ if (paramsBuilder_ == null) {
+ if (!other.params_.isEmpty()) {
+ if (params_.isEmpty()) {
+ params_ = other.params_;
+ bitField0_ = (bitField0_ & ~0x00000100);
+ } else {
+ ensureParamsIsMutable();
+ params_.addAll(other.params_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.params_.isEmpty()) {
+ if (paramsBuilder_.isEmpty()) {
+ paramsBuilder_.dispose();
+ paramsBuilder_ = null;
+ params_ = other.params_;
+ bitField0_ = (bitField0_ & ~0x00000100);
+ paramsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getParamsFieldBuilder()
+ : null;
+ } else {
+ paramsBuilder_.addAllMessages(other.params_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ if (!hasInlongGroupId()) {
+ return false;
+ }
+ if (!hasInlongStreamId()) {
+ return false;
+ }
+ if (!hasPackId()) {
+ return false;
+ }
+ if (!hasPackTime()) {
+ return false;
+ }
+ if (!hasMsgCount()) {
+ return false;
+ }
+ if (!hasSrcLength()) {
+ return false;
+ }
+ if (!hasCompressLen()) {
+ return false;
+ }
+ if (!hasCompressType()) {
+ return false;
+ }
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object inlongGroupId_ = "";
+ /**
+ *
+ *inlongGroupId
+ *
+ *
+ * required string inlongGroupId = 1;
+ * @return Whether the inlongGroupId field is set.
+ */
+ public boolean hasInlongGroupId() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *inlongGroupId
+ *
+ *
+ * required string inlongGroupId = 1;
+ * @return The inlongGroupId.
+ */
+ public java.lang.String getInlongGroupId() {
+ java.lang.Object ref = inlongGroupId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ inlongGroupId_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *inlongGroupId
+ *
+ *
+ * required string inlongGroupId = 1;
+ * @return The bytes for inlongGroupId.
+ */
+ public com.google.protobuf.ByteString getInlongGroupIdBytes() {
+ java.lang.Object ref = inlongGroupId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ inlongGroupId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *inlongGroupId
+ *
+ *
+ * required string inlongGroupId = 1;
+ * @param value The inlongGroupId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInlongGroupId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ inlongGroupId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *inlongGroupId
+ *
+ *
+ * required string inlongGroupId = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearInlongGroupId() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ inlongGroupId_ = getDefaultInstance().getInlongGroupId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *inlongGroupId
+ *
+ *
+ * required string inlongGroupId = 1;
+ * @param value The bytes for inlongGroupId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInlongGroupIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ inlongGroupId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object inlongStreamId_ = "";
+ /**
+ *
+ *inlongStreamId
+ *
+ *
+ * required string inlongStreamId = 2;
+ * @return Whether the inlongStreamId field is set.
+ */
+ public boolean hasInlongStreamId() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *inlongStreamId
+ *
+ *
+ * required string inlongStreamId = 2;
+ * @return The inlongStreamId.
+ */
+ public java.lang.String getInlongStreamId() {
+ java.lang.Object ref = inlongStreamId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ inlongStreamId_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *inlongStreamId
+ *
+ *
+ * required string inlongStreamId = 2;
+ * @return The bytes for inlongStreamId.
+ */
+ public com.google.protobuf.ByteString getInlongStreamIdBytes() {
+ java.lang.Object ref = inlongStreamId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ inlongStreamId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *inlongStreamId
+ *
+ *
+ * required string inlongStreamId = 2;
+ * @param value The inlongStreamId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInlongStreamId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ inlongStreamId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *inlongStreamId
+ *
+ *
+ * required string inlongStreamId = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearInlongStreamId() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ inlongStreamId_ = getDefaultInstance().getInlongStreamId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *inlongStreamId
+ *
+ *
+ * required string inlongStreamId = 2;
+ * @param value The bytes for inlongStreamId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInlongStreamIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ inlongStreamId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long packId_;
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 3;
+ * @return Whether the packId field is set.
+ */
+ @java.lang.Override
+ public boolean hasPackId() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 3;
+ * @return The packId.
+ */
+ @java.lang.Override
+ public long getPackId() {
+ return packId_;
+ }
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 3;
+ * @param value The packId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPackId(long value) {
+ bitField0_ |= 0x00000004;
+ packId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearPackId() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ packId_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long packTime_;
+ /**
+ *
+ *pack time, milliseconds
+ *
+ *
+ * required int64 packTime = 4;
+ * @return Whether the packTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasPackTime() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *pack time, milliseconds
+ *
+ *
+ * required int64 packTime = 4;
+ * @return The packTime.
+ */
+ @java.lang.Override
+ public long getPackTime() {
+ return packTime_;
+ }
+ /**
+ *
+ *pack time, milliseconds
+ *
+ *
+ * required int64 packTime = 4;
+ * @param value The packTime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPackTime(long value) {
+ bitField0_ |= 0x00000008;
+ packTime_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *pack time, milliseconds
+ *
+ *
+ * required int64 packTime = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearPackTime() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ packTime_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private int msgCount_;
+ /**
+ *
+ *message count
+ *
+ *
+ * required int32 msgCount = 5;
+ * @return Whether the msgCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasMsgCount() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *message count
+ *
+ *
+ * required int32 msgCount = 5;
+ * @return The msgCount.
+ */
+ @java.lang.Override
+ public int getMsgCount() {
+ return msgCount_;
+ }
+ /**
+ *
+ *message count
+ *
+ *
+ * required int32 msgCount = 5;
+ * @param value The msgCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMsgCount(int value) {
+ bitField0_ |= 0x00000010;
+ msgCount_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *message count
+ *
+ *
+ * required int32 msgCount = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearMsgCount() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ msgCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int srcLength_;
+ /**
+ *
+ *total length of raw messages body
+ *
+ *
+ * required int32 srcLength = 6;
+ * @return Whether the srcLength field is set.
+ */
+ @java.lang.Override
+ public boolean hasSrcLength() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *total length of raw messages body
+ *
+ *
+ * required int32 srcLength = 6;
+ * @return The srcLength.
+ */
+ @java.lang.Override
+ public int getSrcLength() {
+ return srcLength_;
+ }
+ /**
+ *
+ *total length of raw messages body
+ *
+ *
+ * required int32 srcLength = 6;
+ * @param value The srcLength to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSrcLength(int value) {
+ bitField0_ |= 0x00000020;
+ srcLength_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *total length of raw messages body
+ *
+ *
+ * required int32 srcLength = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearSrcLength() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ srcLength_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int compressLen_;
+ /**
+ *
+ *compress length of messages
+ *
+ *
+ * required int32 compressLen = 7;
+ * @return Whether the compressLen field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompressLen() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ *
+ *compress length of messages
+ *
+ *
+ * required int32 compressLen = 7;
+ * @return The compressLen.
+ */
+ @java.lang.Override
+ public int getCompressLen() {
+ return compressLen_;
+ }
+ /**
+ *
+ *compress length of messages
+ *
+ *
+ * required int32 compressLen = 7;
+ * @param value The compressLen to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCompressLen(int value) {
+ bitField0_ |= 0x00000040;
+ compressLen_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *compress length of messages
+ *
+ *
+ * required int32 compressLen = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearCompressLen() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ compressLen_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int compressType_ = 0;
+ /**
+ *
+ *compress type
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.INLONG_COMPRESSED_TYPE compressType = 8;
+ * @return Whether the compressType field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompressType() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ *
+ *compress type
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.INLONG_COMPRESSED_TYPE compressType = 8;
+ * @return The compressType.
+ */
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.INLONG_COMPRESSED_TYPE getCompressType() {
+ @SuppressWarnings("deprecation")
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.INLONG_COMPRESSED_TYPE result =
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.INLONG_COMPRESSED_TYPE.valueOf(compressType_);
+ return result == null
+ ? org.apache.inlong.sdk.commons.protocol.ProxySdk.INLONG_COMPRESSED_TYPE.INLONG_NO_COMPRESS
+ : result;
+ }
+ /**
+ *
+ *compress type
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.INLONG_COMPRESSED_TYPE compressType = 8;
+ * @param value The compressType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCompressType(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.INLONG_COMPRESSED_TYPE value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000080;
+ compressType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *compress type
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.INLONG_COMPRESSED_TYPE compressType = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearCompressType() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ compressType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List params_ =
+ java.util.Collections.emptyList();
+ private void ensureParamsIsMutable() {
+ if (!((bitField0_ & 0x00000100) != 0)) {
+ params_ = new java.util.ArrayList(
+ params_);
+ bitField0_ |= 0x00000100;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3 paramsBuilder_;
+
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public java.util.List getParamsList() {
+ if (paramsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(params_);
+ } else {
+ return paramsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public int getParamsCount() {
+ if (paramsBuilder_ == null) {
+ return params_.size();
+ } else {
+ return paramsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry getParams(int index) {
+ if (paramsBuilder_ == null) {
+ return params_.get(index);
+ } else {
+ return paramsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public Builder setParams(
+ int index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry value) {
+ if (paramsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParamsIsMutable();
+ params_.set(index, value);
+ onChanged();
+ } else {
+ paramsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public Builder setParams(
+ int index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.Builder builderForValue) {
+ if (paramsBuilder_ == null) {
+ ensureParamsIsMutable();
+ params_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ paramsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public Builder addParams(org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry value) {
+ if (paramsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParamsIsMutable();
+ params_.add(value);
+ onChanged();
+ } else {
+ paramsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public Builder addParams(
+ int index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry value) {
+ if (paramsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParamsIsMutable();
+ params_.add(index, value);
+ onChanged();
+ } else {
+ paramsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public Builder addParams(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.Builder builderForValue) {
+ if (paramsBuilder_ == null) {
+ ensureParamsIsMutable();
+ params_.add(builderForValue.build());
+ onChanged();
+ } else {
+ paramsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public Builder addParams(
+ int index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.Builder builderForValue) {
+ if (paramsBuilder_ == null) {
+ ensureParamsIsMutable();
+ params_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ paramsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public Builder addAllParams(
+ java.lang.Iterable extends org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry> values) {
+ if (paramsBuilder_ == null) {
+ ensureParamsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, params_);
+ onChanged();
+ } else {
+ paramsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public Builder clearParams() {
+ if (paramsBuilder_ == null) {
+ params_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ onChanged();
+ } else {
+ paramsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public Builder removeParams(int index) {
+ if (paramsBuilder_ == null) {
+ ensureParamsIsMutable();
+ params_.remove(index);
+ onChanged();
+ } else {
+ paramsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.Builder getParamsBuilder(
+ int index) {
+ return getParamsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntryOrBuilder getParamsOrBuilder(
+ int index) {
+ if (paramsBuilder_ == null) {
+ return params_.get(index);
+ } else {
+ return paramsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public java.util.List extends org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntryOrBuilder> getParamsOrBuilderList() {
+ if (paramsBuilder_ != null) {
+ return paramsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(params_);
+ }
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.Builder addParamsBuilder() {
+ return getParamsFieldBuilder().addBuilder(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.getDefaultInstance());
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.Builder addParamsBuilder(
+ int index) {
+ return getParamsFieldBuilder().addBuilder(
+ index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.getDefaultInstance());
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 9;
+ */
+ public java.util.List getParamsBuilderList() {
+ return getParamsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3 getParamsFieldBuilder() {
+ if (paramsBuilder_ == null) {
+ paramsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3(
+ params_,
+ ((bitField0_ & 0x00000100) != 0),
+ getParentForChildren(),
+ isClean());
+ params_ = null;
+ }
+ return paramsBuilder_;
+ }
+ @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:org.apache.inlong.sdk.commons.protocol.MessagePackHeader)
+ }
+
+ // @@protoc_insertion_point(class_scope:org.apache.inlong.sdk.commons.protocol.MessagePackHeader)
+ private static final org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader();
+ }
+
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated
+ public static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+
+ @java.lang.Override
+ public MessagePackHeader parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MessagePackHeader(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface MessageObjOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:org.apache.inlong.sdk.commons.protocol.MessageObj)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *message generation time, milliseconds
+ *
+ *
+ * required int64 msgTime = 1;
+ * @return Whether the msgTime field is set.
+ */
+ boolean hasMsgTime();
+ /**
+ *
+ *message generation time, milliseconds
+ *
+ *
+ * required int64 msgTime = 1;
+ * @return The msgTime.
+ */
+ long getMsgTime();
+
+ /**
+ *
+ * agent ip of message generation
+ *
+ *
+ * required string sourceIp = 2;
+ * @return Whether the sourceIp field is set.
+ */
+ boolean hasSourceIp();
+ /**
+ *
+ * agent ip of message generation
+ *
+ *
+ * required string sourceIp = 2;
+ * @return The sourceIp.
+ */
+ java.lang.String getSourceIp();
+ /**
+ *
+ * agent ip of message generation
+ *
+ *
+ * required string sourceIp = 2;
+ * @return The bytes for sourceIp.
+ */
+ com.google.protobuf.ByteString getSourceIpBytes();
+
+ /**
+ *
+ *message body
+ *
+ *
+ * required bytes body = 3;
+ * @return Whether the body field is set.
+ */
+ boolean hasBody();
+ /**
+ *
+ *message body
+ *
+ *
+ * required bytes body = 3;
+ * @return The body.
+ */
+ com.google.protobuf.ByteString getBody();
+
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ java.util.List getParamsList();
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry getParams(int index);
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ int getParamsCount();
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ java.util.List extends org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntryOrBuilder> getParamsOrBuilderList();
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntryOrBuilder getParamsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code org.apache.inlong.sdk.commons.protocol.MessageObj}
+ */
+ public static final class MessageObj
+ extends
+ com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:org.apache.inlong.sdk.commons.protocol.MessageObj)
+ MessageObjOrBuilder {
+
+ private static final long serialVersionUID = 0L;
+ // Use MessageObj.newBuilder() to construct.
+ private MessageObj(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MessageObj() {
+ sourceIp_ = "";
+ body_ = com.google.protobuf.ByteString.EMPTY;
+ params_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new MessageObj();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MessageObj(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ bitField0_ |= 0x00000001;
+ msgTime_ = input.readInt64();
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ sourceIp_ = bs;
+ break;
+ }
+ case 26: {
+ bitField0_ |= 0x00000004;
+ body_ = input.readBytes();
+ break;
+ }
+ case 34: {
+ if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+ params_ =
+ new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000008;
+ }
+ params_.add(
+ input.readMessage(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.PARSER,
+ extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000008) != 0)) {
+ params_ = java.util.Collections.unmodifiableList(params_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessageObj_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessageObj_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.class,
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int MSGTIME_FIELD_NUMBER = 1;
+ private long msgTime_;
+ /**
+ *
+ *message generation time, milliseconds
+ *
+ *
+ * required int64 msgTime = 1;
+ * @return Whether the msgTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasMsgTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *message generation time, milliseconds
+ *
+ *
+ * required int64 msgTime = 1;
+ * @return The msgTime.
+ */
+ @java.lang.Override
+ public long getMsgTime() {
+ return msgTime_;
+ }
+
+ public static final int SOURCEIP_FIELD_NUMBER = 2;
+ private volatile java.lang.Object sourceIp_;
+ /**
+ *
+ * agent ip of message generation
+ *
+ *
+ * required string sourceIp = 2;
+ * @return Whether the sourceIp field is set.
+ */
+ @java.lang.Override
+ public boolean hasSourceIp() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ * agent ip of message generation
+ *
+ *
+ * required string sourceIp = 2;
+ * @return The sourceIp.
+ */
+ @java.lang.Override
+ public java.lang.String getSourceIp() {
+ java.lang.Object ref = sourceIp_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ sourceIp_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ * agent ip of message generation
+ *
+ *
+ * required string sourceIp = 2;
+ * @return The bytes for sourceIp.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSourceIpBytes() {
+ java.lang.Object ref = sourceIp_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sourceIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BODY_FIELD_NUMBER = 3;
+ private com.google.protobuf.ByteString body_;
+ /**
+ *
+ *message body
+ *
+ *
+ * required bytes body = 3;
+ * @return Whether the body field is set.
+ */
+ @java.lang.Override
+ public boolean hasBody() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *message body
+ *
+ *
+ * required bytes body = 3;
+ * @return The body.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBody() {
+ return body_;
+ }
+
+ public static final int PARAMS_FIELD_NUMBER = 4;
+ private java.util.List params_;
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ @java.lang.Override
+ public java.util.List getParamsList() {
+ return params_;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ @java.lang.Override
+ public java.util.List extends org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntryOrBuilder> getParamsOrBuilderList() {
+ return params_;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ @java.lang.Override
+ public int getParamsCount() {
+ return params_.size();
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry getParams(int index) {
+ return params_.get(index);
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntryOrBuilder getParamsOrBuilder(
+ int index) {
+ return params_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ if (!hasMsgTime()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasSourceIp()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasBody()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt64(1, msgTime_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceIp_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeBytes(3, body_);
+ }
+ for (int i = 0; i < params_.size(); i++) {
+ output.writeMessage(4, params_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, msgTime_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceIp_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(3, body_);
+ }
+ for (int i = 0; i < params_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, params_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj)) {
+ return super.equals(obj);
+ }
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj other =
+ (org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj) obj;
+
+ if (hasMsgTime() != other.hasMsgTime())
+ return false;
+ if (hasMsgTime()) {
+ if (getMsgTime() != other.getMsgTime())
+ return false;
+ }
+ if (hasSourceIp() != other.hasSourceIp())
+ return false;
+ if (hasSourceIp()) {
+ if (!getSourceIp()
+ .equals(other.getSourceIp()))
+ return false;
+ }
+ if (hasBody() != other.hasBody())
+ return false;
+ if (hasBody()) {
+ if (!getBody()
+ .equals(other.getBody()))
+ return false;
+ }
+ if (!getParamsList()
+ .equals(other.getParamsList()))
+ return false;
+ if (!unknownFields.equals(other.unknownFields))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasMsgTime()) {
+ hash = (37 * hash) + MSGTIME_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMsgTime());
+ }
+ if (hasSourceIp()) {
+ hash = (37 * hash) + SOURCEIP_FIELD_NUMBER;
+ hash = (53 * hash) + getSourceIp().hashCode();
+ }
+ if (hasBody()) {
+ hash = (37 * hash) + BODY_FIELD_NUMBER;
+ hash = (53 * hash) + getBody().hashCode();
+ }
+ if (getParamsCount() > 0) {
+ hash = (37 * hash) + PARAMS_FIELD_NUMBER;
+ hash = (53 * hash) + getParamsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj parseDelimitedFrom(
+ java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj 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 org.apache.inlong.sdk.commons.protocol.MessageObj}
+ */
+ public static final class Builder
+ extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:org.apache.inlong.sdk.commons.protocol.MessageObj)
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjOrBuilder {
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessageObj_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessageObj_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.class,
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.Builder.class);
+ }
+
+ // Construct using org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getParamsFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ msgTime_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ sourceIp_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
+ body_ = com.google.protobuf.ByteString.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ if (paramsBuilder_ == null) {
+ params_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ paramsBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessageObj_descriptor;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj getDefaultInstanceForType() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj build() {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj buildPartial() {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj result =
+ new org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.msgTime_ = msgTime_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.sourceIp_ = sourceIp_;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.body_ = body_;
+ if (paramsBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
+ params_ = java.util.Collections.unmodifiableList(params_);
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.params_ = params_;
+ } else {
+ result.params_ = paramsBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj) {
+ return mergeFrom((org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj other) {
+ if (other == org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.getDefaultInstance())
+ return this;
+ if (other.hasMsgTime()) {
+ setMsgTime(other.getMsgTime());
+ }
+ if (other.hasSourceIp()) {
+ bitField0_ |= 0x00000002;
+ sourceIp_ = other.sourceIp_;
+ onChanged();
+ }
+ if (other.hasBody()) {
+ setBody(other.getBody());
+ }
+ if (paramsBuilder_ == null) {
+ if (!other.params_.isEmpty()) {
+ if (params_.isEmpty()) {
+ params_ = other.params_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ ensureParamsIsMutable();
+ params_.addAll(other.params_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.params_.isEmpty()) {
+ if (paramsBuilder_.isEmpty()) {
+ paramsBuilder_.dispose();
+ paramsBuilder_ = null;
+ params_ = other.params_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ paramsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getParamsFieldBuilder()
+ : null;
+ } else {
+ paramsBuilder_.addAllMessages(other.params_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ if (!hasMsgTime()) {
+ return false;
+ }
+ if (!hasSourceIp()) {
+ return false;
+ }
+ if (!hasBody()) {
+ return false;
+ }
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private long msgTime_;
+ /**
+ *
+ *message generation time, milliseconds
+ *
+ *
+ * required int64 msgTime = 1;
+ * @return Whether the msgTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasMsgTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *message generation time, milliseconds
+ *
+ *
+ * required int64 msgTime = 1;
+ * @return The msgTime.
+ */
+ @java.lang.Override
+ public long getMsgTime() {
+ return msgTime_;
+ }
+ /**
+ *
+ *message generation time, milliseconds
+ *
+ *
+ * required int64 msgTime = 1;
+ * @param value The msgTime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMsgTime(long value) {
+ bitField0_ |= 0x00000001;
+ msgTime_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *message generation time, milliseconds
+ *
+ *
+ * required int64 msgTime = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearMsgTime() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ msgTime_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sourceIp_ = "";
+ /**
+ *
+ * agent ip of message generation
+ *
+ *
+ * required string sourceIp = 2;
+ * @return Whether the sourceIp field is set.
+ */
+ public boolean hasSourceIp() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ * agent ip of message generation
+ *
+ *
+ * required string sourceIp = 2;
+ * @return The sourceIp.
+ */
+ public java.lang.String getSourceIp() {
+ java.lang.Object ref = sourceIp_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ sourceIp_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ * agent ip of message generation
+ *
+ *
+ * required string sourceIp = 2;
+ * @return The bytes for sourceIp.
+ */
+ public com.google.protobuf.ByteString getSourceIpBytes() {
+ java.lang.Object ref = sourceIp_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sourceIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ * agent ip of message generation
+ *
+ *
+ * required string sourceIp = 2;
+ * @param value The sourceIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceIp(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ sourceIp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * agent ip of message generation
+ *
+ *
+ * required string sourceIp = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearSourceIp() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ sourceIp_ = getDefaultInstance().getSourceIp();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * agent ip of message generation
+ *
+ *
+ * required string sourceIp = 2;
+ * @param value The bytes for sourceIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceIpBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ sourceIp_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ *message body
+ *
+ *
+ * required bytes body = 3;
+ * @return Whether the body field is set.
+ */
+ @java.lang.Override
+ public boolean hasBody() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *message body
+ *
+ *
+ * required bytes body = 3;
+ * @return The body.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBody() {
+ return body_;
+ }
+ /**
+ *
+ *message body
+ *
+ *
+ * required bytes body = 3;
+ * @param value The body to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBody(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ body_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *message body
+ *
+ *
+ * required bytes body = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearBody() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ body_ = getDefaultInstance().getBody();
+ onChanged();
+ return this;
+ }
+
+ private java.util.List params_ =
+ java.util.Collections.emptyList();
+ private void ensureParamsIsMutable() {
+ if (!((bitField0_ & 0x00000008) != 0)) {
+ params_ = new java.util.ArrayList(
+ params_);
+ bitField0_ |= 0x00000008;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3 paramsBuilder_;
+
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public java.util.List getParamsList() {
+ if (paramsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(params_);
+ } else {
+ return paramsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public int getParamsCount() {
+ if (paramsBuilder_ == null) {
+ return params_.size();
+ } else {
+ return paramsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry getParams(int index) {
+ if (paramsBuilder_ == null) {
+ return params_.get(index);
+ } else {
+ return paramsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public Builder setParams(
+ int index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry value) {
+ if (paramsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParamsIsMutable();
+ params_.set(index, value);
+ onChanged();
+ } else {
+ paramsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public Builder setParams(
+ int index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.Builder builderForValue) {
+ if (paramsBuilder_ == null) {
+ ensureParamsIsMutable();
+ params_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ paramsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public Builder addParams(org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry value) {
+ if (paramsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParamsIsMutable();
+ params_.add(value);
+ onChanged();
+ } else {
+ paramsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public Builder addParams(
+ int index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry value) {
+ if (paramsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParamsIsMutable();
+ params_.add(index, value);
+ onChanged();
+ } else {
+ paramsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public Builder addParams(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.Builder builderForValue) {
+ if (paramsBuilder_ == null) {
+ ensureParamsIsMutable();
+ params_.add(builderForValue.build());
+ onChanged();
+ } else {
+ paramsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public Builder addParams(
+ int index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.Builder builderForValue) {
+ if (paramsBuilder_ == null) {
+ ensureParamsIsMutable();
+ params_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ paramsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public Builder addAllParams(
+ java.lang.Iterable extends org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry> values) {
+ if (paramsBuilder_ == null) {
+ ensureParamsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, params_);
+ onChanged();
+ } else {
+ paramsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public Builder clearParams() {
+ if (paramsBuilder_ == null) {
+ params_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ paramsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public Builder removeParams(int index) {
+ if (paramsBuilder_ == null) {
+ ensureParamsIsMutable();
+ params_.remove(index);
+ onChanged();
+ } else {
+ paramsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.Builder getParamsBuilder(
+ int index) {
+ return getParamsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntryOrBuilder getParamsOrBuilder(
+ int index) {
+ if (paramsBuilder_ == null) {
+ return params_.get(index);
+ } else {
+ return paramsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public java.util.List extends org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntryOrBuilder> getParamsOrBuilderList() {
+ if (paramsBuilder_ != null) {
+ return paramsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(params_);
+ }
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.Builder addParamsBuilder() {
+ return getParamsFieldBuilder().addBuilder(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.getDefaultInstance());
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.Builder addParamsBuilder(
+ int index) {
+ return getParamsFieldBuilder().addBuilder(
+ index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MapFieldEntry.getDefaultInstance());
+ }
+ /**
+ *
+ *additional parameters
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MapFieldEntry params = 4;
+ */
+ public java.util.List getParamsBuilderList() {
+ return getParamsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3 getParamsFieldBuilder() {
+ if (paramsBuilder_ == null) {
+ paramsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3(
+ params_,
+ ((bitField0_ & 0x00000008) != 0),
+ getParentForChildren(),
+ isClean());
+ params_ = null;
+ }
+ return paramsBuilder_;
+ }
+ @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:org.apache.inlong.sdk.commons.protocol.MessageObj)
+ }
+
+ // @@protoc_insertion_point(class_scope:org.apache.inlong.sdk.commons.protocol.MessageObj)
+ private static final org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj();
+ }
+
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated
+ public static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+
+ @java.lang.Override
+ public MessageObj parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MessageObj(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface MessageObjsOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:org.apache.inlong.sdk.commons.protocol.MessageObjs)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ java.util.List getMsgsList();
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj getMsgs(int index);
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ int getMsgsCount();
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ java.util.List extends org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjOrBuilder> getMsgsOrBuilderList();
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjOrBuilder getMsgsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code org.apache.inlong.sdk.commons.protocol.MessageObjs}
+ */
+ public static final class MessageObjs
+ extends
+ com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:org.apache.inlong.sdk.commons.protocol.MessageObjs)
+ MessageObjsOrBuilder {
+
+ private static final long serialVersionUID = 0L;
+ // Use MessageObjs.newBuilder() to construct.
+ private MessageObjs(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MessageObjs() {
+ msgs_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new MessageObjs();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MessageObjs(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ msgs_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ msgs_.add(
+ input.readMessage(org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.PARSER,
+ extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ msgs_ = java.util.Collections.unmodifiableList(msgs_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessageObjs_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessageObjs_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs.class,
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs.Builder.class);
+ }
+
+ public static final int MSGS_FIELD_NUMBER = 1;
+ private java.util.List msgs_;
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ @java.lang.Override
+ public java.util.List getMsgsList() {
+ return msgs_;
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjOrBuilder> getMsgsOrBuilderList() {
+ return msgs_;
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ @java.lang.Override
+ public int getMsgsCount() {
+ return msgs_.size();
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj getMsgs(int index) {
+ return msgs_.get(index);
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjOrBuilder getMsgsOrBuilder(
+ int index) {
+ return msgs_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ for (int i = 0; i < getMsgsCount(); i++) {
+ if (!getMsgs(i).isInitialized()) {
+ memoizedIsInitialized = 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 < msgs_.size(); i++) {
+ output.writeMessage(1, msgs_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ for (int i = 0; i < msgs_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, msgs_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs)) {
+ return super.equals(obj);
+ }
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs other =
+ (org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs) obj;
+
+ if (!getMsgsList()
+ .equals(other.getMsgsList()))
+ return false;
+ if (!unknownFields.equals(other.unknownFields))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getMsgsCount() > 0) {
+ hash = (37 * hash) + MSGS_FIELD_NUMBER;
+ hash = (53 * hash) + getMsgsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs parseDelimitedFrom(
+ java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs 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 org.apache.inlong.sdk.commons.protocol.MessageObjs}
+ */
+ public static final class Builder
+ extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:org.apache.inlong.sdk.commons.protocol.MessageObjs)
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjsOrBuilder {
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessageObjs_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessageObjs_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs.class,
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs.Builder.class);
+ }
+
+ // Construct using org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getMsgsFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (msgsBuilder_ == null) {
+ msgs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ msgsBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessageObjs_descriptor;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs getDefaultInstanceForType() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs build() {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs buildPartial() {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs result =
+ new org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs(this);
+ int from_bitField0_ = bitField0_;
+ if (msgsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ msgs_ = java.util.Collections.unmodifiableList(msgs_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.msgs_ = msgs_;
+ } else {
+ result.msgs_ = msgsBuilder_.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 org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs) {
+ return mergeFrom((org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs other) {
+ if (other == org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs.getDefaultInstance())
+ return this;
+ if (msgsBuilder_ == null) {
+ if (!other.msgs_.isEmpty()) {
+ if (msgs_.isEmpty()) {
+ msgs_ = other.msgs_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureMsgsIsMutable();
+ msgs_.addAll(other.msgs_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.msgs_.isEmpty()) {
+ if (msgsBuilder_.isEmpty()) {
+ msgsBuilder_.dispose();
+ msgsBuilder_ = null;
+ msgs_ = other.msgs_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ msgsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getMsgsFieldBuilder()
+ : null;
+ } else {
+ msgsBuilder_.addAllMessages(other.msgs_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ for (int i = 0; i < getMsgsCount(); i++) {
+ if (!getMsgs(i).isInitialized()) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List msgs_ =
+ java.util.Collections.emptyList();
+ private void ensureMsgsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ msgs_ = new java.util.ArrayList(msgs_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3 msgsBuilder_;
+
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public java.util.List getMsgsList() {
+ if (msgsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(msgs_);
+ } else {
+ return msgsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public int getMsgsCount() {
+ if (msgsBuilder_ == null) {
+ return msgs_.size();
+ } else {
+ return msgsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj getMsgs(int index) {
+ if (msgsBuilder_ == null) {
+ return msgs_.get(index);
+ } else {
+ return msgsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public Builder setMsgs(
+ int index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj value) {
+ if (msgsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMsgsIsMutable();
+ msgs_.set(index, value);
+ onChanged();
+ } else {
+ msgsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public Builder setMsgs(
+ int index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.Builder builderForValue) {
+ if (msgsBuilder_ == null) {
+ ensureMsgsIsMutable();
+ msgs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ msgsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public Builder addMsgs(org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj value) {
+ if (msgsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMsgsIsMutable();
+ msgs_.add(value);
+ onChanged();
+ } else {
+ msgsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public Builder addMsgs(
+ int index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj value) {
+ if (msgsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMsgsIsMutable();
+ msgs_.add(index, value);
+ onChanged();
+ } else {
+ msgsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public Builder addMsgs(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.Builder builderForValue) {
+ if (msgsBuilder_ == null) {
+ ensureMsgsIsMutable();
+ msgs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ msgsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public Builder addMsgs(
+ int index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.Builder builderForValue) {
+ if (msgsBuilder_ == null) {
+ ensureMsgsIsMutable();
+ msgs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ msgsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public Builder addAllMsgs(
+ java.lang.Iterable extends org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj> values) {
+ if (msgsBuilder_ == null) {
+ ensureMsgsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, msgs_);
+ onChanged();
+ } else {
+ msgsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public Builder clearMsgs() {
+ if (msgsBuilder_ == null) {
+ msgs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ msgsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public Builder removeMsgs(int index) {
+ if (msgsBuilder_ == null) {
+ ensureMsgsIsMutable();
+ msgs_.remove(index);
+ onChanged();
+ } else {
+ msgsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.Builder getMsgsBuilder(
+ int index) {
+ return getMsgsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjOrBuilder getMsgsOrBuilder(
+ int index) {
+ if (msgsBuilder_ == null) {
+ return msgs_.get(index);
+ } else {
+ return msgsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public java.util.List extends org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjOrBuilder> getMsgsOrBuilderList() {
+ if (msgsBuilder_ != null) {
+ return msgsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(msgs_);
+ }
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.Builder addMsgsBuilder() {
+ return getMsgsFieldBuilder().addBuilder(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.getDefaultInstance());
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.Builder addMsgsBuilder(
+ int index) {
+ return getMsgsFieldBuilder().addBuilder(
+ index, org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObj.getDefaultInstance());
+ }
+ /**
+ *
+ *message list
+ *
+ *
+ * repeated .org.apache.inlong.sdk.commons.protocol.MessageObj msgs = 1;
+ */
+ public java.util.List getMsgsBuilderList() {
+ return getMsgsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3 getMsgsFieldBuilder() {
+ if (msgsBuilder_ == null) {
+ msgsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3(
+ msgs_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ msgs_ = null;
+ }
+ return msgsBuilder_;
+ }
+ @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:org.apache.inlong.sdk.commons.protocol.MessageObjs)
+ }
+
+ // @@protoc_insertion_point(class_scope:org.apache.inlong.sdk.commons.protocol.MessageObjs)
+ private static final org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs();
+ }
+
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated
+ public static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+
+ @java.lang.Override
+ public MessageObjs parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MessageObjs(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessageObjs getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface MessagePackOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:org.apache.inlong.sdk.commons.protocol.MessagePack)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ * @return Whether the header field is set.
+ */
+ boolean hasHeader();
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ * @return The header.
+ */
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader getHeader();
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ */
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeaderOrBuilder getHeaderOrBuilder();
+
+ /**
+ *
+ *compressed bytes of MessageObjs serialization bytes, or MessageObjs serialization bytes(compressType=INLONG_NO_COMPRESS)
+ *
+ *
+ * required bytes compressBytes = 2;
+ * @return Whether the compressBytes field is set.
+ */
+ boolean hasCompressBytes();
+ /**
+ *
+ *compressed bytes of MessageObjs serialization bytes, or MessageObjs serialization bytes(compressType=INLONG_NO_COMPRESS)
+ *
+ *
+ * required bytes compressBytes = 2;
+ * @return The compressBytes.
+ */
+ com.google.protobuf.ByteString getCompressBytes();
+ }
+ /**
+ * Protobuf type {@code org.apache.inlong.sdk.commons.protocol.MessagePack}
+ */
+ public static final class MessagePack
+ extends
+ com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:org.apache.inlong.sdk.commons.protocol.MessagePack)
+ MessagePackOrBuilder {
+
+ private static final long serialVersionUID = 0L;
+ // Use MessagePack.newBuilder() to construct.
+ private MessagePack(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MessagePack() {
+ compressBytes_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new MessagePack();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MessagePack(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ subBuilder = header_.toBuilder();
+ }
+ header_ = input.readMessage(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.PARSER,
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(header_);
+ header_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000001;
+ break;
+ }
+ case 18: {
+ bitField0_ |= 0x00000002;
+ compressBytes_ = input.readBytes();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessagePack_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessagePack_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack.class,
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int HEADER_FIELD_NUMBER = 1;
+ private org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader header_;
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ * @return Whether the header field is set.
+ */
+ @java.lang.Override
+ public boolean hasHeader() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ * @return The header.
+ */
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader getHeader() {
+ return header_ == null
+ ? org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.getDefaultInstance()
+ : header_;
+ }
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ */
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeaderOrBuilder getHeaderOrBuilder() {
+ return header_ == null
+ ? org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.getDefaultInstance()
+ : header_;
+ }
+
+ public static final int COMPRESSBYTES_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString compressBytes_;
+ /**
+ *
+ *compressed bytes of MessageObjs serialization bytes, or MessageObjs serialization bytes(compressType=INLONG_NO_COMPRESS)
+ *
+ *
+ * required bytes compressBytes = 2;
+ * @return Whether the compressBytes field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompressBytes() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *compressed bytes of MessageObjs serialization bytes, or MessageObjs serialization bytes(compressType=INLONG_NO_COMPRESS)
+ *
+ *
+ * required bytes compressBytes = 2;
+ * @return The compressBytes.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCompressBytes() {
+ return compressBytes_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ if (!hasHeader()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasCompressBytes()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!getHeader().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getHeader());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeBytes(2, compressBytes_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getHeader());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, compressBytes_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack)) {
+ return super.equals(obj);
+ }
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack other =
+ (org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack) obj;
+
+ if (hasHeader() != other.hasHeader())
+ return false;
+ if (hasHeader()) {
+ if (!getHeader()
+ .equals(other.getHeader()))
+ return false;
+ }
+ if (hasCompressBytes() != other.hasCompressBytes())
+ return false;
+ if (hasCompressBytes()) {
+ if (!getCompressBytes()
+ .equals(other.getCompressBytes()))
+ return false;
+ }
+ if (!unknownFields.equals(other.unknownFields))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasHeader()) {
+ hash = (37 * hash) + HEADER_FIELD_NUMBER;
+ hash = (53 * hash) + getHeader().hashCode();
+ }
+ if (hasCompressBytes()) {
+ hash = (37 * hash) + COMPRESSBYTES_FIELD_NUMBER;
+ hash = (53 * hash) + getCompressBytes().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack parseDelimitedFrom(
+ java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack 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 org.apache.inlong.sdk.commons.protocol.MessagePack}
+ */
+ public static final class Builder
+ extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:org.apache.inlong.sdk.commons.protocol.MessagePack)
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackOrBuilder {
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessagePack_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessagePack_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack.class,
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack.Builder.class);
+ }
+
+ // Construct using org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getHeaderFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (headerBuilder_ == null) {
+ header_ = null;
+ } else {
+ headerBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ compressBytes_ = com.google.protobuf.ByteString.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_MessagePack_descriptor;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack getDefaultInstanceForType() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack build() {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack buildPartial() {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack result =
+ new org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ if (headerBuilder_ == null) {
+ result.header_ = header_;
+ } else {
+ result.header_ = headerBuilder_.build();
+ }
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.compressBytes_ = compressBytes_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack) {
+ return mergeFrom((org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack other) {
+ if (other == org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack.getDefaultInstance())
+ return this;
+ if (other.hasHeader()) {
+ mergeHeader(other.getHeader());
+ }
+ if (other.hasCompressBytes()) {
+ setCompressBytes(other.getCompressBytes());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ if (!hasHeader()) {
+ return false;
+ }
+ if (!hasCompressBytes()) {
+ return false;
+ }
+ if (!getHeader().isInitialized()) {
+ return false;
+ }
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader header_;
+ private com.google.protobuf.SingleFieldBuilderV3 headerBuilder_;
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ * @return Whether the header field is set.
+ */
+ public boolean hasHeader() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ * @return The header.
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader getHeader() {
+ if (headerBuilder_ == null) {
+ return header_ == null
+ ? org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.getDefaultInstance()
+ : header_;
+ } else {
+ return headerBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ */
+ public Builder setHeader(org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader value) {
+ if (headerBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ header_ = value;
+ onChanged();
+ } else {
+ headerBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ */
+ public Builder setHeader(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.Builder builderForValue) {
+ if (headerBuilder_ == null) {
+ header_ = builderForValue.build();
+ onChanged();
+ } else {
+ headerBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ */
+ public Builder mergeHeader(org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader value) {
+ if (headerBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ header_ != null &&
+ header_ != org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader
+ .getDefaultInstance()) {
+ header_ =
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.newBuilder(header_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ header_ = value;
+ }
+ onChanged();
+ } else {
+ headerBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ */
+ public Builder clearHeader() {
+ if (headerBuilder_ == null) {
+ header_ = null;
+ onChanged();
+ } else {
+ headerBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.Builder getHeaderBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getHeaderFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ */
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeaderOrBuilder getHeaderOrBuilder() {
+ if (headerBuilder_ != null) {
+ return headerBuilder_.getMessageOrBuilder();
+ } else {
+ return header_ == null
+ ? org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePackHeader.getDefaultInstance()
+ : header_;
+ }
+ }
+ /**
+ *
+ *message pack header
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.MessagePackHeader header = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3 getHeaderFieldBuilder() {
+ if (headerBuilder_ == null) {
+ headerBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3(
+ getHeader(),
+ getParentForChildren(),
+ isClean());
+ header_ = null;
+ }
+ return headerBuilder_;
+ }
+
+ private com.google.protobuf.ByteString compressBytes_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ *compressed bytes of MessageObjs serialization bytes, or MessageObjs serialization bytes(compressType=INLONG_NO_COMPRESS)
+ *
+ *
+ * required bytes compressBytes = 2;
+ * @return Whether the compressBytes field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompressBytes() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *compressed bytes of MessageObjs serialization bytes, or MessageObjs serialization bytes(compressType=INLONG_NO_COMPRESS)
+ *
+ *
+ * required bytes compressBytes = 2;
+ * @return The compressBytes.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCompressBytes() {
+ return compressBytes_;
+ }
+ /**
+ *
+ *compressed bytes of MessageObjs serialization bytes, or MessageObjs serialization bytes(compressType=INLONG_NO_COMPRESS)
+ *
+ *
+ * required bytes compressBytes = 2;
+ * @param value The compressBytes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCompressBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ compressBytes_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *compressed bytes of MessageObjs serialization bytes, or MessageObjs serialization bytes(compressType=INLONG_NO_COMPRESS)
+ *
+ *
+ * required bytes compressBytes = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCompressBytes() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ compressBytes_ = getDefaultInstance().getCompressBytes();
+ 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:org.apache.inlong.sdk.commons.protocol.MessagePack)
+ }
+
+ // @@protoc_insertion_point(class_scope:org.apache.inlong.sdk.commons.protocol.MessagePack)
+ private static final org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack();
+ }
+
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated
+ public static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+
+ @java.lang.Override
+ public MessagePack parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MessagePack(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.MessagePack getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ResponseInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:org.apache.inlong.sdk.commons.protocol.ResponseInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *response result
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.ResultCode result = 1;
+ * @return Whether the result field is set.
+ */
+ boolean hasResult();
+ /**
+ *
+ *response result
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.ResultCode result = 1;
+ * @return The result.
+ */
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResultCode getResult();
+
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 2;
+ * @return Whether the packId field is set.
+ */
+ boolean hasPackId();
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 2;
+ * @return The packId.
+ */
+ long getPackId();
+ }
+ /**
+ * Protobuf type {@code org.apache.inlong.sdk.commons.protocol.ResponseInfo}
+ */
+ public static final class ResponseInfo
+ extends
+ com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:org.apache.inlong.sdk.commons.protocol.ResponseInfo)
+ ResponseInfoOrBuilder {
+
+ private static final long serialVersionUID = 0L;
+ // Use ResponseInfo.newBuilder() to construct.
+ private ResponseInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ResponseInfo() {
+ result_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ResponseInfo();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ResponseInfo(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ int rawValue = input.readEnum();
+ @SuppressWarnings("deprecation")
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResultCode value =
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResultCode.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(1, rawValue);
+ } else {
+ bitField0_ |= 0x00000001;
+ result_ = rawValue;
+ }
+ break;
+ }
+ case 16: {
+ bitField0_ |= 0x00000002;
+ packId_ = input.readInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_ResponseInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_ResponseInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo.class,
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int RESULT_FIELD_NUMBER = 1;
+ private int result_;
+ /**
+ *
+ *response result
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.ResultCode result = 1;
+ * @return Whether the result field is set.
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *response result
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.ResultCode result = 1;
+ * @return The result.
+ */
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.ResultCode getResult() {
+ @SuppressWarnings("deprecation")
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResultCode result =
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResultCode.valueOf(result_);
+ return result == null ? org.apache.inlong.sdk.commons.protocol.ProxySdk.ResultCode.SUCCUSS : result;
+ }
+
+ public static final int PACKID_FIELD_NUMBER = 2;
+ private long packId_;
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 2;
+ * @return Whether the packId field is set.
+ */
+ @java.lang.Override
+ public boolean hasPackId() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 2;
+ * @return The packId.
+ */
+ @java.lang.Override
+ public long getPackId() {
+ return packId_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ if (!hasResult()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasPackId()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(1, result_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt64(2, packId_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, result_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, packId_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo)) {
+ return super.equals(obj);
+ }
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo other =
+ (org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo) obj;
+
+ if (hasResult() != other.hasResult())
+ return false;
+ if (hasResult()) {
+ if (result_ != other.result_)
+ return false;
+ }
+ if (hasPackId() != other.hasPackId())
+ return false;
+ if (hasPackId()) {
+ if (getPackId() != other.getPackId())
+ return false;
+ }
+ if (!unknownFields.equals(other.unknownFields))
+ 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) + result_;
+ }
+ if (hasPackId()) {
+ hash = (37 * hash) + PACKID_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPackId());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo parseDelimitedFrom(
+ java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo 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 org.apache.inlong.sdk.commons.protocol.ResponseInfo}
+ */
+ public static final class Builder
+ extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:org.apache.inlong.sdk.commons.protocol.ResponseInfo)
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfoOrBuilder {
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_ResponseInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_ResponseInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo.class,
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo.Builder.class);
+ }
+
+ // Construct using org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ result_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ packId_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.internal_static_org_apache_inlong_sdk_commons_protocol_ResponseInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo getDefaultInstanceForType() {
+ return org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo build() {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo buildPartial() {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo result =
+ new org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ to_bitField0_ |= 0x00000001;
+ }
+ result.result_ = result_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.packId_ = packId_;
+ to_bitField0_ |= 0x00000002;
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo) {
+ return mergeFrom((org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo other) {
+ if (other == org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo.getDefaultInstance())
+ return this;
+ if (other.hasResult()) {
+ setResult(other.getResult());
+ }
+ if (other.hasPackId()) {
+ setPackId(other.getPackId());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ if (!hasResult()) {
+ return false;
+ }
+ if (!hasPackId()) {
+ return false;
+ }
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private int result_ = 0;
+ /**
+ *
+ *response result
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.ResultCode result = 1;
+ * @return Whether the result field is set.
+ */
+ @java.lang.Override
+ public boolean hasResult() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *response result
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.ResultCode result = 1;
+ * @return The result.
+ */
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.ResultCode getResult() {
+ @SuppressWarnings("deprecation")
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResultCode result =
+ org.apache.inlong.sdk.commons.protocol.ProxySdk.ResultCode.valueOf(result_);
+ return result == null ? org.apache.inlong.sdk.commons.protocol.ProxySdk.ResultCode.SUCCUSS : result;
+ }
+ /**
+ *
+ *response result
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.ResultCode result = 1;
+ * @param value The result to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResult(org.apache.inlong.sdk.commons.protocol.ProxySdk.ResultCode value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ result_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *response result
+ *
+ *
+ * required .org.apache.inlong.sdk.commons.protocol.ResultCode result = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearResult() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ result_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private long packId_;
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 2;
+ * @return Whether the packId field is set.
+ */
+ @java.lang.Override
+ public boolean hasPackId() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 2;
+ * @return The packId.
+ */
+ @java.lang.Override
+ public long getPackId() {
+ return packId_;
+ }
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 2;
+ * @param value The packId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPackId(long value) {
+ bitField0_ |= 0x00000002;
+ packId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *pack id
+ *
+ *
+ * required int64 packId = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearPackId() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ packId_ = 0L;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:org.apache.inlong.sdk.commons.protocol.ResponseInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:org.apache.inlong.sdk.commons.protocol.ResponseInfo)
+ private static final org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo();
+ }
+
+ public static org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated
+ public static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+
+ @java.lang.Override
+ public ResponseInfo parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ResponseInfo(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.apache.inlong.sdk.commons.protocol.ProxySdk.ResponseInfo getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_apache_inlong_sdk_commons_protocol_MapFieldEntry_descriptor;
+ private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_org_apache_inlong_sdk_commons_protocol_MapFieldEntry_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_apache_inlong_sdk_commons_protocol_MessagePackHeader_descriptor;
+ private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_org_apache_inlong_sdk_commons_protocol_MessagePackHeader_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_apache_inlong_sdk_commons_protocol_MessageObj_descriptor;
+ private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_org_apache_inlong_sdk_commons_protocol_MessageObj_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_apache_inlong_sdk_commons_protocol_MessageObjs_descriptor;
+ private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_org_apache_inlong_sdk_commons_protocol_MessageObjs_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_apache_inlong_sdk_commons_protocol_MessagePack_descriptor;
+ private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_org_apache_inlong_sdk_commons_protocol_MessagePack_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_apache_inlong_sdk_commons_protocol_ResponseInfo_descriptor;
+ private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_org_apache_inlong_sdk_commons_protocol_ResponseInfo_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\024proto/ProxySdk.proto\022&org.apache.inlon" +
+ "g.sdk.commons.protocol\"+\n\rMapFieldEntry\022" +
+ "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\273\002\n\021MessageP" +
+ "ackHeader\022\025\n\rinlongGroupId\030\001 \002(\t\022\026\n\016inlo" +
+ "ngStreamId\030\002 \002(\t\022\016\n\006packId\030\003 \002(\003\022\020\n\010pack" +
+ "Time\030\004 \002(\003\022\020\n\010msgCount\030\005 \002(\005\022\021\n\tsrcLengt" +
+ "h\030\006 \002(\005\022\023\n\013compressLen\030\007 \002(\005\022T\n\014compress" +
+ "Type\030\010 \002(\0162>.org.apache.inlong.sdk.commo" +
+ "ns.protocol.INLONG_COMPRESSED_TYPE\022E\n\006pa" +
+ "rams\030\t \003(\01325.org.apache.inlong.sdk.commo" +
+ "ns.protocol.MapFieldEntry\"\204\001\n\nMessageObj" +
+ "\022\017\n\007msgTime\030\001 \002(\003\022\020\n\010sourceIp\030\002 \002(\t\022\014\n\004b" +
+ "ody\030\003 \002(\014\022E\n\006params\030\004 \003(\01325.org.apache.i" +
+ "nlong.sdk.commons.protocol.MapFieldEntry" +
+ "\"O\n\013MessageObjs\022@\n\004msgs\030\001 \003(\01322.org.apac" +
+ "he.inlong.sdk.commons.protocol.MessageOb" +
+ "j\"o\n\013MessagePack\022I\n\006header\030\001 \002(\01329.org.a" +
+ "pache.inlong.sdk.commons.protocol.Messag" +
+ "ePackHeader\022\025\n\rcompressBytes\030\002 \002(\014\"b\n\014Re" +
+ "sponseInfo\022B\n\006result\030\001 \002(\01622.org.apache." +
+ "inlong.sdk.commons.protocol.ResultCode\022\016" +
+ "\n\006packId\030\002 \002(\003*R\n\026INLONG_COMPRESSED_TYPE" +
+ "\022\026\n\022INLONG_NO_COMPRESS\020\000\022\r\n\tINLONG_GZ\020\001\022" +
+ "\021\n\rINLONG_SNAPPY\020\002*\277\001\n\nResultCode\022\013\n\007SUC" +
+ "CUSS\020\000\022\021\n\004FAIL\020\377\377\377\377\377\377\377\377\377\001\022\036\n\021ERR_VERSION"
+ +
+ "_ERROR\020\233\377\377\377\377\377\377\377\377\001\022\035\n\020ERR_LENGTH_ERROR\020\232\377" +
+ "\377\377\377\377\377\377\377\001\022\027\n\nERR_REJECT\020\231\377\377\377\377\377\377\377\377\001\022\036\n\021ERR"
+ +
+ "_PACKAGE_ERROR\020\230\377\377\377\377\377\377\377\377\001\022\031\n\014ERR_ID_ERRO" +
+ "R\020\227\377\377\377\377\377\377\377\377\001"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[]{
+ });
+ internal_static_org_apache_inlong_sdk_commons_protocol_MapFieldEntry_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_org_apache_inlong_sdk_commons_protocol_MapFieldEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_org_apache_inlong_sdk_commons_protocol_MapFieldEntry_descriptor,
+ new java.lang.String[]{"Key", "Value",});
+ internal_static_org_apache_inlong_sdk_commons_protocol_MessagePackHeader_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_org_apache_inlong_sdk_commons_protocol_MessagePackHeader_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_org_apache_inlong_sdk_commons_protocol_MessagePackHeader_descriptor,
+ new java.lang.String[]{"InlongGroupId", "InlongStreamId", "PackId", "PackTime", "MsgCount",
+ "SrcLength", "CompressLen", "CompressType", "Params",});
+ internal_static_org_apache_inlong_sdk_commons_protocol_MessageObj_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_org_apache_inlong_sdk_commons_protocol_MessageObj_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_org_apache_inlong_sdk_commons_protocol_MessageObj_descriptor,
+ new java.lang.String[]{"MsgTime", "SourceIp", "Body", "Params",});
+ internal_static_org_apache_inlong_sdk_commons_protocol_MessageObjs_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_org_apache_inlong_sdk_commons_protocol_MessageObjs_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_org_apache_inlong_sdk_commons_protocol_MessageObjs_descriptor,
+ new java.lang.String[]{"Msgs",});
+ internal_static_org_apache_inlong_sdk_commons_protocol_MessagePack_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_org_apache_inlong_sdk_commons_protocol_MessagePack_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_org_apache_inlong_sdk_commons_protocol_MessagePack_descriptor,
+ new java.lang.String[]{"Header", "CompressBytes",});
+ internal_static_org_apache_inlong_sdk_commons_protocol_ResponseInfo_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_org_apache_inlong_sdk_commons_protocol_ResponseInfo_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_org_apache_inlong_sdk_commons_protocol_ResponseInfo_descriptor,
+ new java.lang.String[]{"Result", "PackId",});
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/TimestampAddFunction.java b/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/TimestampAddFunction.java
new file mode 100644
index 00000000000..e09512cdfd2
--- /dev/null
+++ b/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/TimestampAddFunction.java
@@ -0,0 +1,117 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.inlong.sdk.transform.process.function;
+
+import org.apache.inlong.sdk.transform.decode.SourceData;
+import org.apache.inlong.sdk.transform.process.Context;
+import org.apache.inlong.sdk.transform.process.operator.OperatorTools;
+import org.apache.inlong.sdk.transform.process.parser.ValueParser;
+
+import net.sf.jsqlparser.expression.Expression;
+import net.sf.jsqlparser.expression.Function;
+
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.time.format.DateTimeFormatter;
+import java.util.List;
+
+/**
+ * TimestampAddFunction
+ * Description: Add integer expression intervals to the date or date time expression expr.
+ * The unit of the time interval is specified by the unit parameter, which should be one of the following values:
+ * FRAC_SECOND, SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, QUARTER, or YEAR.
+ */
+public class TimestampAddFunction implements ValueParser {
+
+ private ValueParser intervalParser;
+ private ValueParser amountParser;
+ private ValueParser datetimeParser;
+ private static final DateTimeFormatter DEFAULT_FORMAT_DATE_TIME =
+ DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
+ private static final DateTimeFormatter DEFAULT_FORMAT_DATE = DateTimeFormatter.ofPattern("yyyy-MM-dd");
+
+ public TimestampAddFunction(Function expr) {
+ List expressions = expr.getParameters().getExpressions();
+ intervalParser = OperatorTools.buildParser(expressions.get(0));
+ amountParser = OperatorTools.buildParser(expressions.get(1));
+ datetimeParser = OperatorTools.buildParser(expressions.get(2));
+ }
+
+ @Override
+ public Object parse(SourceData sourceData, int rowIndex, Context context) {
+ String interval = intervalParser.parse(sourceData, rowIndex, context).toString();
+ Long amount = Long.parseLong(amountParser.parse(sourceData, rowIndex, context).toString());
+ String dateString = datetimeParser.parse(sourceData, rowIndex, context).toString();
+ return evalDate(dateString, interval, amount);
+ }
+
+ private String evalDate(String dateString, String interval, Long amount) {
+ DateTimeFormatter formatter = null;
+ LocalDateTime dateTime = null;
+ boolean hasTime = true;
+ if (dateString.indexOf(' ') != -1) {
+ formatter = DEFAULT_FORMAT_DATE_TIME;
+ dateTime = LocalDateTime.parse(dateString, formatter);
+ } else {
+ formatter = DEFAULT_FORMAT_DATE;
+ dateTime = LocalDate.parse(dateString, formatter).atStartOfDay();
+ hasTime = false;
+ }
+
+ switch (interval.toUpperCase()) {
+ case "FRAC_SECOND":
+ hasTime = true;
+ dateTime = dateTime.plusNanos(amount * 1000_000);
+ break;
+ case "SECOND":
+ hasTime = true;
+ dateTime = dateTime.plusSeconds(amount);
+ break;
+ case "MINUTE":
+ hasTime = true;
+ dateTime = dateTime.plusMinutes(amount);
+ break;
+ case "HOUR":
+ hasTime = true;
+ dateTime = dateTime.plusHours(amount);
+ break;
+ case "DAY":
+ dateTime = dateTime.plusDays(amount);
+ break;
+ case "WEEK":
+ dateTime = dateTime.plusWeeks(amount);
+ break;
+ case "MONTH":
+ dateTime = dateTime.plusMonths(amount);
+ break;
+ case "QUARTER":
+ dateTime = dateTime.plusMonths(amount * 3);
+ break;
+ case "YEAR":
+ dateTime = dateTime.plusYears(amount);
+ break;
+ }
+
+ String result = dateTime.toLocalDate().toString();
+ if (hasTime) {
+ result += " " + dateTime.toLocalTime().format(DateTimeFormatter.ofPattern("HH:mm:ss"));
+ }
+
+ return result;
+ }
+}
diff --git a/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/operator/OperatorTools.java b/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/operator/OperatorTools.java
index 5dc282130ba..6dd7d043361 100644
--- a/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/operator/OperatorTools.java
+++ b/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/operator/OperatorTools.java
@@ -50,6 +50,7 @@
import org.apache.inlong.sdk.transform.process.function.SqrtFunction;
import org.apache.inlong.sdk.transform.process.function.SubstringFunction;
import org.apache.inlong.sdk.transform.process.function.TanFunction;
+import org.apache.inlong.sdk.transform.process.function.TimestampAddFunction;
import org.apache.inlong.sdk.transform.process.function.TimestampExtractFunction;
import org.apache.inlong.sdk.transform.process.function.ToBase64Function;
import org.apache.inlong.sdk.transform.process.function.ToDateFunction;
@@ -169,6 +170,7 @@ public class OperatorTools {
functionMap.put("upper", UpperFunction::new);
functionMap.put("length", LengthFunction::new);
functionMap.put("replace", ReplaceFunction::new);
+ functionMap.put("timestampadd", TimestampAddFunction::new);
}
public static ExpressionOperator buildOperator(Expression expr) {
diff --git a/inlong-sdk/transform-sdk/src/test/java/org/apache/inlong/sdk/transform/process/TestTransformTemporalFunctionsProcessor.java b/inlong-sdk/transform-sdk/src/test/java/org/apache/inlong/sdk/transform/process/TestTransformTemporalFunctionsProcessor.java
index 67027c4b25d..6ccfc357b34 100644
--- a/inlong-sdk/transform-sdk/src/test/java/org/apache/inlong/sdk/transform/process/TestTransformTemporalFunctionsProcessor.java
+++ b/inlong-sdk/transform-sdk/src/test/java/org/apache/inlong/sdk/transform/process/TestTransformTemporalFunctionsProcessor.java
@@ -47,6 +47,7 @@ public class TestTransformTemporalFunctionsProcessor {
private static final List dstFields = new ArrayList<>();
private static final CsvSourceInfo csvSource;
private static final KvSinkInfo kvSink;
+
static {
for (int i = 1; i < 4; i++) {
FieldInfo field = new FieldInfo();
@@ -409,4 +410,43 @@ public void testLocalTimeFunction() throws Exception {
Assert.assertEquals(1, output3.size());
Assert.assertTrue(duration3.getSeconds() < 1);
}
+
+ @Test
+ public void testTimestampAdd() throws Exception {
+ String transformSql1 = "select timestampadd('day',string2,string1) from source";
+ TransformConfig config1 = new TransformConfig(transformSql1);
+ TransformProcessor processor1 = TransformProcessor
+ .create(config1, SourceDecoderFactory.createCsvDecoder(csvSource),
+ SinkEncoderFactory.createKvEncoder(kvSink));
+ // case1: timestampadd('day',3,'1970-01-01')
+ List output1 = processor1.transform("1970-01-01|3", new HashMap<>());
+ Assert.assertEquals(1, output1.size());
+ Assert.assertEquals("result=1970-01-04", output1.get(0));
+
+ // case2: timestampadd('day',-3,'1970-01-01 00:00:44')
+ List output2 = processor1.transform("1970-01-01 00:00:44|-3", new HashMap<>());
+ Assert.assertEquals(1, output2.size());
+ Assert.assertEquals("result=1969-12-29 00:00:44", output2.get(0));
+
+ String transformSql2 = "select timestampadd('MINUTE',string2,string1) from source";
+ TransformConfig config2 = new TransformConfig(transformSql2);
+ TransformProcessor processor2 = TransformProcessor
+ .create(config2, SourceDecoderFactory.createCsvDecoder(csvSource),
+ SinkEncoderFactory.createKvEncoder(kvSink));
+
+ // case3: timestampadd('MINUTE',3,'1970-01-01 00:00:44')
+ List output3 = processor2.transform("1970-01-01 00:00:44|3", new HashMap<>());
+ Assert.assertEquals(1, output3.size());
+ Assert.assertEquals("result=1970-01-01 00:03:44", output3.get(0));
+
+ // case4: timestampadd('MINUTE',-3,'1970-01-01 00:00:44')
+ List output4 = processor2.transform("1970-01-01 00:00:44|-3", new HashMap<>());
+ Assert.assertEquals(1, output4.size());
+ Assert.assertEquals("result=1969-12-31 23:57:44", output4.get(0));
+
+ // case5: timestampadd('MINUTE',-3,'1970-01-01')
+ List output5 = processor2.transform("1970-01-01|-3", new HashMap<>());
+ Assert.assertEquals(1, output5.size());
+ Assert.assertEquals("result=1969-12-31 23:57:00", output5.get(0));
+ }
}