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

org.apache.pulsar.functions.proto.Function Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Function.proto

package org.apache.pulsar.functions.proto;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code proto.ProcessingGuarantees}
   */
  public enum ProcessingGuarantees
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * 
     * [default value]
     * 
* * ATLEAST_ONCE = 0; */ ATLEAST_ONCE(0), /** * ATMOST_ONCE = 1; */ ATMOST_ONCE(1), /** * EFFECTIVELY_ONCE = 2; */ EFFECTIVELY_ONCE(2), /** * MANUAL = 3; */ MANUAL(3), UNRECOGNIZED(-1), ; /** *
     * [default value]
     * 
* * ATLEAST_ONCE = 0; */ public static final int ATLEAST_ONCE_VALUE = 0; /** * ATMOST_ONCE = 1; */ public static final int ATMOST_ONCE_VALUE = 1; /** * EFFECTIVELY_ONCE = 2; */ public static final int EFFECTIVELY_ONCE_VALUE = 2; /** * MANUAL = 3; */ public static final int MANUAL_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ProcessingGuarantees 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 ProcessingGuarantees forNumber(int value) { switch (value) { case 0: return ATLEAST_ONCE; case 1: return ATMOST_ONCE; case 2: return EFFECTIVELY_ONCE; case 3: return MANUAL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ProcessingGuarantees> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ProcessingGuarantees findValueByNumber(int number) { return ProcessingGuarantees.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.getDescriptor().getEnumTypes().get(0); } private static final ProcessingGuarantees[] VALUES = values(); public static ProcessingGuarantees valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ProcessingGuarantees(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto.ProcessingGuarantees) } /** * Protobuf enum {@code proto.SubscriptionType} */ public enum SubscriptionType implements com.google.protobuf.ProtocolMessageEnum { /** * SHARED = 0; */ SHARED(0), /** * FAILOVER = 1; */ FAILOVER(1), /** * KEY_SHARED = 2; */ KEY_SHARED(2), UNRECOGNIZED(-1), ; /** * SHARED = 0; */ public static final int SHARED_VALUE = 0; /** * FAILOVER = 1; */ public static final int FAILOVER_VALUE = 1; /** * KEY_SHARED = 2; */ public static final int KEY_SHARED_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SubscriptionType 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 SubscriptionType forNumber(int value) { switch (value) { case 0: return SHARED; case 1: return FAILOVER; case 2: return KEY_SHARED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SubscriptionType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SubscriptionType findValueByNumber(int number) { return SubscriptionType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.getDescriptor().getEnumTypes().get(1); } private static final SubscriptionType[] VALUES = values(); public static SubscriptionType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private SubscriptionType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto.SubscriptionType) } /** * Protobuf enum {@code proto.SubscriptionPosition} */ public enum SubscriptionPosition implements com.google.protobuf.ProtocolMessageEnum { /** * LATEST = 0; */ LATEST(0), /** * EARLIEST = 1; */ EARLIEST(1), UNRECOGNIZED(-1), ; /** * LATEST = 0; */ public static final int LATEST_VALUE = 0; /** * EARLIEST = 1; */ public static final int EARLIEST_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SubscriptionPosition 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 SubscriptionPosition forNumber(int value) { switch (value) { case 0: return LATEST; case 1: return EARLIEST; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SubscriptionPosition> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SubscriptionPosition findValueByNumber(int number) { return SubscriptionPosition.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.getDescriptor().getEnumTypes().get(2); } private static final SubscriptionPosition[] VALUES = values(); public static SubscriptionPosition valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private SubscriptionPosition(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto.SubscriptionPosition) } /** * Protobuf enum {@code proto.CompressionType} */ public enum CompressionType implements com.google.protobuf.ProtocolMessageEnum { /** * LZ4 = 0; */ LZ4(0), /** * NONE = 1; */ NONE(1), /** * ZLIB = 2; */ ZLIB(2), /** * ZSTD = 3; */ ZSTD(3), /** * SNAPPY = 4; */ SNAPPY(4), UNRECOGNIZED(-1), ; /** * LZ4 = 0; */ public static final int LZ4_VALUE = 0; /** * NONE = 1; */ public static final int NONE_VALUE = 1; /** * ZLIB = 2; */ public static final int ZLIB_VALUE = 2; /** * ZSTD = 3; */ public static final int ZSTD_VALUE = 3; /** * SNAPPY = 4; */ public static final int SNAPPY_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CompressionType 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 CompressionType forNumber(int value) { switch (value) { case 0: return LZ4; case 1: return NONE; case 2: return ZLIB; case 3: return ZSTD; case 4: return SNAPPY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CompressionType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CompressionType findValueByNumber(int number) { return CompressionType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.getDescriptor().getEnumTypes().get(3); } private static final CompressionType[] VALUES = values(); public static CompressionType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private CompressionType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto.CompressionType) } /** * Protobuf enum {@code proto.FunctionState} */ public enum FunctionState implements com.google.protobuf.ProtocolMessageEnum { /** * RUNNING = 0; */ RUNNING(0), /** * STOPPED = 1; */ STOPPED(1), UNRECOGNIZED(-1), ; /** * RUNNING = 0; */ public static final int RUNNING_VALUE = 0; /** * STOPPED = 1; */ public static final int STOPPED_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FunctionState 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 FunctionState forNumber(int value) { switch (value) { case 0: return RUNNING; case 1: return STOPPED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< FunctionState> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public FunctionState findValueByNumber(int number) { return FunctionState.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.getDescriptor().getEnumTypes().get(4); } private static final FunctionState[] VALUES = values(); public static FunctionState valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private FunctionState(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto.FunctionState) } public interface ResourcesOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Resources) com.google.protobuf.MessageOrBuilder { /** * double cpu = 1; * @return The cpu. */ double getCpu(); /** * int64 ram = 2; * @return The ram. */ long getRam(); /** * int64 disk = 3; * @return The disk. */ long getDisk(); } /** * Protobuf type {@code proto.Resources} */ public static final class Resources extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Resources) ResourcesOrBuilder { private static final long serialVersionUID = 0L; // Use Resources.newBuilder() to construct. private Resources(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Resources() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Resources(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Resources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Resources_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.Resources.class, org.apache.pulsar.functions.proto.Function.Resources.Builder.class); } public static final int CPU_FIELD_NUMBER = 1; private double cpu_; /** * double cpu = 1; * @return The cpu. */ @java.lang.Override public double getCpu() { return cpu_; } public static final int RAM_FIELD_NUMBER = 2; private long ram_; /** * int64 ram = 2; * @return The ram. */ @java.lang.Override public long getRam() { return ram_; } public static final int DISK_FIELD_NUMBER = 3; private long disk_; /** * int64 disk = 3; * @return The disk. */ @java.lang.Override public long getDisk() { return disk_; } 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 (java.lang.Double.doubleToRawLongBits(cpu_) != 0) { output.writeDouble(1, cpu_); } if (ram_ != 0L) { output.writeInt64(2, ram_); } if (disk_ != 0L) { output.writeInt64(3, disk_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Double.doubleToRawLongBits(cpu_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, cpu_); } if (ram_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, ram_); } if (disk_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, disk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.pulsar.functions.proto.Function.Resources)) { return super.equals(obj); } org.apache.pulsar.functions.proto.Function.Resources other = (org.apache.pulsar.functions.proto.Function.Resources) obj; if (java.lang.Double.doubleToLongBits(getCpu()) != java.lang.Double.doubleToLongBits( other.getCpu())) return false; if (getRam() != other.getRam()) return false; if (getDisk() != other.getDisk()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CPU_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCpu())); hash = (37 * hash) + RAM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRam()); hash = (37 * hash) + DISK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDisk()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.pulsar.functions.proto.Function.Resources parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.Resources parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.Resources parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.Resources 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.pulsar.functions.proto.Function.Resources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.Resources parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.Resources parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.Resources 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.pulsar.functions.proto.Function.Resources parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.Resources 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.pulsar.functions.proto.Function.Resources parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.Resources 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.pulsar.functions.proto.Function.Resources 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 proto.Resources} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Resources) org.apache.pulsar.functions.proto.Function.ResourcesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Resources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Resources_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.Resources.class, org.apache.pulsar.functions.proto.Function.Resources.Builder.class); } // Construct using org.apache.pulsar.functions.proto.Function.Resources.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); cpu_ = 0D; ram_ = 0L; disk_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Resources_descriptor; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.Resources getDefaultInstanceForType() { return org.apache.pulsar.functions.proto.Function.Resources.getDefaultInstance(); } @java.lang.Override public org.apache.pulsar.functions.proto.Function.Resources build() { org.apache.pulsar.functions.proto.Function.Resources result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.Resources buildPartial() { org.apache.pulsar.functions.proto.Function.Resources result = new org.apache.pulsar.functions.proto.Function.Resources(this); result.cpu_ = cpu_; result.ram_ = ram_; result.disk_ = disk_; 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.pulsar.functions.proto.Function.Resources) { return mergeFrom((org.apache.pulsar.functions.proto.Function.Resources)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.pulsar.functions.proto.Function.Resources other) { if (other == org.apache.pulsar.functions.proto.Function.Resources.getDefaultInstance()) return this; if (other.getCpu() != 0D) { setCpu(other.getCpu()); } if (other.getRam() != 0L) { setRam(other.getRam()); } if (other.getDisk() != 0L) { setDisk(other.getDisk()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 9: { cpu_ = input.readDouble(); break; } // case 9 case 16: { ram_ = input.readInt64(); break; } // case 16 case 24: { disk_ = input.readInt64(); break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private double cpu_ ; /** * double cpu = 1; * @return The cpu. */ @java.lang.Override public double getCpu() { return cpu_; } /** * double cpu = 1; * @param value The cpu to set. * @return This builder for chaining. */ public Builder setCpu(double value) { cpu_ = value; onChanged(); return this; } /** * double cpu = 1; * @return This builder for chaining. */ public Builder clearCpu() { cpu_ = 0D; onChanged(); return this; } private long ram_ ; /** * int64 ram = 2; * @return The ram. */ @java.lang.Override public long getRam() { return ram_; } /** * int64 ram = 2; * @param value The ram to set. * @return This builder for chaining. */ public Builder setRam(long value) { ram_ = value; onChanged(); return this; } /** * int64 ram = 2; * @return This builder for chaining. */ public Builder clearRam() { ram_ = 0L; onChanged(); return this; } private long disk_ ; /** * int64 disk = 3; * @return The disk. */ @java.lang.Override public long getDisk() { return disk_; } /** * int64 disk = 3; * @param value The disk to set. * @return This builder for chaining. */ public Builder setDisk(long value) { disk_ = value; onChanged(); return this; } /** * int64 disk = 3; * @return This builder for chaining. */ public Builder clearDisk() { disk_ = 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:proto.Resources) } // @@protoc_insertion_point(class_scope:proto.Resources) private static final org.apache.pulsar.functions.proto.Function.Resources DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.pulsar.functions.proto.Function.Resources(); } public static org.apache.pulsar.functions.proto.Function.Resources getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Resources parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.Resources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RetryDetailsOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.RetryDetails) com.google.protobuf.MessageOrBuilder { /** * int32 maxMessageRetries = 1; * @return The maxMessageRetries. */ int getMaxMessageRetries(); /** * string deadLetterTopic = 2; * @return The deadLetterTopic. */ java.lang.String getDeadLetterTopic(); /** * string deadLetterTopic = 2; * @return The bytes for deadLetterTopic. */ com.google.protobuf.ByteString getDeadLetterTopicBytes(); } /** * Protobuf type {@code proto.RetryDetails} */ public static final class RetryDetails extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.RetryDetails) RetryDetailsOrBuilder { private static final long serialVersionUID = 0L; // Use RetryDetails.newBuilder() to construct. private RetryDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RetryDetails() { deadLetterTopic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RetryDetails(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_RetryDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_RetryDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.RetryDetails.class, org.apache.pulsar.functions.proto.Function.RetryDetails.Builder.class); } public static final int MAXMESSAGERETRIES_FIELD_NUMBER = 1; private int maxMessageRetries_; /** * int32 maxMessageRetries = 1; * @return The maxMessageRetries. */ @java.lang.Override public int getMaxMessageRetries() { return maxMessageRetries_; } public static final int DEADLETTERTOPIC_FIELD_NUMBER = 2; private volatile java.lang.Object deadLetterTopic_; /** * string deadLetterTopic = 2; * @return The deadLetterTopic. */ @java.lang.Override public java.lang.String getDeadLetterTopic() { java.lang.Object ref = deadLetterTopic_; 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(); deadLetterTopic_ = s; return s; } } /** * string deadLetterTopic = 2; * @return The bytes for deadLetterTopic. */ @java.lang.Override public com.google.protobuf.ByteString getDeadLetterTopicBytes() { java.lang.Object ref = deadLetterTopic_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deadLetterTopic_ = 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 (maxMessageRetries_ != 0) { output.writeInt32(1, maxMessageRetries_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deadLetterTopic_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (maxMessageRetries_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, maxMessageRetries_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deadLetterTopic_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.pulsar.functions.proto.Function.RetryDetails)) { return super.equals(obj); } org.apache.pulsar.functions.proto.Function.RetryDetails other = (org.apache.pulsar.functions.proto.Function.RetryDetails) obj; if (getMaxMessageRetries() != other.getMaxMessageRetries()) return false; if (!getDeadLetterTopic() .equals(other.getDeadLetterTopic())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MAXMESSAGERETRIES_FIELD_NUMBER; hash = (53 * hash) + getMaxMessageRetries(); hash = (37 * hash) + DEADLETTERTOPIC_FIELD_NUMBER; hash = (53 * hash) + getDeadLetterTopic().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.pulsar.functions.proto.Function.RetryDetails parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.RetryDetails parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.RetryDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.RetryDetails 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.pulsar.functions.proto.Function.RetryDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.RetryDetails parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.RetryDetails parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.RetryDetails 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.pulsar.functions.proto.Function.RetryDetails parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.RetryDetails 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.pulsar.functions.proto.Function.RetryDetails parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.RetryDetails 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.pulsar.functions.proto.Function.RetryDetails 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 proto.RetryDetails} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.RetryDetails) org.apache.pulsar.functions.proto.Function.RetryDetailsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_RetryDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_RetryDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.RetryDetails.class, org.apache.pulsar.functions.proto.Function.RetryDetails.Builder.class); } // Construct using org.apache.pulsar.functions.proto.Function.RetryDetails.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); maxMessageRetries_ = 0; deadLetterTopic_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_RetryDetails_descriptor; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.RetryDetails getDefaultInstanceForType() { return org.apache.pulsar.functions.proto.Function.RetryDetails.getDefaultInstance(); } @java.lang.Override public org.apache.pulsar.functions.proto.Function.RetryDetails build() { org.apache.pulsar.functions.proto.Function.RetryDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.RetryDetails buildPartial() { org.apache.pulsar.functions.proto.Function.RetryDetails result = new org.apache.pulsar.functions.proto.Function.RetryDetails(this); result.maxMessageRetries_ = maxMessageRetries_; result.deadLetterTopic_ = deadLetterTopic_; 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.pulsar.functions.proto.Function.RetryDetails) { return mergeFrom((org.apache.pulsar.functions.proto.Function.RetryDetails)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.pulsar.functions.proto.Function.RetryDetails other) { if (other == org.apache.pulsar.functions.proto.Function.RetryDetails.getDefaultInstance()) return this; if (other.getMaxMessageRetries() != 0) { setMaxMessageRetries(other.getMaxMessageRetries()); } if (!other.getDeadLetterTopic().isEmpty()) { deadLetterTopic_ = other.deadLetterTopic_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { maxMessageRetries_ = input.readInt32(); break; } // case 8 case 18: { deadLetterTopic_ = input.readStringRequireUtf8(); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int maxMessageRetries_ ; /** * int32 maxMessageRetries = 1; * @return The maxMessageRetries. */ @java.lang.Override public int getMaxMessageRetries() { return maxMessageRetries_; } /** * int32 maxMessageRetries = 1; * @param value The maxMessageRetries to set. * @return This builder for chaining. */ public Builder setMaxMessageRetries(int value) { maxMessageRetries_ = value; onChanged(); return this; } /** * int32 maxMessageRetries = 1; * @return This builder for chaining. */ public Builder clearMaxMessageRetries() { maxMessageRetries_ = 0; onChanged(); return this; } private java.lang.Object deadLetterTopic_ = ""; /** * string deadLetterTopic = 2; * @return The deadLetterTopic. */ public java.lang.String getDeadLetterTopic() { java.lang.Object ref = deadLetterTopic_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deadLetterTopic_ = s; return s; } else { return (java.lang.String) ref; } } /** * string deadLetterTopic = 2; * @return The bytes for deadLetterTopic. */ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { java.lang.Object ref = deadLetterTopic_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deadLetterTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string deadLetterTopic = 2; * @param value The deadLetterTopic to set. * @return This builder for chaining. */ public Builder setDeadLetterTopic( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deadLetterTopic_ = value; onChanged(); return this; } /** * string deadLetterTopic = 2; * @return This builder for chaining. */ public Builder clearDeadLetterTopic() { deadLetterTopic_ = getDefaultInstance().getDeadLetterTopic(); onChanged(); return this; } /** * string deadLetterTopic = 2; * @param value The bytes for deadLetterTopic to set. * @return This builder for chaining. */ public Builder setDeadLetterTopicBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deadLetterTopic_ = 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:proto.RetryDetails) } // @@protoc_insertion_point(class_scope:proto.RetryDetails) private static final org.apache.pulsar.functions.proto.Function.RetryDetails DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.pulsar.functions.proto.Function.RetryDetails(); } public static org.apache.pulsar.functions.proto.Function.RetryDetails getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RetryDetails parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.RetryDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FunctionDetailsOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FunctionDetails) com.google.protobuf.MessageOrBuilder { /** * string tenant = 1; * @return The tenant. */ java.lang.String getTenant(); /** * string tenant = 1; * @return The bytes for tenant. */ com.google.protobuf.ByteString getTenantBytes(); /** * string namespace = 2; * @return The namespace. */ java.lang.String getNamespace(); /** * string namespace = 2; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** * string name = 3; * @return The name. */ java.lang.String getName(); /** * string name = 3; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * string className = 4; * @return The className. */ java.lang.String getClassName(); /** * string className = 4; * @return The bytes for className. */ com.google.protobuf.ByteString getClassNameBytes(); /** * string logTopic = 5; * @return The logTopic. */ java.lang.String getLogTopic(); /** * string logTopic = 5; * @return The bytes for logTopic. */ com.google.protobuf.ByteString getLogTopicBytes(); /** * .proto.ProcessingGuarantees processingGuarantees = 6; * @return The enum numeric value on the wire for processingGuarantees. */ int getProcessingGuaranteesValue(); /** * .proto.ProcessingGuarantees processingGuarantees = 6; * @return The processingGuarantees. */ org.apache.pulsar.functions.proto.Function.ProcessingGuarantees getProcessingGuarantees(); /** * string userConfig = 7; * @return The userConfig. */ java.lang.String getUserConfig(); /** * string userConfig = 7; * @return The bytes for userConfig. */ com.google.protobuf.ByteString getUserConfigBytes(); /** * string secretsMap = 16; * @return The secretsMap. */ java.lang.String getSecretsMap(); /** * string secretsMap = 16; * @return The bytes for secretsMap. */ com.google.protobuf.ByteString getSecretsMapBytes(); /** * .proto.FunctionDetails.Runtime runtime = 8; * @return The enum numeric value on the wire for runtime. */ int getRuntimeValue(); /** * .proto.FunctionDetails.Runtime runtime = 8; * @return The runtime. */ org.apache.pulsar.functions.proto.Function.FunctionDetails.Runtime getRuntime(); /** *
     * Deprecated since, see https://github.com/apache/pulsar/issues/15560
     * 
* * bool autoAck = 9 [deprecated = true]; * @deprecated * @return The autoAck. */ @java.lang.Deprecated boolean getAutoAck(); /** * int32 parallelism = 10; * @return The parallelism. */ int getParallelism(); /** * .proto.SourceSpec source = 11; * @return Whether the source field is set. */ boolean hasSource(); /** * .proto.SourceSpec source = 11; * @return The source. */ org.apache.pulsar.functions.proto.Function.SourceSpec getSource(); /** * .proto.SourceSpec source = 11; */ org.apache.pulsar.functions.proto.Function.SourceSpecOrBuilder getSourceOrBuilder(); /** * .proto.SinkSpec sink = 12; * @return Whether the sink field is set. */ boolean hasSink(); /** * .proto.SinkSpec sink = 12; * @return The sink. */ org.apache.pulsar.functions.proto.Function.SinkSpec getSink(); /** * .proto.SinkSpec sink = 12; */ org.apache.pulsar.functions.proto.Function.SinkSpecOrBuilder getSinkOrBuilder(); /** * .proto.Resources resources = 13; * @return Whether the resources field is set. */ boolean hasResources(); /** * .proto.Resources resources = 13; * @return The resources. */ org.apache.pulsar.functions.proto.Function.Resources getResources(); /** * .proto.Resources resources = 13; */ org.apache.pulsar.functions.proto.Function.ResourcesOrBuilder getResourcesOrBuilder(); /** *
     *present only if function submitted with package-url
     * 
* * string packageUrl = 14; * @return The packageUrl. */ java.lang.String getPackageUrl(); /** *
     *present only if function submitted with package-url
     * 
* * string packageUrl = 14; * @return The bytes for packageUrl. */ com.google.protobuf.ByteString getPackageUrlBytes(); /** * .proto.RetryDetails retryDetails = 15; * @return Whether the retryDetails field is set. */ boolean hasRetryDetails(); /** * .proto.RetryDetails retryDetails = 15; * @return The retryDetails. */ org.apache.pulsar.functions.proto.Function.RetryDetails getRetryDetails(); /** * .proto.RetryDetails retryDetails = 15; */ org.apache.pulsar.functions.proto.Function.RetryDetailsOrBuilder getRetryDetailsOrBuilder(); /** * string runtimeFlags = 17; * @return The runtimeFlags. */ java.lang.String getRuntimeFlags(); /** * string runtimeFlags = 17; * @return The bytes for runtimeFlags. */ com.google.protobuf.ByteString getRuntimeFlagsBytes(); /** * .proto.FunctionDetails.ComponentType componentType = 18; * @return The enum numeric value on the wire for componentType. */ int getComponentTypeValue(); /** * .proto.FunctionDetails.ComponentType componentType = 18; * @return The componentType. */ org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType getComponentType(); /** * string customRuntimeOptions = 19; * @return The customRuntimeOptions. */ java.lang.String getCustomRuntimeOptions(); /** * string customRuntimeOptions = 19; * @return The bytes for customRuntimeOptions. */ com.google.protobuf.ByteString getCustomRuntimeOptionsBytes(); /** *
     * If specified, this will refer to an archive that is
     * already present in the server 
     * 
* * string builtin = 20; * @return The builtin. */ java.lang.String getBuiltin(); /** *
     * If specified, this will refer to an archive that is
     * already present in the server 
     * 
* * string builtin = 20; * @return The bytes for builtin. */ com.google.protobuf.ByteString getBuiltinBytes(); /** * bool retainOrdering = 21; * @return The retainOrdering. */ boolean getRetainOrdering(); /** * bool retainKeyOrdering = 22; * @return The retainKeyOrdering. */ boolean getRetainKeyOrdering(); /** * .proto.SubscriptionPosition subscriptionPosition = 23; * @return The enum numeric value on the wire for subscriptionPosition. */ int getSubscriptionPositionValue(); /** * .proto.SubscriptionPosition subscriptionPosition = 23; * @return The subscriptionPosition. */ org.apache.pulsar.functions.proto.Function.SubscriptionPosition getSubscriptionPosition(); } /** * Protobuf type {@code proto.FunctionDetails} */ public static final class FunctionDetails extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FunctionDetails) FunctionDetailsOrBuilder { private static final long serialVersionUID = 0L; // Use FunctionDetails.newBuilder() to construct. private FunctionDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FunctionDetails() { tenant_ = ""; namespace_ = ""; name_ = ""; className_ = ""; logTopic_ = ""; processingGuarantees_ = 0; userConfig_ = ""; secretsMap_ = ""; runtime_ = 0; packageUrl_ = ""; runtimeFlags_ = ""; componentType_ = 0; customRuntimeOptions_ = ""; builtin_ = ""; subscriptionPosition_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FunctionDetails(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.FunctionDetails.class, org.apache.pulsar.functions.proto.Function.FunctionDetails.Builder.class); } /** * Protobuf enum {@code proto.FunctionDetails.Runtime} */ public enum Runtime implements com.google.protobuf.ProtocolMessageEnum { /** * JAVA = 0; */ JAVA(0), /** * PYTHON = 1; */ PYTHON(1), /** * GO = 3; */ GO(3), UNRECOGNIZED(-1), ; /** * JAVA = 0; */ public static final int JAVA_VALUE = 0; /** * PYTHON = 1; */ public static final int PYTHON_VALUE = 1; /** * GO = 3; */ public static final int GO_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Runtime 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 Runtime forNumber(int value) { switch (value) { case 0: return JAVA; case 1: return PYTHON; case 3: return GO; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Runtime> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Runtime findValueByNumber(int number) { return Runtime.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.FunctionDetails.getDescriptor().getEnumTypes().get(0); } private static final Runtime[] VALUES = values(); public static Runtime valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Runtime(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto.FunctionDetails.Runtime) } /** * Protobuf enum {@code proto.FunctionDetails.ComponentType} */ public enum ComponentType implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * FUNCTION = 1; */ FUNCTION(1), /** * SOURCE = 2; */ SOURCE(2), /** * SINK = 3; */ SINK(3), UNRECOGNIZED(-1), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * FUNCTION = 1; */ public static final int FUNCTION_VALUE = 1; /** * SOURCE = 2; */ public static final int SOURCE_VALUE = 2; /** * SINK = 3; */ public static final int SINK_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ComponentType 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 ComponentType forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return FUNCTION; case 2: return SOURCE; case 3: return SINK; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ComponentType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ComponentType findValueByNumber(int number) { return ComponentType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.FunctionDetails.getDescriptor().getEnumTypes().get(1); } private static final ComponentType[] VALUES = values(); public static ComponentType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ComponentType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto.FunctionDetails.ComponentType) } public static final int TENANT_FIELD_NUMBER = 1; private volatile java.lang.Object tenant_; /** * string tenant = 1; * @return The tenant. */ @java.lang.Override public java.lang.String getTenant() { java.lang.Object ref = tenant_; 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(); tenant_ = s; return s; } } /** * string tenant = 1; * @return The bytes for tenant. */ @java.lang.Override public com.google.protobuf.ByteString getTenantBytes() { java.lang.Object ref = tenant_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tenant_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACE_FIELD_NUMBER = 2; private volatile java.lang.Object namespace_; /** * string namespace = 2; * @return The namespace. */ @java.lang.Override public java.lang.String getNamespace() { java.lang.Object ref = namespace_; 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(); namespace_ = s; return s; } } /** * string namespace = 2; * @return The bytes for namespace. */ @java.lang.Override public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** * string name = 3; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 3; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLASSNAME_FIELD_NUMBER = 4; private volatile java.lang.Object className_; /** * string className = 4; * @return The className. */ @java.lang.Override public java.lang.String getClassName() { java.lang.Object ref = className_; 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(); className_ = s; return s; } } /** * string className = 4; * @return The bytes for className. */ @java.lang.Override public com.google.protobuf.ByteString getClassNameBytes() { java.lang.Object ref = className_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); className_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOGTOPIC_FIELD_NUMBER = 5; private volatile java.lang.Object logTopic_; /** * string logTopic = 5; * @return The logTopic. */ @java.lang.Override public java.lang.String getLogTopic() { java.lang.Object ref = logTopic_; 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(); logTopic_ = s; return s; } } /** * string logTopic = 5; * @return The bytes for logTopic. */ @java.lang.Override public com.google.protobuf.ByteString getLogTopicBytes() { java.lang.Object ref = logTopic_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROCESSINGGUARANTEES_FIELD_NUMBER = 6; private int processingGuarantees_; /** * .proto.ProcessingGuarantees processingGuarantees = 6; * @return The enum numeric value on the wire for processingGuarantees. */ @java.lang.Override public int getProcessingGuaranteesValue() { return processingGuarantees_; } /** * .proto.ProcessingGuarantees processingGuarantees = 6; * @return The processingGuarantees. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.ProcessingGuarantees getProcessingGuarantees() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.ProcessingGuarantees result = org.apache.pulsar.functions.proto.Function.ProcessingGuarantees.valueOf(processingGuarantees_); return result == null ? org.apache.pulsar.functions.proto.Function.ProcessingGuarantees.UNRECOGNIZED : result; } public static final int USERCONFIG_FIELD_NUMBER = 7; private volatile java.lang.Object userConfig_; /** * string userConfig = 7; * @return The userConfig. */ @java.lang.Override public java.lang.String getUserConfig() { java.lang.Object ref = userConfig_; 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(); userConfig_ = s; return s; } } /** * string userConfig = 7; * @return The bytes for userConfig. */ @java.lang.Override public com.google.protobuf.ByteString getUserConfigBytes() { java.lang.Object ref = userConfig_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userConfig_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRETSMAP_FIELD_NUMBER = 16; private volatile java.lang.Object secretsMap_; /** * string secretsMap = 16; * @return The secretsMap. */ @java.lang.Override public java.lang.String getSecretsMap() { java.lang.Object ref = secretsMap_; 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(); secretsMap_ = s; return s; } } /** * string secretsMap = 16; * @return The bytes for secretsMap. */ @java.lang.Override public com.google.protobuf.ByteString getSecretsMapBytes() { java.lang.Object ref = secretsMap_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secretsMap_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RUNTIME_FIELD_NUMBER = 8; private int runtime_; /** * .proto.FunctionDetails.Runtime runtime = 8; * @return The enum numeric value on the wire for runtime. */ @java.lang.Override public int getRuntimeValue() { return runtime_; } /** * .proto.FunctionDetails.Runtime runtime = 8; * @return The runtime. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionDetails.Runtime getRuntime() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.FunctionDetails.Runtime result = org.apache.pulsar.functions.proto.Function.FunctionDetails.Runtime.valueOf(runtime_); return result == null ? org.apache.pulsar.functions.proto.Function.FunctionDetails.Runtime.UNRECOGNIZED : result; } public static final int AUTOACK_FIELD_NUMBER = 9; private boolean autoAck_; /** *
     * Deprecated since, see https://github.com/apache/pulsar/issues/15560
     * 
* * bool autoAck = 9 [deprecated = true]; * @deprecated * @return The autoAck. */ @java.lang.Override @java.lang.Deprecated public boolean getAutoAck() { return autoAck_; } public static final int PARALLELISM_FIELD_NUMBER = 10; private int parallelism_; /** * int32 parallelism = 10; * @return The parallelism. */ @java.lang.Override public int getParallelism() { return parallelism_; } public static final int SOURCE_FIELD_NUMBER = 11; private org.apache.pulsar.functions.proto.Function.SourceSpec source_; /** * .proto.SourceSpec source = 11; * @return Whether the source field is set. */ @java.lang.Override public boolean hasSource() { return source_ != null; } /** * .proto.SourceSpec source = 11; * @return The source. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.SourceSpec getSource() { return source_ == null ? org.apache.pulsar.functions.proto.Function.SourceSpec.getDefaultInstance() : source_; } /** * .proto.SourceSpec source = 11; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.SourceSpecOrBuilder getSourceOrBuilder() { return getSource(); } public static final int SINK_FIELD_NUMBER = 12; private org.apache.pulsar.functions.proto.Function.SinkSpec sink_; /** * .proto.SinkSpec sink = 12; * @return Whether the sink field is set. */ @java.lang.Override public boolean hasSink() { return sink_ != null; } /** * .proto.SinkSpec sink = 12; * @return The sink. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.SinkSpec getSink() { return sink_ == null ? org.apache.pulsar.functions.proto.Function.SinkSpec.getDefaultInstance() : sink_; } /** * .proto.SinkSpec sink = 12; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.SinkSpecOrBuilder getSinkOrBuilder() { return getSink(); } public static final int RESOURCES_FIELD_NUMBER = 13; private org.apache.pulsar.functions.proto.Function.Resources resources_; /** * .proto.Resources resources = 13; * @return Whether the resources field is set. */ @java.lang.Override public boolean hasResources() { return resources_ != null; } /** * .proto.Resources resources = 13; * @return The resources. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.Resources getResources() { return resources_ == null ? org.apache.pulsar.functions.proto.Function.Resources.getDefaultInstance() : resources_; } /** * .proto.Resources resources = 13; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.ResourcesOrBuilder getResourcesOrBuilder() { return getResources(); } public static final int PACKAGEURL_FIELD_NUMBER = 14; private volatile java.lang.Object packageUrl_; /** *
     *present only if function submitted with package-url
     * 
* * string packageUrl = 14; * @return The packageUrl. */ @java.lang.Override public java.lang.String getPackageUrl() { java.lang.Object ref = packageUrl_; 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(); packageUrl_ = s; return s; } } /** *
     *present only if function submitted with package-url
     * 
* * string packageUrl = 14; * @return The bytes for packageUrl. */ @java.lang.Override public com.google.protobuf.ByteString getPackageUrlBytes() { java.lang.Object ref = packageUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RETRYDETAILS_FIELD_NUMBER = 15; private org.apache.pulsar.functions.proto.Function.RetryDetails retryDetails_; /** * .proto.RetryDetails retryDetails = 15; * @return Whether the retryDetails field is set. */ @java.lang.Override public boolean hasRetryDetails() { return retryDetails_ != null; } /** * .proto.RetryDetails retryDetails = 15; * @return The retryDetails. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.RetryDetails getRetryDetails() { return retryDetails_ == null ? org.apache.pulsar.functions.proto.Function.RetryDetails.getDefaultInstance() : retryDetails_; } /** * .proto.RetryDetails retryDetails = 15; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.RetryDetailsOrBuilder getRetryDetailsOrBuilder() { return getRetryDetails(); } public static final int RUNTIMEFLAGS_FIELD_NUMBER = 17; private volatile java.lang.Object runtimeFlags_; /** * string runtimeFlags = 17; * @return The runtimeFlags. */ @java.lang.Override public java.lang.String getRuntimeFlags() { java.lang.Object ref = runtimeFlags_; 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(); runtimeFlags_ = s; return s; } } /** * string runtimeFlags = 17; * @return The bytes for runtimeFlags. */ @java.lang.Override public com.google.protobuf.ByteString getRuntimeFlagsBytes() { java.lang.Object ref = runtimeFlags_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); runtimeFlags_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPONENTTYPE_FIELD_NUMBER = 18; private int componentType_; /** * .proto.FunctionDetails.ComponentType componentType = 18; * @return The enum numeric value on the wire for componentType. */ @java.lang.Override public int getComponentTypeValue() { return componentType_; } /** * .proto.FunctionDetails.ComponentType componentType = 18; * @return The componentType. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType getComponentType() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType result = org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType.valueOf(componentType_); return result == null ? org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType.UNRECOGNIZED : result; } public static final int CUSTOMRUNTIMEOPTIONS_FIELD_NUMBER = 19; private volatile java.lang.Object customRuntimeOptions_; /** * string customRuntimeOptions = 19; * @return The customRuntimeOptions. */ @java.lang.Override public java.lang.String getCustomRuntimeOptions() { java.lang.Object ref = customRuntimeOptions_; 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(); customRuntimeOptions_ = s; return s; } } /** * string customRuntimeOptions = 19; * @return The bytes for customRuntimeOptions. */ @java.lang.Override public com.google.protobuf.ByteString getCustomRuntimeOptionsBytes() { java.lang.Object ref = customRuntimeOptions_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customRuntimeOptions_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUILTIN_FIELD_NUMBER = 20; private volatile java.lang.Object builtin_; /** *
     * If specified, this will refer to an archive that is
     * already present in the server 
     * 
* * string builtin = 20; * @return The builtin. */ @java.lang.Override public java.lang.String getBuiltin() { java.lang.Object ref = builtin_; 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(); builtin_ = s; return s; } } /** *
     * If specified, this will refer to an archive that is
     * already present in the server 
     * 
* * string builtin = 20; * @return The bytes for builtin. */ @java.lang.Override public com.google.protobuf.ByteString getBuiltinBytes() { java.lang.Object ref = builtin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); builtin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RETAINORDERING_FIELD_NUMBER = 21; private boolean retainOrdering_; /** * bool retainOrdering = 21; * @return The retainOrdering. */ @java.lang.Override public boolean getRetainOrdering() { return retainOrdering_; } public static final int RETAINKEYORDERING_FIELD_NUMBER = 22; private boolean retainKeyOrdering_; /** * bool retainKeyOrdering = 22; * @return The retainKeyOrdering. */ @java.lang.Override public boolean getRetainKeyOrdering() { return retainKeyOrdering_; } public static final int SUBSCRIPTIONPOSITION_FIELD_NUMBER = 23; private int subscriptionPosition_; /** * .proto.SubscriptionPosition subscriptionPosition = 23; * @return The enum numeric value on the wire for subscriptionPosition. */ @java.lang.Override public int getSubscriptionPositionValue() { return subscriptionPosition_; } /** * .proto.SubscriptionPosition subscriptionPosition = 23; * @return The subscriptionPosition. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.SubscriptionPosition getSubscriptionPosition() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.SubscriptionPosition result = org.apache.pulsar.functions.proto.Function.SubscriptionPosition.valueOf(subscriptionPosition_); return result == null ? org.apache.pulsar.functions.proto.Function.SubscriptionPosition.UNRECOGNIZED : result; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenant_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tenant_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, className_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logTopic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, logTopic_); } if (processingGuarantees_ != org.apache.pulsar.functions.proto.Function.ProcessingGuarantees.ATLEAST_ONCE.getNumber()) { output.writeEnum(6, processingGuarantees_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userConfig_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, userConfig_); } if (runtime_ != org.apache.pulsar.functions.proto.Function.FunctionDetails.Runtime.JAVA.getNumber()) { output.writeEnum(8, runtime_); } if (autoAck_ != false) { output.writeBool(9, autoAck_); } if (parallelism_ != 0) { output.writeInt32(10, parallelism_); } if (source_ != null) { output.writeMessage(11, getSource()); } if (sink_ != null) { output.writeMessage(12, getSink()); } if (resources_ != null) { output.writeMessage(13, getResources()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, packageUrl_); } if (retryDetails_ != null) { output.writeMessage(15, getRetryDetails()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretsMap_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, secretsMap_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeFlags_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, runtimeFlags_); } if (componentType_ != org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType.UNKNOWN.getNumber()) { output.writeEnum(18, componentType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customRuntimeOptions_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, customRuntimeOptions_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(builtin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, builtin_); } if (retainOrdering_ != false) { output.writeBool(21, retainOrdering_); } if (retainKeyOrdering_ != false) { output.writeBool(22, retainKeyOrdering_); } if (subscriptionPosition_ != org.apache.pulsar.functions.proto.Function.SubscriptionPosition.LATEST.getNumber()) { output.writeEnum(23, subscriptionPosition_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenant_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tenant_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, className_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logTopic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, logTopic_); } if (processingGuarantees_ != org.apache.pulsar.functions.proto.Function.ProcessingGuarantees.ATLEAST_ONCE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, processingGuarantees_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userConfig_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, userConfig_); } if (runtime_ != org.apache.pulsar.functions.proto.Function.FunctionDetails.Runtime.JAVA.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, runtime_); } if (autoAck_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, autoAck_); } if (parallelism_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, parallelism_); } if (source_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getSource()); } if (sink_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getSink()); } if (resources_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getResources()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, packageUrl_); } if (retryDetails_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getRetryDetails()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretsMap_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, secretsMap_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeFlags_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, runtimeFlags_); } if (componentType_ != org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(18, componentType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customRuntimeOptions_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, customRuntimeOptions_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(builtin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, builtin_); } if (retainOrdering_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(21, retainOrdering_); } if (retainKeyOrdering_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(22, retainKeyOrdering_); } if (subscriptionPosition_ != org.apache.pulsar.functions.proto.Function.SubscriptionPosition.LATEST.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(23, subscriptionPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.pulsar.functions.proto.Function.FunctionDetails)) { return super.equals(obj); } org.apache.pulsar.functions.proto.Function.FunctionDetails other = (org.apache.pulsar.functions.proto.Function.FunctionDetails) obj; if (!getTenant() .equals(other.getTenant())) return false; if (!getNamespace() .equals(other.getNamespace())) return false; if (!getName() .equals(other.getName())) return false; if (!getClassName() .equals(other.getClassName())) return false; if (!getLogTopic() .equals(other.getLogTopic())) return false; if (processingGuarantees_ != other.processingGuarantees_) return false; if (!getUserConfig() .equals(other.getUserConfig())) return false; if (!getSecretsMap() .equals(other.getSecretsMap())) return false; if (runtime_ != other.runtime_) return false; if (getAutoAck() != other.getAutoAck()) return false; if (getParallelism() != other.getParallelism()) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { if (!getSource() .equals(other.getSource())) return false; } if (hasSink() != other.hasSink()) return false; if (hasSink()) { if (!getSink() .equals(other.getSink())) return false; } if (hasResources() != other.hasResources()) return false; if (hasResources()) { if (!getResources() .equals(other.getResources())) return false; } if (!getPackageUrl() .equals(other.getPackageUrl())) return false; if (hasRetryDetails() != other.hasRetryDetails()) return false; if (hasRetryDetails()) { if (!getRetryDetails() .equals(other.getRetryDetails())) return false; } if (!getRuntimeFlags() .equals(other.getRuntimeFlags())) return false; if (componentType_ != other.componentType_) return false; if (!getCustomRuntimeOptions() .equals(other.getCustomRuntimeOptions())) return false; if (!getBuiltin() .equals(other.getBuiltin())) return false; if (getRetainOrdering() != other.getRetainOrdering()) return false; if (getRetainKeyOrdering() != other.getRetainKeyOrdering()) return false; if (subscriptionPosition_ != other.subscriptionPosition_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TENANT_FIELD_NUMBER; hash = (53 * hash) + getTenant().hashCode(); hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + CLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getClassName().hashCode(); hash = (37 * hash) + LOGTOPIC_FIELD_NUMBER; hash = (53 * hash) + getLogTopic().hashCode(); hash = (37 * hash) + PROCESSINGGUARANTEES_FIELD_NUMBER; hash = (53 * hash) + processingGuarantees_; hash = (37 * hash) + USERCONFIG_FIELD_NUMBER; hash = (53 * hash) + getUserConfig().hashCode(); hash = (37 * hash) + SECRETSMAP_FIELD_NUMBER; hash = (53 * hash) + getSecretsMap().hashCode(); hash = (37 * hash) + RUNTIME_FIELD_NUMBER; hash = (53 * hash) + runtime_; hash = (37 * hash) + AUTOACK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAutoAck()); hash = (37 * hash) + PARALLELISM_FIELD_NUMBER; hash = (53 * hash) + getParallelism(); if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (hasSink()) { hash = (37 * hash) + SINK_FIELD_NUMBER; hash = (53 * hash) + getSink().hashCode(); } if (hasResources()) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResources().hashCode(); } hash = (37 * hash) + PACKAGEURL_FIELD_NUMBER; hash = (53 * hash) + getPackageUrl().hashCode(); if (hasRetryDetails()) { hash = (37 * hash) + RETRYDETAILS_FIELD_NUMBER; hash = (53 * hash) + getRetryDetails().hashCode(); } hash = (37 * hash) + RUNTIMEFLAGS_FIELD_NUMBER; hash = (53 * hash) + getRuntimeFlags().hashCode(); hash = (37 * hash) + COMPONENTTYPE_FIELD_NUMBER; hash = (53 * hash) + componentType_; hash = (37 * hash) + CUSTOMRUNTIMEOPTIONS_FIELD_NUMBER; hash = (53 * hash) + getCustomRuntimeOptions().hashCode(); hash = (37 * hash) + BUILTIN_FIELD_NUMBER; hash = (53 * hash) + getBuiltin().hashCode(); hash = (37 * hash) + RETAINORDERING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRetainOrdering()); hash = (37 * hash) + RETAINKEYORDERING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRetainKeyOrdering()); hash = (37 * hash) + SUBSCRIPTIONPOSITION_FIELD_NUMBER; hash = (53 * hash) + subscriptionPosition_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.pulsar.functions.proto.Function.FunctionDetails parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.FunctionDetails parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.FunctionDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.FunctionDetails 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.pulsar.functions.proto.Function.FunctionDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.FunctionDetails parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.FunctionDetails parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.FunctionDetails 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.pulsar.functions.proto.Function.FunctionDetails parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.FunctionDetails 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.pulsar.functions.proto.Function.FunctionDetails parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.FunctionDetails 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.pulsar.functions.proto.Function.FunctionDetails 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 proto.FunctionDetails} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FunctionDetails) org.apache.pulsar.functions.proto.Function.FunctionDetailsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.FunctionDetails.class, org.apache.pulsar.functions.proto.Function.FunctionDetails.Builder.class); } // Construct using org.apache.pulsar.functions.proto.Function.FunctionDetails.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); tenant_ = ""; namespace_ = ""; name_ = ""; className_ = ""; logTopic_ = ""; processingGuarantees_ = 0; userConfig_ = ""; secretsMap_ = ""; runtime_ = 0; autoAck_ = false; parallelism_ = 0; if (sourceBuilder_ == null) { source_ = null; } else { source_ = null; sourceBuilder_ = null; } if (sinkBuilder_ == null) { sink_ = null; } else { sink_ = null; sinkBuilder_ = null; } if (resourcesBuilder_ == null) { resources_ = null; } else { resources_ = null; resourcesBuilder_ = null; } packageUrl_ = ""; if (retryDetailsBuilder_ == null) { retryDetails_ = null; } else { retryDetails_ = null; retryDetailsBuilder_ = null; } runtimeFlags_ = ""; componentType_ = 0; customRuntimeOptions_ = ""; builtin_ = ""; retainOrdering_ = false; retainKeyOrdering_ = false; subscriptionPosition_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionDetails_descriptor; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionDetails getDefaultInstanceForType() { return org.apache.pulsar.functions.proto.Function.FunctionDetails.getDefaultInstance(); } @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionDetails build() { org.apache.pulsar.functions.proto.Function.FunctionDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionDetails buildPartial() { org.apache.pulsar.functions.proto.Function.FunctionDetails result = new org.apache.pulsar.functions.proto.Function.FunctionDetails(this); result.tenant_ = tenant_; result.namespace_ = namespace_; result.name_ = name_; result.className_ = className_; result.logTopic_ = logTopic_; result.processingGuarantees_ = processingGuarantees_; result.userConfig_ = userConfig_; result.secretsMap_ = secretsMap_; result.runtime_ = runtime_; result.autoAck_ = autoAck_; result.parallelism_ = parallelism_; if (sourceBuilder_ == null) { result.source_ = source_; } else { result.source_ = sourceBuilder_.build(); } if (sinkBuilder_ == null) { result.sink_ = sink_; } else { result.sink_ = sinkBuilder_.build(); } if (resourcesBuilder_ == null) { result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } result.packageUrl_ = packageUrl_; if (retryDetailsBuilder_ == null) { result.retryDetails_ = retryDetails_; } else { result.retryDetails_ = retryDetailsBuilder_.build(); } result.runtimeFlags_ = runtimeFlags_; result.componentType_ = componentType_; result.customRuntimeOptions_ = customRuntimeOptions_; result.builtin_ = builtin_; result.retainOrdering_ = retainOrdering_; result.retainKeyOrdering_ = retainKeyOrdering_; result.subscriptionPosition_ = subscriptionPosition_; 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.pulsar.functions.proto.Function.FunctionDetails) { return mergeFrom((org.apache.pulsar.functions.proto.Function.FunctionDetails)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.pulsar.functions.proto.Function.FunctionDetails other) { if (other == org.apache.pulsar.functions.proto.Function.FunctionDetails.getDefaultInstance()) return this; if (!other.getTenant().isEmpty()) { tenant_ = other.tenant_; onChanged(); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getClassName().isEmpty()) { className_ = other.className_; onChanged(); } if (!other.getLogTopic().isEmpty()) { logTopic_ = other.logTopic_; onChanged(); } if (other.processingGuarantees_ != 0) { setProcessingGuaranteesValue(other.getProcessingGuaranteesValue()); } if (!other.getUserConfig().isEmpty()) { userConfig_ = other.userConfig_; onChanged(); } if (!other.getSecretsMap().isEmpty()) { secretsMap_ = other.secretsMap_; onChanged(); } if (other.runtime_ != 0) { setRuntimeValue(other.getRuntimeValue()); } if (other.getAutoAck() != false) { setAutoAck(other.getAutoAck()); } if (other.getParallelism() != 0) { setParallelism(other.getParallelism()); } if (other.hasSource()) { mergeSource(other.getSource()); } if (other.hasSink()) { mergeSink(other.getSink()); } if (other.hasResources()) { mergeResources(other.getResources()); } if (!other.getPackageUrl().isEmpty()) { packageUrl_ = other.packageUrl_; onChanged(); } if (other.hasRetryDetails()) { mergeRetryDetails(other.getRetryDetails()); } if (!other.getRuntimeFlags().isEmpty()) { runtimeFlags_ = other.runtimeFlags_; onChanged(); } if (other.componentType_ != 0) { setComponentTypeValue(other.getComponentTypeValue()); } if (!other.getCustomRuntimeOptions().isEmpty()) { customRuntimeOptions_ = other.customRuntimeOptions_; onChanged(); } if (!other.getBuiltin().isEmpty()) { builtin_ = other.builtin_; onChanged(); } if (other.getRetainOrdering() != false) { setRetainOrdering(other.getRetainOrdering()); } if (other.getRetainKeyOrdering() != false) { setRetainKeyOrdering(other.getRetainKeyOrdering()); } if (other.subscriptionPosition_ != 0) { setSubscriptionPositionValue(other.getSubscriptionPositionValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tenant_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { namespace_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { name_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { className_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { logTopic_ = input.readStringRequireUtf8(); break; } // case 42 case 48: { processingGuarantees_ = input.readEnum(); break; } // case 48 case 58: { userConfig_ = input.readStringRequireUtf8(); break; } // case 58 case 64: { runtime_ = input.readEnum(); break; } // case 64 case 72: { autoAck_ = input.readBool(); break; } // case 72 case 80: { parallelism_ = input.readInt32(); break; } // case 80 case 90: { input.readMessage( getSourceFieldBuilder().getBuilder(), extensionRegistry); break; } // case 90 case 98: { input.readMessage( getSinkFieldBuilder().getBuilder(), extensionRegistry); break; } // case 98 case 106: { input.readMessage( getResourcesFieldBuilder().getBuilder(), extensionRegistry); break; } // case 106 case 114: { packageUrl_ = input.readStringRequireUtf8(); break; } // case 114 case 122: { input.readMessage( getRetryDetailsFieldBuilder().getBuilder(), extensionRegistry); break; } // case 122 case 130: { secretsMap_ = input.readStringRequireUtf8(); break; } // case 130 case 138: { runtimeFlags_ = input.readStringRequireUtf8(); break; } // case 138 case 144: { componentType_ = input.readEnum(); break; } // case 144 case 154: { customRuntimeOptions_ = input.readStringRequireUtf8(); break; } // case 154 case 162: { builtin_ = input.readStringRequireUtf8(); break; } // case 162 case 168: { retainOrdering_ = input.readBool(); break; } // case 168 case 176: { retainKeyOrdering_ = input.readBool(); break; } // case 176 case 184: { subscriptionPosition_ = input.readEnum(); break; } // case 184 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private java.lang.Object tenant_ = ""; /** * string tenant = 1; * @return The tenant. */ public java.lang.String getTenant() { java.lang.Object ref = tenant_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tenant_ = s; return s; } else { return (java.lang.String) ref; } } /** * string tenant = 1; * @return The bytes for tenant. */ public com.google.protobuf.ByteString getTenantBytes() { java.lang.Object ref = tenant_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tenant_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string tenant = 1; * @param value The tenant to set. * @return This builder for chaining. */ public Builder setTenant( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tenant_ = value; onChanged(); return this; } /** * string tenant = 1; * @return This builder for chaining. */ public Builder clearTenant() { tenant_ = getDefaultInstance().getTenant(); onChanged(); return this; } /** * string tenant = 1; * @param value The bytes for tenant to set. * @return This builder for chaining. */ public Builder setTenantBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tenant_ = value; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** * string namespace = 2; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** * string namespace = 2; * @return The bytes for namespace. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string namespace = 2; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); return this; } /** * string namespace = 2; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * string namespace = 2; * @param value The bytes for namespace to set. * @return This builder for chaining. */ public Builder setNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespace_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 3; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 3; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 3; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 3; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 3; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object className_ = ""; /** * string className = 4; * @return The className. */ public java.lang.String getClassName() { java.lang.Object ref = className_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); className_ = s; return s; } else { return (java.lang.String) ref; } } /** * string className = 4; * @return The bytes for className. */ public com.google.protobuf.ByteString getClassNameBytes() { java.lang.Object ref = className_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); className_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string className = 4; * @param value The className to set. * @return This builder for chaining. */ public Builder setClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } className_ = value; onChanged(); return this; } /** * string className = 4; * @return This builder for chaining. */ public Builder clearClassName() { className_ = getDefaultInstance().getClassName(); onChanged(); return this; } /** * string className = 4; * @param value The bytes for className to set. * @return This builder for chaining. */ public Builder setClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); className_ = value; onChanged(); return this; } private java.lang.Object logTopic_ = ""; /** * string logTopic = 5; * @return The logTopic. */ public java.lang.String getLogTopic() { java.lang.Object ref = logTopic_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logTopic_ = s; return s; } else { return (java.lang.String) ref; } } /** * string logTopic = 5; * @return The bytes for logTopic. */ public com.google.protobuf.ByteString getLogTopicBytes() { java.lang.Object ref = logTopic_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string logTopic = 5; * @param value The logTopic to set. * @return This builder for chaining. */ public Builder setLogTopic( java.lang.String value) { if (value == null) { throw new NullPointerException(); } logTopic_ = value; onChanged(); return this; } /** * string logTopic = 5; * @return This builder for chaining. */ public Builder clearLogTopic() { logTopic_ = getDefaultInstance().getLogTopic(); onChanged(); return this; } /** * string logTopic = 5; * @param value The bytes for logTopic to set. * @return This builder for chaining. */ public Builder setLogTopicBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logTopic_ = value; onChanged(); return this; } private int processingGuarantees_ = 0; /** * .proto.ProcessingGuarantees processingGuarantees = 6; * @return The enum numeric value on the wire for processingGuarantees. */ @java.lang.Override public int getProcessingGuaranteesValue() { return processingGuarantees_; } /** * .proto.ProcessingGuarantees processingGuarantees = 6; * @param value The enum numeric value on the wire for processingGuarantees to set. * @return This builder for chaining. */ public Builder setProcessingGuaranteesValue(int value) { processingGuarantees_ = value; onChanged(); return this; } /** * .proto.ProcessingGuarantees processingGuarantees = 6; * @return The processingGuarantees. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.ProcessingGuarantees getProcessingGuarantees() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.ProcessingGuarantees result = org.apache.pulsar.functions.proto.Function.ProcessingGuarantees.valueOf(processingGuarantees_); return result == null ? org.apache.pulsar.functions.proto.Function.ProcessingGuarantees.UNRECOGNIZED : result; } /** * .proto.ProcessingGuarantees processingGuarantees = 6; * @param value The processingGuarantees to set. * @return This builder for chaining. */ public Builder setProcessingGuarantees(org.apache.pulsar.functions.proto.Function.ProcessingGuarantees value) { if (value == null) { throw new NullPointerException(); } processingGuarantees_ = value.getNumber(); onChanged(); return this; } /** * .proto.ProcessingGuarantees processingGuarantees = 6; * @return This builder for chaining. */ public Builder clearProcessingGuarantees() { processingGuarantees_ = 0; onChanged(); return this; } private java.lang.Object userConfig_ = ""; /** * string userConfig = 7; * @return The userConfig. */ public java.lang.String getUserConfig() { java.lang.Object ref = userConfig_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userConfig_ = s; return s; } else { return (java.lang.String) ref; } } /** * string userConfig = 7; * @return The bytes for userConfig. */ public com.google.protobuf.ByteString getUserConfigBytes() { java.lang.Object ref = userConfig_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userConfig_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string userConfig = 7; * @param value The userConfig to set. * @return This builder for chaining. */ public Builder setUserConfig( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userConfig_ = value; onChanged(); return this; } /** * string userConfig = 7; * @return This builder for chaining. */ public Builder clearUserConfig() { userConfig_ = getDefaultInstance().getUserConfig(); onChanged(); return this; } /** * string userConfig = 7; * @param value The bytes for userConfig to set. * @return This builder for chaining. */ public Builder setUserConfigBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userConfig_ = value; onChanged(); return this; } private java.lang.Object secretsMap_ = ""; /** * string secretsMap = 16; * @return The secretsMap. */ public java.lang.String getSecretsMap() { java.lang.Object ref = secretsMap_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretsMap_ = s; return s; } else { return (java.lang.String) ref; } } /** * string secretsMap = 16; * @return The bytes for secretsMap. */ public com.google.protobuf.ByteString getSecretsMapBytes() { java.lang.Object ref = secretsMap_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secretsMap_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string secretsMap = 16; * @param value The secretsMap to set. * @return This builder for chaining. */ public Builder setSecretsMap( java.lang.String value) { if (value == null) { throw new NullPointerException(); } secretsMap_ = value; onChanged(); return this; } /** * string secretsMap = 16; * @return This builder for chaining. */ public Builder clearSecretsMap() { secretsMap_ = getDefaultInstance().getSecretsMap(); onChanged(); return this; } /** * string secretsMap = 16; * @param value The bytes for secretsMap to set. * @return This builder for chaining. */ public Builder setSecretsMapBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); secretsMap_ = value; onChanged(); return this; } private int runtime_ = 0; /** * .proto.FunctionDetails.Runtime runtime = 8; * @return The enum numeric value on the wire for runtime. */ @java.lang.Override public int getRuntimeValue() { return runtime_; } /** * .proto.FunctionDetails.Runtime runtime = 8; * @param value The enum numeric value on the wire for runtime to set. * @return This builder for chaining. */ public Builder setRuntimeValue(int value) { runtime_ = value; onChanged(); return this; } /** * .proto.FunctionDetails.Runtime runtime = 8; * @return The runtime. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionDetails.Runtime getRuntime() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.FunctionDetails.Runtime result = org.apache.pulsar.functions.proto.Function.FunctionDetails.Runtime.valueOf(runtime_); return result == null ? org.apache.pulsar.functions.proto.Function.FunctionDetails.Runtime.UNRECOGNIZED : result; } /** * .proto.FunctionDetails.Runtime runtime = 8; * @param value The runtime to set. * @return This builder for chaining. */ public Builder setRuntime(org.apache.pulsar.functions.proto.Function.FunctionDetails.Runtime value) { if (value == null) { throw new NullPointerException(); } runtime_ = value.getNumber(); onChanged(); return this; } /** * .proto.FunctionDetails.Runtime runtime = 8; * @return This builder for chaining. */ public Builder clearRuntime() { runtime_ = 0; onChanged(); return this; } private boolean autoAck_ ; /** *
       * Deprecated since, see https://github.com/apache/pulsar/issues/15560
       * 
* * bool autoAck = 9 [deprecated = true]; * @deprecated * @return The autoAck. */ @java.lang.Override @java.lang.Deprecated public boolean getAutoAck() { return autoAck_; } /** *
       * Deprecated since, see https://github.com/apache/pulsar/issues/15560
       * 
* * bool autoAck = 9 [deprecated = true]; * @deprecated * @param value The autoAck to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setAutoAck(boolean value) { autoAck_ = value; onChanged(); return this; } /** *
       * Deprecated since, see https://github.com/apache/pulsar/issues/15560
       * 
* * bool autoAck = 9 [deprecated = true]; * @deprecated * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearAutoAck() { autoAck_ = false; onChanged(); return this; } private int parallelism_ ; /** * int32 parallelism = 10; * @return The parallelism. */ @java.lang.Override public int getParallelism() { return parallelism_; } /** * int32 parallelism = 10; * @param value The parallelism to set. * @return This builder for chaining. */ public Builder setParallelism(int value) { parallelism_ = value; onChanged(); return this; } /** * int32 parallelism = 10; * @return This builder for chaining. */ public Builder clearParallelism() { parallelism_ = 0; onChanged(); return this; } private org.apache.pulsar.functions.proto.Function.SourceSpec source_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.SourceSpec, org.apache.pulsar.functions.proto.Function.SourceSpec.Builder, org.apache.pulsar.functions.proto.Function.SourceSpecOrBuilder> sourceBuilder_; /** * .proto.SourceSpec source = 11; * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** * .proto.SourceSpec source = 11; * @return The source. */ public org.apache.pulsar.functions.proto.Function.SourceSpec getSource() { if (sourceBuilder_ == null) { return source_ == null ? org.apache.pulsar.functions.proto.Function.SourceSpec.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * .proto.SourceSpec source = 11; */ public Builder setSource(org.apache.pulsar.functions.proto.Function.SourceSpec value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { sourceBuilder_.setMessage(value); } return this; } /** * .proto.SourceSpec source = 11; */ public Builder setSource( org.apache.pulsar.functions.proto.Function.SourceSpec.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { sourceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.SourceSpec source = 11; */ public Builder mergeSource(org.apache.pulsar.functions.proto.Function.SourceSpec value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = org.apache.pulsar.functions.proto.Function.SourceSpec.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } onChanged(); } else { sourceBuilder_.mergeFrom(value); } return this; } /** * .proto.SourceSpec source = 11; */ public Builder clearSource() { if (sourceBuilder_ == null) { source_ = null; onChanged(); } else { source_ = null; sourceBuilder_ = null; } return this; } /** * .proto.SourceSpec source = 11; */ public org.apache.pulsar.functions.proto.Function.SourceSpec.Builder getSourceBuilder() { onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * .proto.SourceSpec source = 11; */ public org.apache.pulsar.functions.proto.Function.SourceSpecOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? org.apache.pulsar.functions.proto.Function.SourceSpec.getDefaultInstance() : source_; } } /** * .proto.SourceSpec source = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.SourceSpec, org.apache.pulsar.functions.proto.Function.SourceSpec.Builder, org.apache.pulsar.functions.proto.Function.SourceSpecOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.SourceSpec, org.apache.pulsar.functions.proto.Function.SourceSpec.Builder, org.apache.pulsar.functions.proto.Function.SourceSpecOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } private org.apache.pulsar.functions.proto.Function.SinkSpec sink_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.SinkSpec, org.apache.pulsar.functions.proto.Function.SinkSpec.Builder, org.apache.pulsar.functions.proto.Function.SinkSpecOrBuilder> sinkBuilder_; /** * .proto.SinkSpec sink = 12; * @return Whether the sink field is set. */ public boolean hasSink() { return sinkBuilder_ != null || sink_ != null; } /** * .proto.SinkSpec sink = 12; * @return The sink. */ public org.apache.pulsar.functions.proto.Function.SinkSpec getSink() { if (sinkBuilder_ == null) { return sink_ == null ? org.apache.pulsar.functions.proto.Function.SinkSpec.getDefaultInstance() : sink_; } else { return sinkBuilder_.getMessage(); } } /** * .proto.SinkSpec sink = 12; */ public Builder setSink(org.apache.pulsar.functions.proto.Function.SinkSpec value) { if (sinkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sink_ = value; onChanged(); } else { sinkBuilder_.setMessage(value); } return this; } /** * .proto.SinkSpec sink = 12; */ public Builder setSink( org.apache.pulsar.functions.proto.Function.SinkSpec.Builder builderForValue) { if (sinkBuilder_ == null) { sink_ = builderForValue.build(); onChanged(); } else { sinkBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.SinkSpec sink = 12; */ public Builder mergeSink(org.apache.pulsar.functions.proto.Function.SinkSpec value) { if (sinkBuilder_ == null) { if (sink_ != null) { sink_ = org.apache.pulsar.functions.proto.Function.SinkSpec.newBuilder(sink_).mergeFrom(value).buildPartial(); } else { sink_ = value; } onChanged(); } else { sinkBuilder_.mergeFrom(value); } return this; } /** * .proto.SinkSpec sink = 12; */ public Builder clearSink() { if (sinkBuilder_ == null) { sink_ = null; onChanged(); } else { sink_ = null; sinkBuilder_ = null; } return this; } /** * .proto.SinkSpec sink = 12; */ public org.apache.pulsar.functions.proto.Function.SinkSpec.Builder getSinkBuilder() { onChanged(); return getSinkFieldBuilder().getBuilder(); } /** * .proto.SinkSpec sink = 12; */ public org.apache.pulsar.functions.proto.Function.SinkSpecOrBuilder getSinkOrBuilder() { if (sinkBuilder_ != null) { return sinkBuilder_.getMessageOrBuilder(); } else { return sink_ == null ? org.apache.pulsar.functions.proto.Function.SinkSpec.getDefaultInstance() : sink_; } } /** * .proto.SinkSpec sink = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.SinkSpec, org.apache.pulsar.functions.proto.Function.SinkSpec.Builder, org.apache.pulsar.functions.proto.Function.SinkSpecOrBuilder> getSinkFieldBuilder() { if (sinkBuilder_ == null) { sinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.SinkSpec, org.apache.pulsar.functions.proto.Function.SinkSpec.Builder, org.apache.pulsar.functions.proto.Function.SinkSpecOrBuilder>( getSink(), getParentForChildren(), isClean()); sink_ = null; } return sinkBuilder_; } private org.apache.pulsar.functions.proto.Function.Resources resources_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.Resources, org.apache.pulsar.functions.proto.Function.Resources.Builder, org.apache.pulsar.functions.proto.Function.ResourcesOrBuilder> resourcesBuilder_; /** * .proto.Resources resources = 13; * @return Whether the resources field is set. */ public boolean hasResources() { return resourcesBuilder_ != null || resources_ != null; } /** * .proto.Resources resources = 13; * @return The resources. */ public org.apache.pulsar.functions.proto.Function.Resources getResources() { if (resourcesBuilder_ == null) { return resources_ == null ? org.apache.pulsar.functions.proto.Function.Resources.getDefaultInstance() : resources_; } else { return resourcesBuilder_.getMessage(); } } /** * .proto.Resources resources = 13; */ public Builder setResources(org.apache.pulsar.functions.proto.Function.Resources value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resources_ = value; onChanged(); } else { resourcesBuilder_.setMessage(value); } return this; } /** * .proto.Resources resources = 13; */ public Builder setResources( org.apache.pulsar.functions.proto.Function.Resources.Builder builderForValue) { if (resourcesBuilder_ == null) { resources_ = builderForValue.build(); onChanged(); } else { resourcesBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.Resources resources = 13; */ public Builder mergeResources(org.apache.pulsar.functions.proto.Function.Resources value) { if (resourcesBuilder_ == null) { if (resources_ != null) { resources_ = org.apache.pulsar.functions.proto.Function.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); } else { resources_ = value; } onChanged(); } else { resourcesBuilder_.mergeFrom(value); } return this; } /** * .proto.Resources resources = 13; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = null; onChanged(); } else { resources_ = null; resourcesBuilder_ = null; } return this; } /** * .proto.Resources resources = 13; */ public org.apache.pulsar.functions.proto.Function.Resources.Builder getResourcesBuilder() { onChanged(); return getResourcesFieldBuilder().getBuilder(); } /** * .proto.Resources resources = 13; */ public org.apache.pulsar.functions.proto.Function.ResourcesOrBuilder getResourcesOrBuilder() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilder(); } else { return resources_ == null ? org.apache.pulsar.functions.proto.Function.Resources.getDefaultInstance() : resources_; } } /** * .proto.Resources resources = 13; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.Resources, org.apache.pulsar.functions.proto.Function.Resources.Builder, org.apache.pulsar.functions.proto.Function.ResourcesOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.Resources, org.apache.pulsar.functions.proto.Function.Resources.Builder, org.apache.pulsar.functions.proto.Function.ResourcesOrBuilder>( getResources(), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private java.lang.Object packageUrl_ = ""; /** *
       *present only if function submitted with package-url
       * 
* * string packageUrl = 14; * @return The packageUrl. */ public java.lang.String getPackageUrl() { java.lang.Object ref = packageUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); packageUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       *present only if function submitted with package-url
       * 
* * string packageUrl = 14; * @return The bytes for packageUrl. */ public com.google.protobuf.ByteString getPackageUrlBytes() { java.lang.Object ref = packageUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *present only if function submitted with package-url
       * 
* * string packageUrl = 14; * @param value The packageUrl to set. * @return This builder for chaining. */ public Builder setPackageUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } packageUrl_ = value; onChanged(); return this; } /** *
       *present only if function submitted with package-url
       * 
* * string packageUrl = 14; * @return This builder for chaining. */ public Builder clearPackageUrl() { packageUrl_ = getDefaultInstance().getPackageUrl(); onChanged(); return this; } /** *
       *present only if function submitted with package-url
       * 
* * string packageUrl = 14; * @param value The bytes for packageUrl to set. * @return This builder for chaining. */ public Builder setPackageUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); packageUrl_ = value; onChanged(); return this; } private org.apache.pulsar.functions.proto.Function.RetryDetails retryDetails_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.RetryDetails, org.apache.pulsar.functions.proto.Function.RetryDetails.Builder, org.apache.pulsar.functions.proto.Function.RetryDetailsOrBuilder> retryDetailsBuilder_; /** * .proto.RetryDetails retryDetails = 15; * @return Whether the retryDetails field is set. */ public boolean hasRetryDetails() { return retryDetailsBuilder_ != null || retryDetails_ != null; } /** * .proto.RetryDetails retryDetails = 15; * @return The retryDetails. */ public org.apache.pulsar.functions.proto.Function.RetryDetails getRetryDetails() { if (retryDetailsBuilder_ == null) { return retryDetails_ == null ? org.apache.pulsar.functions.proto.Function.RetryDetails.getDefaultInstance() : retryDetails_; } else { return retryDetailsBuilder_.getMessage(); } } /** * .proto.RetryDetails retryDetails = 15; */ public Builder setRetryDetails(org.apache.pulsar.functions.proto.Function.RetryDetails value) { if (retryDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retryDetails_ = value; onChanged(); } else { retryDetailsBuilder_.setMessage(value); } return this; } /** * .proto.RetryDetails retryDetails = 15; */ public Builder setRetryDetails( org.apache.pulsar.functions.proto.Function.RetryDetails.Builder builderForValue) { if (retryDetailsBuilder_ == null) { retryDetails_ = builderForValue.build(); onChanged(); } else { retryDetailsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.RetryDetails retryDetails = 15; */ public Builder mergeRetryDetails(org.apache.pulsar.functions.proto.Function.RetryDetails value) { if (retryDetailsBuilder_ == null) { if (retryDetails_ != null) { retryDetails_ = org.apache.pulsar.functions.proto.Function.RetryDetails.newBuilder(retryDetails_).mergeFrom(value).buildPartial(); } else { retryDetails_ = value; } onChanged(); } else { retryDetailsBuilder_.mergeFrom(value); } return this; } /** * .proto.RetryDetails retryDetails = 15; */ public Builder clearRetryDetails() { if (retryDetailsBuilder_ == null) { retryDetails_ = null; onChanged(); } else { retryDetails_ = null; retryDetailsBuilder_ = null; } return this; } /** * .proto.RetryDetails retryDetails = 15; */ public org.apache.pulsar.functions.proto.Function.RetryDetails.Builder getRetryDetailsBuilder() { onChanged(); return getRetryDetailsFieldBuilder().getBuilder(); } /** * .proto.RetryDetails retryDetails = 15; */ public org.apache.pulsar.functions.proto.Function.RetryDetailsOrBuilder getRetryDetailsOrBuilder() { if (retryDetailsBuilder_ != null) { return retryDetailsBuilder_.getMessageOrBuilder(); } else { return retryDetails_ == null ? org.apache.pulsar.functions.proto.Function.RetryDetails.getDefaultInstance() : retryDetails_; } } /** * .proto.RetryDetails retryDetails = 15; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.RetryDetails, org.apache.pulsar.functions.proto.Function.RetryDetails.Builder, org.apache.pulsar.functions.proto.Function.RetryDetailsOrBuilder> getRetryDetailsFieldBuilder() { if (retryDetailsBuilder_ == null) { retryDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.RetryDetails, org.apache.pulsar.functions.proto.Function.RetryDetails.Builder, org.apache.pulsar.functions.proto.Function.RetryDetailsOrBuilder>( getRetryDetails(), getParentForChildren(), isClean()); retryDetails_ = null; } return retryDetailsBuilder_; } private java.lang.Object runtimeFlags_ = ""; /** * string runtimeFlags = 17; * @return The runtimeFlags. */ public java.lang.String getRuntimeFlags() { java.lang.Object ref = runtimeFlags_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtimeFlags_ = s; return s; } else { return (java.lang.String) ref; } } /** * string runtimeFlags = 17; * @return The bytes for runtimeFlags. */ public com.google.protobuf.ByteString getRuntimeFlagsBytes() { java.lang.Object ref = runtimeFlags_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); runtimeFlags_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string runtimeFlags = 17; * @param value The runtimeFlags to set. * @return This builder for chaining. */ public Builder setRuntimeFlags( java.lang.String value) { if (value == null) { throw new NullPointerException(); } runtimeFlags_ = value; onChanged(); return this; } /** * string runtimeFlags = 17; * @return This builder for chaining. */ public Builder clearRuntimeFlags() { runtimeFlags_ = getDefaultInstance().getRuntimeFlags(); onChanged(); return this; } /** * string runtimeFlags = 17; * @param value The bytes for runtimeFlags to set. * @return This builder for chaining. */ public Builder setRuntimeFlagsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); runtimeFlags_ = value; onChanged(); return this; } private int componentType_ = 0; /** * .proto.FunctionDetails.ComponentType componentType = 18; * @return The enum numeric value on the wire for componentType. */ @java.lang.Override public int getComponentTypeValue() { return componentType_; } /** * .proto.FunctionDetails.ComponentType componentType = 18; * @param value The enum numeric value on the wire for componentType to set. * @return This builder for chaining. */ public Builder setComponentTypeValue(int value) { componentType_ = value; onChanged(); return this; } /** * .proto.FunctionDetails.ComponentType componentType = 18; * @return The componentType. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType getComponentType() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType result = org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType.valueOf(componentType_); return result == null ? org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType.UNRECOGNIZED : result; } /** * .proto.FunctionDetails.ComponentType componentType = 18; * @param value The componentType to set. * @return This builder for chaining. */ public Builder setComponentType(org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType value) { if (value == null) { throw new NullPointerException(); } componentType_ = value.getNumber(); onChanged(); return this; } /** * .proto.FunctionDetails.ComponentType componentType = 18; * @return This builder for chaining. */ public Builder clearComponentType() { componentType_ = 0; onChanged(); return this; } private java.lang.Object customRuntimeOptions_ = ""; /** * string customRuntimeOptions = 19; * @return The customRuntimeOptions. */ public java.lang.String getCustomRuntimeOptions() { java.lang.Object ref = customRuntimeOptions_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customRuntimeOptions_ = s; return s; } else { return (java.lang.String) ref; } } /** * string customRuntimeOptions = 19; * @return The bytes for customRuntimeOptions. */ public com.google.protobuf.ByteString getCustomRuntimeOptionsBytes() { java.lang.Object ref = customRuntimeOptions_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customRuntimeOptions_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string customRuntimeOptions = 19; * @param value The customRuntimeOptions to set. * @return This builder for chaining. */ public Builder setCustomRuntimeOptions( java.lang.String value) { if (value == null) { throw new NullPointerException(); } customRuntimeOptions_ = value; onChanged(); return this; } /** * string customRuntimeOptions = 19; * @return This builder for chaining. */ public Builder clearCustomRuntimeOptions() { customRuntimeOptions_ = getDefaultInstance().getCustomRuntimeOptions(); onChanged(); return this; } /** * string customRuntimeOptions = 19; * @param value The bytes for customRuntimeOptions to set. * @return This builder for chaining. */ public Builder setCustomRuntimeOptionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customRuntimeOptions_ = value; onChanged(); return this; } private java.lang.Object builtin_ = ""; /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 20; * @return The builtin. */ public java.lang.String getBuiltin() { java.lang.Object ref = builtin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); builtin_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 20; * @return The bytes for builtin. */ public com.google.protobuf.ByteString getBuiltinBytes() { java.lang.Object ref = builtin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); builtin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 20; * @param value The builtin to set. * @return This builder for chaining. */ public Builder setBuiltin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } builtin_ = value; onChanged(); return this; } /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 20; * @return This builder for chaining. */ public Builder clearBuiltin() { builtin_ = getDefaultInstance().getBuiltin(); onChanged(); return this; } /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 20; * @param value The bytes for builtin to set. * @return This builder for chaining. */ public Builder setBuiltinBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); builtin_ = value; onChanged(); return this; } private boolean retainOrdering_ ; /** * bool retainOrdering = 21; * @return The retainOrdering. */ @java.lang.Override public boolean getRetainOrdering() { return retainOrdering_; } /** * bool retainOrdering = 21; * @param value The retainOrdering to set. * @return This builder for chaining. */ public Builder setRetainOrdering(boolean value) { retainOrdering_ = value; onChanged(); return this; } /** * bool retainOrdering = 21; * @return This builder for chaining. */ public Builder clearRetainOrdering() { retainOrdering_ = false; onChanged(); return this; } private boolean retainKeyOrdering_ ; /** * bool retainKeyOrdering = 22; * @return The retainKeyOrdering. */ @java.lang.Override public boolean getRetainKeyOrdering() { return retainKeyOrdering_; } /** * bool retainKeyOrdering = 22; * @param value The retainKeyOrdering to set. * @return This builder for chaining. */ public Builder setRetainKeyOrdering(boolean value) { retainKeyOrdering_ = value; onChanged(); return this; } /** * bool retainKeyOrdering = 22; * @return This builder for chaining. */ public Builder clearRetainKeyOrdering() { retainKeyOrdering_ = false; onChanged(); return this; } private int subscriptionPosition_ = 0; /** * .proto.SubscriptionPosition subscriptionPosition = 23; * @return The enum numeric value on the wire for subscriptionPosition. */ @java.lang.Override public int getSubscriptionPositionValue() { return subscriptionPosition_; } /** * .proto.SubscriptionPosition subscriptionPosition = 23; * @param value The enum numeric value on the wire for subscriptionPosition to set. * @return This builder for chaining. */ public Builder setSubscriptionPositionValue(int value) { subscriptionPosition_ = value; onChanged(); return this; } /** * .proto.SubscriptionPosition subscriptionPosition = 23; * @return The subscriptionPosition. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.SubscriptionPosition getSubscriptionPosition() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.SubscriptionPosition result = org.apache.pulsar.functions.proto.Function.SubscriptionPosition.valueOf(subscriptionPosition_); return result == null ? org.apache.pulsar.functions.proto.Function.SubscriptionPosition.UNRECOGNIZED : result; } /** * .proto.SubscriptionPosition subscriptionPosition = 23; * @param value The subscriptionPosition to set. * @return This builder for chaining. */ public Builder setSubscriptionPosition(org.apache.pulsar.functions.proto.Function.SubscriptionPosition value) { if (value == null) { throw new NullPointerException(); } subscriptionPosition_ = value.getNumber(); onChanged(); return this; } /** * .proto.SubscriptionPosition subscriptionPosition = 23; * @return This builder for chaining. */ public Builder clearSubscriptionPosition() { subscriptionPosition_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.FunctionDetails) } // @@protoc_insertion_point(class_scope:proto.FunctionDetails) private static final org.apache.pulsar.functions.proto.Function.FunctionDetails DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.pulsar.functions.proto.Function.FunctionDetails(); } public static org.apache.pulsar.functions.proto.Function.FunctionDetails getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FunctionDetails parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConsumerSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ConsumerSpec) com.google.protobuf.MessageOrBuilder { /** * string schemaType = 1; * @return The schemaType. */ java.lang.String getSchemaType(); /** * string schemaType = 1; * @return The bytes for schemaType. */ com.google.protobuf.ByteString getSchemaTypeBytes(); /** * string serdeClassName = 2; * @return The serdeClassName. */ java.lang.String getSerdeClassName(); /** * string serdeClassName = 2; * @return The bytes for serdeClassName. */ com.google.protobuf.ByteString getSerdeClassNameBytes(); /** * bool isRegexPattern = 3; * @return The isRegexPattern. */ boolean getIsRegexPattern(); /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; * @return Whether the receiverQueueSize field is set. */ boolean hasReceiverQueueSize(); /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; * @return The receiverQueueSize. */ org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize getReceiverQueueSize(); /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; */ org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSizeOrBuilder getReceiverQueueSizeOrBuilder(); /** * map<string, string> schemaProperties = 5; */ int getSchemaPropertiesCount(); /** * map<string, string> schemaProperties = 5; */ boolean containsSchemaProperties( java.lang.String key); /** * Use {@link #getSchemaPropertiesMap()} instead. */ @java.lang.Deprecated java.util.Map getSchemaProperties(); /** * map<string, string> schemaProperties = 5; */ java.util.Map getSchemaPropertiesMap(); /** * map<string, string> schemaProperties = 5; */ java.lang.String getSchemaPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue); /** * map<string, string> schemaProperties = 5; */ java.lang.String getSchemaPropertiesOrThrow( java.lang.String key); /** * map<string, string> consumerProperties = 6; */ int getConsumerPropertiesCount(); /** * map<string, string> consumerProperties = 6; */ boolean containsConsumerProperties( java.lang.String key); /** * Use {@link #getConsumerPropertiesMap()} instead. */ @java.lang.Deprecated java.util.Map getConsumerProperties(); /** * map<string, string> consumerProperties = 6; */ java.util.Map getConsumerPropertiesMap(); /** * map<string, string> consumerProperties = 6; */ java.lang.String getConsumerPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue); /** * map<string, string> consumerProperties = 6; */ java.lang.String getConsumerPropertiesOrThrow( java.lang.String key); /** * .proto.CryptoSpec cryptoSpec = 7; * @return Whether the cryptoSpec field is set. */ boolean hasCryptoSpec(); /** * .proto.CryptoSpec cryptoSpec = 7; * @return The cryptoSpec. */ org.apache.pulsar.functions.proto.Function.CryptoSpec getCryptoSpec(); /** * .proto.CryptoSpec cryptoSpec = 7; */ org.apache.pulsar.functions.proto.Function.CryptoSpecOrBuilder getCryptoSpecOrBuilder(); /** * bool poolMessages = 8; * @return The poolMessages. */ boolean getPoolMessages(); } /** * Protobuf type {@code proto.ConsumerSpec} */ public static final class ConsumerSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ConsumerSpec) ConsumerSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ConsumerSpec.newBuilder() to construct. private ConsumerSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConsumerSpec() { schemaType_ = ""; serdeClassName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConsumerSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ConsumerSpec_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetSchemaProperties(); case 6: return internalGetConsumerProperties(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ConsumerSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.ConsumerSpec.class, org.apache.pulsar.functions.proto.Function.ConsumerSpec.Builder.class); } public interface ReceiverQueueSizeOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ConsumerSpec.ReceiverQueueSize) com.google.protobuf.MessageOrBuilder { /** * int32 value = 1; * @return The value. */ int getValue(); } /** * Protobuf type {@code proto.ConsumerSpec.ReceiverQueueSize} */ public static final class ReceiverQueueSize extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ConsumerSpec.ReceiverQueueSize) ReceiverQueueSizeOrBuilder { private static final long serialVersionUID = 0L; // Use ReceiverQueueSize.newBuilder() to construct. private ReceiverQueueSize(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReceiverQueueSize() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReceiverQueueSize(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ConsumerSpec_ReceiverQueueSize_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ConsumerSpec_ReceiverQueueSize_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.class, org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private int value_; /** * int32 value = 1; * @return The value. */ @java.lang.Override public int getValue() { return value_; } 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 (value_ != 0) { output.writeInt32(1, value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (value_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize)) { return super.equals(obj); } org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize other = (org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize) obj; if (getValue() != other.getValue()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize 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.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize 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.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize 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.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize 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.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize 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 proto.ConsumerSpec.ReceiverQueueSize} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ConsumerSpec.ReceiverQueueSize) org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSizeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ConsumerSpec_ReceiverQueueSize_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ConsumerSpec_ReceiverQueueSize_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.class, org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.Builder.class); } // Construct using org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); value_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ConsumerSpec_ReceiverQueueSize_descriptor; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize getDefaultInstanceForType() { return org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.getDefaultInstance(); } @java.lang.Override public org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize build() { org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize buildPartial() { org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize result = new org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize(this); result.value_ = value_; 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.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize) { return mergeFrom((org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize other) { if (other == org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.getDefaultInstance()) return this; if (other.getValue() != 0) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { value_ = input.readInt32(); break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int value_ ; /** * int32 value = 1; * @return The value. */ @java.lang.Override public int getValue() { return value_; } /** * int32 value = 1; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(int value) { value_ = value; onChanged(); return this; } /** * int32 value = 1; * @return This builder for chaining. */ public Builder clearValue() { value_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.ConsumerSpec.ReceiverQueueSize) } // @@protoc_insertion_point(class_scope:proto.ConsumerSpec.ReceiverQueueSize) private static final org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize(); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReceiverQueueSize parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int SCHEMATYPE_FIELD_NUMBER = 1; private volatile java.lang.Object schemaType_; /** * string schemaType = 1; * @return The schemaType. */ @java.lang.Override public java.lang.String getSchemaType() { java.lang.Object ref = schemaType_; 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(); schemaType_ = s; return s; } } /** * string schemaType = 1; * @return The bytes for schemaType. */ @java.lang.Override public com.google.protobuf.ByteString getSchemaTypeBytes() { java.lang.Object ref = schemaType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERDECLASSNAME_FIELD_NUMBER = 2; private volatile java.lang.Object serdeClassName_; /** * string serdeClassName = 2; * @return The serdeClassName. */ @java.lang.Override public java.lang.String getSerdeClassName() { java.lang.Object ref = serdeClassName_; 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(); serdeClassName_ = s; return s; } } /** * string serdeClassName = 2; * @return The bytes for serdeClassName. */ @java.lang.Override public com.google.protobuf.ByteString getSerdeClassNameBytes() { java.lang.Object ref = serdeClassName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serdeClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ISREGEXPATTERN_FIELD_NUMBER = 3; private boolean isRegexPattern_; /** * bool isRegexPattern = 3; * @return The isRegexPattern. */ @java.lang.Override public boolean getIsRegexPattern() { return isRegexPattern_; } public static final int RECEIVERQUEUESIZE_FIELD_NUMBER = 4; private org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize receiverQueueSize_; /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; * @return Whether the receiverQueueSize field is set. */ @java.lang.Override public boolean hasReceiverQueueSize() { return receiverQueueSize_ != null; } /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; * @return The receiverQueueSize. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize getReceiverQueueSize() { return receiverQueueSize_ == null ? org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.getDefaultInstance() : receiverQueueSize_; } /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSizeOrBuilder getReceiverQueueSizeOrBuilder() { return getReceiverQueueSize(); } public static final int SCHEMAPROPERTIES_FIELD_NUMBER = 5; private static final class SchemaPropertiesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.apache.pulsar.functions.proto.Function.internal_static_proto_ConsumerSpec_SchemaPropertiesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> schemaProperties_; private com.google.protobuf.MapField internalGetSchemaProperties() { if (schemaProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SchemaPropertiesDefaultEntryHolder.defaultEntry); } return schemaProperties_; } public int getSchemaPropertiesCount() { return internalGetSchemaProperties().getMap().size(); } /** * map<string, string> schemaProperties = 5; */ @java.lang.Override public boolean containsSchemaProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetSchemaProperties().getMap().containsKey(key); } /** * Use {@link #getSchemaPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getSchemaProperties() { return getSchemaPropertiesMap(); } /** * map<string, string> schemaProperties = 5; */ @java.lang.Override public java.util.Map getSchemaPropertiesMap() { return internalGetSchemaProperties().getMap(); } /** * map<string, string> schemaProperties = 5; */ @java.lang.Override public java.lang.String getSchemaPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetSchemaProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> schemaProperties = 5; */ @java.lang.Override public java.lang.String getSchemaPropertiesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetSchemaProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CONSUMERPROPERTIES_FIELD_NUMBER = 6; private static final class ConsumerPropertiesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.apache.pulsar.functions.proto.Function.internal_static_proto_ConsumerSpec_ConsumerPropertiesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> consumerProperties_; private com.google.protobuf.MapField internalGetConsumerProperties() { if (consumerProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ConsumerPropertiesDefaultEntryHolder.defaultEntry); } return consumerProperties_; } public int getConsumerPropertiesCount() { return internalGetConsumerProperties().getMap().size(); } /** * map<string, string> consumerProperties = 6; */ @java.lang.Override public boolean containsConsumerProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetConsumerProperties().getMap().containsKey(key); } /** * Use {@link #getConsumerPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConsumerProperties() { return getConsumerPropertiesMap(); } /** * map<string, string> consumerProperties = 6; */ @java.lang.Override public java.util.Map getConsumerPropertiesMap() { return internalGetConsumerProperties().getMap(); } /** * map<string, string> consumerProperties = 6; */ @java.lang.Override public java.lang.String getConsumerPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConsumerProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> consumerProperties = 6; */ @java.lang.Override public java.lang.String getConsumerPropertiesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConsumerProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CRYPTOSPEC_FIELD_NUMBER = 7; private org.apache.pulsar.functions.proto.Function.CryptoSpec cryptoSpec_; /** * .proto.CryptoSpec cryptoSpec = 7; * @return Whether the cryptoSpec field is set. */ @java.lang.Override public boolean hasCryptoSpec() { return cryptoSpec_ != null; } /** * .proto.CryptoSpec cryptoSpec = 7; * @return The cryptoSpec. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.CryptoSpec getCryptoSpec() { return cryptoSpec_ == null ? org.apache.pulsar.functions.proto.Function.CryptoSpec.getDefaultInstance() : cryptoSpec_; } /** * .proto.CryptoSpec cryptoSpec = 7; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.CryptoSpecOrBuilder getCryptoSpecOrBuilder() { return getCryptoSpec(); } public static final int POOLMESSAGES_FIELD_NUMBER = 8; private boolean poolMessages_; /** * bool poolMessages = 8; * @return The poolMessages. */ @java.lang.Override public boolean getPoolMessages() { return poolMessages_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schemaType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serdeClassName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serdeClassName_); } if (isRegexPattern_ != false) { output.writeBool(3, isRegexPattern_); } if (receiverQueueSize_ != null) { output.writeMessage(4, getReceiverQueueSize()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetSchemaProperties(), SchemaPropertiesDefaultEntryHolder.defaultEntry, 5); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetConsumerProperties(), ConsumerPropertiesDefaultEntryHolder.defaultEntry, 6); if (cryptoSpec_ != null) { output.writeMessage(7, getCryptoSpec()); } if (poolMessages_ != false) { output.writeBool(8, poolMessages_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schemaType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serdeClassName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serdeClassName_); } if (isRegexPattern_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isRegexPattern_); } if (receiverQueueSize_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getReceiverQueueSize()); } for (java.util.Map.Entry entry : internalGetSchemaProperties().getMap().entrySet()) { com.google.protobuf.MapEntry schemaProperties__ = SchemaPropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, schemaProperties__); } for (java.util.Map.Entry entry : internalGetConsumerProperties().getMap().entrySet()) { com.google.protobuf.MapEntry consumerProperties__ = ConsumerPropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, consumerProperties__); } if (cryptoSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCryptoSpec()); } if (poolMessages_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, poolMessages_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.pulsar.functions.proto.Function.ConsumerSpec)) { return super.equals(obj); } org.apache.pulsar.functions.proto.Function.ConsumerSpec other = (org.apache.pulsar.functions.proto.Function.ConsumerSpec) obj; if (!getSchemaType() .equals(other.getSchemaType())) return false; if (!getSerdeClassName() .equals(other.getSerdeClassName())) return false; if (getIsRegexPattern() != other.getIsRegexPattern()) return false; if (hasReceiverQueueSize() != other.hasReceiverQueueSize()) return false; if (hasReceiverQueueSize()) { if (!getReceiverQueueSize() .equals(other.getReceiverQueueSize())) return false; } if (!internalGetSchemaProperties().equals( other.internalGetSchemaProperties())) return false; if (!internalGetConsumerProperties().equals( other.internalGetConsumerProperties())) return false; if (hasCryptoSpec() != other.hasCryptoSpec()) return false; if (hasCryptoSpec()) { if (!getCryptoSpec() .equals(other.getCryptoSpec())) return false; } if (getPoolMessages() != other.getPoolMessages()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SCHEMATYPE_FIELD_NUMBER; hash = (53 * hash) + getSchemaType().hashCode(); hash = (37 * hash) + SERDECLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getSerdeClassName().hashCode(); hash = (37 * hash) + ISREGEXPATTERN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsRegexPattern()); if (hasReceiverQueueSize()) { hash = (37 * hash) + RECEIVERQUEUESIZE_FIELD_NUMBER; hash = (53 * hash) + getReceiverQueueSize().hashCode(); } if (!internalGetSchemaProperties().getMap().isEmpty()) { hash = (37 * hash) + SCHEMAPROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetSchemaProperties().hashCode(); } if (!internalGetConsumerProperties().getMap().isEmpty()) { hash = (37 * hash) + CONSUMERPROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetConsumerProperties().hashCode(); } if (hasCryptoSpec()) { hash = (37 * hash) + CRYPTOSPEC_FIELD_NUMBER; hash = (53 * hash) + getCryptoSpec().hashCode(); } hash = (37 * hash) + POOLMESSAGES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPoolMessages()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec 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.pulsar.functions.proto.Function.ConsumerSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec 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.pulsar.functions.proto.Function.ConsumerSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec 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.pulsar.functions.proto.Function.ConsumerSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec 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.pulsar.functions.proto.Function.ConsumerSpec 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 proto.ConsumerSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ConsumerSpec) org.apache.pulsar.functions.proto.Function.ConsumerSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ConsumerSpec_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetSchemaProperties(); case 6: return internalGetConsumerProperties(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableSchemaProperties(); case 6: return internalGetMutableConsumerProperties(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ConsumerSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.ConsumerSpec.class, org.apache.pulsar.functions.proto.Function.ConsumerSpec.Builder.class); } // Construct using org.apache.pulsar.functions.proto.Function.ConsumerSpec.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); schemaType_ = ""; serdeClassName_ = ""; isRegexPattern_ = false; if (receiverQueueSizeBuilder_ == null) { receiverQueueSize_ = null; } else { receiverQueueSize_ = null; receiverQueueSizeBuilder_ = null; } internalGetMutableSchemaProperties().clear(); internalGetMutableConsumerProperties().clear(); if (cryptoSpecBuilder_ == null) { cryptoSpec_ = null; } else { cryptoSpec_ = null; cryptoSpecBuilder_ = null; } poolMessages_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ConsumerSpec_descriptor; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.ConsumerSpec getDefaultInstanceForType() { return org.apache.pulsar.functions.proto.Function.ConsumerSpec.getDefaultInstance(); } @java.lang.Override public org.apache.pulsar.functions.proto.Function.ConsumerSpec build() { org.apache.pulsar.functions.proto.Function.ConsumerSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.ConsumerSpec buildPartial() { org.apache.pulsar.functions.proto.Function.ConsumerSpec result = new org.apache.pulsar.functions.proto.Function.ConsumerSpec(this); int from_bitField0_ = bitField0_; result.schemaType_ = schemaType_; result.serdeClassName_ = serdeClassName_; result.isRegexPattern_ = isRegexPattern_; if (receiverQueueSizeBuilder_ == null) { result.receiverQueueSize_ = receiverQueueSize_; } else { result.receiverQueueSize_ = receiverQueueSizeBuilder_.build(); } result.schemaProperties_ = internalGetSchemaProperties(); result.schemaProperties_.makeImmutable(); result.consumerProperties_ = internalGetConsumerProperties(); result.consumerProperties_.makeImmutable(); if (cryptoSpecBuilder_ == null) { result.cryptoSpec_ = cryptoSpec_; } else { result.cryptoSpec_ = cryptoSpecBuilder_.build(); } result.poolMessages_ = poolMessages_; 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.pulsar.functions.proto.Function.ConsumerSpec) { return mergeFrom((org.apache.pulsar.functions.proto.Function.ConsumerSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.pulsar.functions.proto.Function.ConsumerSpec other) { if (other == org.apache.pulsar.functions.proto.Function.ConsumerSpec.getDefaultInstance()) return this; if (!other.getSchemaType().isEmpty()) { schemaType_ = other.schemaType_; onChanged(); } if (!other.getSerdeClassName().isEmpty()) { serdeClassName_ = other.serdeClassName_; onChanged(); } if (other.getIsRegexPattern() != false) { setIsRegexPattern(other.getIsRegexPattern()); } if (other.hasReceiverQueueSize()) { mergeReceiverQueueSize(other.getReceiverQueueSize()); } internalGetMutableSchemaProperties().mergeFrom( other.internalGetSchemaProperties()); internalGetMutableConsumerProperties().mergeFrom( other.internalGetConsumerProperties()); if (other.hasCryptoSpec()) { mergeCryptoSpec(other.getCryptoSpec()); } if (other.getPoolMessages() != false) { setPoolMessages(other.getPoolMessages()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { schemaType_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { serdeClassName_ = input.readStringRequireUtf8(); break; } // case 18 case 24: { isRegexPattern_ = input.readBool(); break; } // case 24 case 34: { input.readMessage( getReceiverQueueSizeFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 case 42: { com.google.protobuf.MapEntry schemaProperties__ = input.readMessage( SchemaPropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableSchemaProperties().getMutableMap().put( schemaProperties__.getKey(), schemaProperties__.getValue()); break; } // case 42 case 50: { com.google.protobuf.MapEntry consumerProperties__ = input.readMessage( ConsumerPropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableConsumerProperties().getMutableMap().put( consumerProperties__.getKey(), consumerProperties__.getValue()); break; } // case 50 case 58: { input.readMessage( getCryptoSpecFieldBuilder().getBuilder(), extensionRegistry); break; } // case 58 case 64: { poolMessages_ = input.readBool(); break; } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object schemaType_ = ""; /** * string schemaType = 1; * @return The schemaType. */ public java.lang.String getSchemaType() { java.lang.Object ref = schemaType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaType_ = s; return s; } else { return (java.lang.String) ref; } } /** * string schemaType = 1; * @return The bytes for schemaType. */ public com.google.protobuf.ByteString getSchemaTypeBytes() { java.lang.Object ref = schemaType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string schemaType = 1; * @param value The schemaType to set. * @return This builder for chaining. */ public Builder setSchemaType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } schemaType_ = value; onChanged(); return this; } /** * string schemaType = 1; * @return This builder for chaining. */ public Builder clearSchemaType() { schemaType_ = getDefaultInstance().getSchemaType(); onChanged(); return this; } /** * string schemaType = 1; * @param value The bytes for schemaType to set. * @return This builder for chaining. */ public Builder setSchemaTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaType_ = value; onChanged(); return this; } private java.lang.Object serdeClassName_ = ""; /** * string serdeClassName = 2; * @return The serdeClassName. */ public java.lang.String getSerdeClassName() { java.lang.Object ref = serdeClassName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serdeClassName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string serdeClassName = 2; * @return The bytes for serdeClassName. */ public com.google.protobuf.ByteString getSerdeClassNameBytes() { java.lang.Object ref = serdeClassName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serdeClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string serdeClassName = 2; * @param value The serdeClassName to set. * @return This builder for chaining. */ public Builder setSerdeClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serdeClassName_ = value; onChanged(); return this; } /** * string serdeClassName = 2; * @return This builder for chaining. */ public Builder clearSerdeClassName() { serdeClassName_ = getDefaultInstance().getSerdeClassName(); onChanged(); return this; } /** * string serdeClassName = 2; * @param value The bytes for serdeClassName to set. * @return This builder for chaining. */ public Builder setSerdeClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serdeClassName_ = value; onChanged(); return this; } private boolean isRegexPattern_ ; /** * bool isRegexPattern = 3; * @return The isRegexPattern. */ @java.lang.Override public boolean getIsRegexPattern() { return isRegexPattern_; } /** * bool isRegexPattern = 3; * @param value The isRegexPattern to set. * @return This builder for chaining. */ public Builder setIsRegexPattern(boolean value) { isRegexPattern_ = value; onChanged(); return this; } /** * bool isRegexPattern = 3; * @return This builder for chaining. */ public Builder clearIsRegexPattern() { isRegexPattern_ = false; onChanged(); return this; } private org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize receiverQueueSize_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize, org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.Builder, org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSizeOrBuilder> receiverQueueSizeBuilder_; /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; * @return Whether the receiverQueueSize field is set. */ public boolean hasReceiverQueueSize() { return receiverQueueSizeBuilder_ != null || receiverQueueSize_ != null; } /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; * @return The receiverQueueSize. */ public org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize getReceiverQueueSize() { if (receiverQueueSizeBuilder_ == null) { return receiverQueueSize_ == null ? org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.getDefaultInstance() : receiverQueueSize_; } else { return receiverQueueSizeBuilder_.getMessage(); } } /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; */ public Builder setReceiverQueueSize(org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize value) { if (receiverQueueSizeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } receiverQueueSize_ = value; onChanged(); } else { receiverQueueSizeBuilder_.setMessage(value); } return this; } /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; */ public Builder setReceiverQueueSize( org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.Builder builderForValue) { if (receiverQueueSizeBuilder_ == null) { receiverQueueSize_ = builderForValue.build(); onChanged(); } else { receiverQueueSizeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; */ public Builder mergeReceiverQueueSize(org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize value) { if (receiverQueueSizeBuilder_ == null) { if (receiverQueueSize_ != null) { receiverQueueSize_ = org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.newBuilder(receiverQueueSize_).mergeFrom(value).buildPartial(); } else { receiverQueueSize_ = value; } onChanged(); } else { receiverQueueSizeBuilder_.mergeFrom(value); } return this; } /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; */ public Builder clearReceiverQueueSize() { if (receiverQueueSizeBuilder_ == null) { receiverQueueSize_ = null; onChanged(); } else { receiverQueueSize_ = null; receiverQueueSizeBuilder_ = null; } return this; } /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; */ public org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.Builder getReceiverQueueSizeBuilder() { onChanged(); return getReceiverQueueSizeFieldBuilder().getBuilder(); } /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; */ public org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSizeOrBuilder getReceiverQueueSizeOrBuilder() { if (receiverQueueSizeBuilder_ != null) { return receiverQueueSizeBuilder_.getMessageOrBuilder(); } else { return receiverQueueSize_ == null ? org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.getDefaultInstance() : receiverQueueSize_; } } /** * .proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize, org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.Builder, org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSizeOrBuilder> getReceiverQueueSizeFieldBuilder() { if (receiverQueueSizeBuilder_ == null) { receiverQueueSizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize, org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSize.Builder, org.apache.pulsar.functions.proto.Function.ConsumerSpec.ReceiverQueueSizeOrBuilder>( getReceiverQueueSize(), getParentForChildren(), isClean()); receiverQueueSize_ = null; } return receiverQueueSizeBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> schemaProperties_; private com.google.protobuf.MapField internalGetSchemaProperties() { if (schemaProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SchemaPropertiesDefaultEntryHolder.defaultEntry); } return schemaProperties_; } private com.google.protobuf.MapField internalGetMutableSchemaProperties() { onChanged();; if (schemaProperties_ == null) { schemaProperties_ = com.google.protobuf.MapField.newMapField( SchemaPropertiesDefaultEntryHolder.defaultEntry); } if (!schemaProperties_.isMutable()) { schemaProperties_ = schemaProperties_.copy(); } return schemaProperties_; } public int getSchemaPropertiesCount() { return internalGetSchemaProperties().getMap().size(); } /** * map<string, string> schemaProperties = 5; */ @java.lang.Override public boolean containsSchemaProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetSchemaProperties().getMap().containsKey(key); } /** * Use {@link #getSchemaPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getSchemaProperties() { return getSchemaPropertiesMap(); } /** * map<string, string> schemaProperties = 5; */ @java.lang.Override public java.util.Map getSchemaPropertiesMap() { return internalGetSchemaProperties().getMap(); } /** * map<string, string> schemaProperties = 5; */ @java.lang.Override public java.lang.String getSchemaPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetSchemaProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> schemaProperties = 5; */ @java.lang.Override public java.lang.String getSchemaPropertiesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetSchemaProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearSchemaProperties() { internalGetMutableSchemaProperties().getMutableMap() .clear(); return this; } /** * map<string, string> schemaProperties = 5; */ public Builder removeSchemaProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableSchemaProperties().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSchemaProperties() { return internalGetMutableSchemaProperties().getMutableMap(); } /** * map<string, string> schemaProperties = 5; */ public Builder putSchemaProperties( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableSchemaProperties().getMutableMap() .put(key, value); return this; } /** * map<string, string> schemaProperties = 5; */ public Builder putAllSchemaProperties( java.util.Map values) { internalGetMutableSchemaProperties().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> consumerProperties_; private com.google.protobuf.MapField internalGetConsumerProperties() { if (consumerProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ConsumerPropertiesDefaultEntryHolder.defaultEntry); } return consumerProperties_; } private com.google.protobuf.MapField internalGetMutableConsumerProperties() { onChanged();; if (consumerProperties_ == null) { consumerProperties_ = com.google.protobuf.MapField.newMapField( ConsumerPropertiesDefaultEntryHolder.defaultEntry); } if (!consumerProperties_.isMutable()) { consumerProperties_ = consumerProperties_.copy(); } return consumerProperties_; } public int getConsumerPropertiesCount() { return internalGetConsumerProperties().getMap().size(); } /** * map<string, string> consumerProperties = 6; */ @java.lang.Override public boolean containsConsumerProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetConsumerProperties().getMap().containsKey(key); } /** * Use {@link #getConsumerPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConsumerProperties() { return getConsumerPropertiesMap(); } /** * map<string, string> consumerProperties = 6; */ @java.lang.Override public java.util.Map getConsumerPropertiesMap() { return internalGetConsumerProperties().getMap(); } /** * map<string, string> consumerProperties = 6; */ @java.lang.Override public java.lang.String getConsumerPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConsumerProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> consumerProperties = 6; */ @java.lang.Override public java.lang.String getConsumerPropertiesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConsumerProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearConsumerProperties() { internalGetMutableConsumerProperties().getMutableMap() .clear(); return this; } /** * map<string, string> consumerProperties = 6; */ public Builder removeConsumerProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableConsumerProperties().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableConsumerProperties() { return internalGetMutableConsumerProperties().getMutableMap(); } /** * map<string, string> consumerProperties = 6; */ public Builder putConsumerProperties( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableConsumerProperties().getMutableMap() .put(key, value); return this; } /** * map<string, string> consumerProperties = 6; */ public Builder putAllConsumerProperties( java.util.Map values) { internalGetMutableConsumerProperties().getMutableMap() .putAll(values); return this; } private org.apache.pulsar.functions.proto.Function.CryptoSpec cryptoSpec_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.CryptoSpec, org.apache.pulsar.functions.proto.Function.CryptoSpec.Builder, org.apache.pulsar.functions.proto.Function.CryptoSpecOrBuilder> cryptoSpecBuilder_; /** * .proto.CryptoSpec cryptoSpec = 7; * @return Whether the cryptoSpec field is set. */ public boolean hasCryptoSpec() { return cryptoSpecBuilder_ != null || cryptoSpec_ != null; } /** * .proto.CryptoSpec cryptoSpec = 7; * @return The cryptoSpec. */ public org.apache.pulsar.functions.proto.Function.CryptoSpec getCryptoSpec() { if (cryptoSpecBuilder_ == null) { return cryptoSpec_ == null ? org.apache.pulsar.functions.proto.Function.CryptoSpec.getDefaultInstance() : cryptoSpec_; } else { return cryptoSpecBuilder_.getMessage(); } } /** * .proto.CryptoSpec cryptoSpec = 7; */ public Builder setCryptoSpec(org.apache.pulsar.functions.proto.Function.CryptoSpec value) { if (cryptoSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cryptoSpec_ = value; onChanged(); } else { cryptoSpecBuilder_.setMessage(value); } return this; } /** * .proto.CryptoSpec cryptoSpec = 7; */ public Builder setCryptoSpec( org.apache.pulsar.functions.proto.Function.CryptoSpec.Builder builderForValue) { if (cryptoSpecBuilder_ == null) { cryptoSpec_ = builderForValue.build(); onChanged(); } else { cryptoSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.CryptoSpec cryptoSpec = 7; */ public Builder mergeCryptoSpec(org.apache.pulsar.functions.proto.Function.CryptoSpec value) { if (cryptoSpecBuilder_ == null) { if (cryptoSpec_ != null) { cryptoSpec_ = org.apache.pulsar.functions.proto.Function.CryptoSpec.newBuilder(cryptoSpec_).mergeFrom(value).buildPartial(); } else { cryptoSpec_ = value; } onChanged(); } else { cryptoSpecBuilder_.mergeFrom(value); } return this; } /** * .proto.CryptoSpec cryptoSpec = 7; */ public Builder clearCryptoSpec() { if (cryptoSpecBuilder_ == null) { cryptoSpec_ = null; onChanged(); } else { cryptoSpec_ = null; cryptoSpecBuilder_ = null; } return this; } /** * .proto.CryptoSpec cryptoSpec = 7; */ public org.apache.pulsar.functions.proto.Function.CryptoSpec.Builder getCryptoSpecBuilder() { onChanged(); return getCryptoSpecFieldBuilder().getBuilder(); } /** * .proto.CryptoSpec cryptoSpec = 7; */ public org.apache.pulsar.functions.proto.Function.CryptoSpecOrBuilder getCryptoSpecOrBuilder() { if (cryptoSpecBuilder_ != null) { return cryptoSpecBuilder_.getMessageOrBuilder(); } else { return cryptoSpec_ == null ? org.apache.pulsar.functions.proto.Function.CryptoSpec.getDefaultInstance() : cryptoSpec_; } } /** * .proto.CryptoSpec cryptoSpec = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.CryptoSpec, org.apache.pulsar.functions.proto.Function.CryptoSpec.Builder, org.apache.pulsar.functions.proto.Function.CryptoSpecOrBuilder> getCryptoSpecFieldBuilder() { if (cryptoSpecBuilder_ == null) { cryptoSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.CryptoSpec, org.apache.pulsar.functions.proto.Function.CryptoSpec.Builder, org.apache.pulsar.functions.proto.Function.CryptoSpecOrBuilder>( getCryptoSpec(), getParentForChildren(), isClean()); cryptoSpec_ = null; } return cryptoSpecBuilder_; } private boolean poolMessages_ ; /** * bool poolMessages = 8; * @return The poolMessages. */ @java.lang.Override public boolean getPoolMessages() { return poolMessages_; } /** * bool poolMessages = 8; * @param value The poolMessages to set. * @return This builder for chaining. */ public Builder setPoolMessages(boolean value) { poolMessages_ = value; onChanged(); return this; } /** * bool poolMessages = 8; * @return This builder for chaining. */ public Builder clearPoolMessages() { poolMessages_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.ConsumerSpec) } // @@protoc_insertion_point(class_scope:proto.ConsumerSpec) private static final org.apache.pulsar.functions.proto.Function.ConsumerSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.pulsar.functions.proto.Function.ConsumerSpec(); } public static org.apache.pulsar.functions.proto.Function.ConsumerSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConsumerSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.ConsumerSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProducerSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.ProducerSpec) com.google.protobuf.MessageOrBuilder { /** * int32 maxPendingMessages = 1; * @return The maxPendingMessages. */ int getMaxPendingMessages(); /** * int32 maxPendingMessagesAcrossPartitions = 2; * @return The maxPendingMessagesAcrossPartitions. */ int getMaxPendingMessagesAcrossPartitions(); /** * bool useThreadLocalProducers = 3; * @return The useThreadLocalProducers. */ boolean getUseThreadLocalProducers(); /** * .proto.CryptoSpec cryptoSpec = 4; * @return Whether the cryptoSpec field is set. */ boolean hasCryptoSpec(); /** * .proto.CryptoSpec cryptoSpec = 4; * @return The cryptoSpec. */ org.apache.pulsar.functions.proto.Function.CryptoSpec getCryptoSpec(); /** * .proto.CryptoSpec cryptoSpec = 4; */ org.apache.pulsar.functions.proto.Function.CryptoSpecOrBuilder getCryptoSpecOrBuilder(); /** * string batchBuilder = 5; * @return The batchBuilder. */ java.lang.String getBatchBuilder(); /** * string batchBuilder = 5; * @return The bytes for batchBuilder. */ com.google.protobuf.ByteString getBatchBuilderBytes(); /** * .proto.CompressionType compressionType = 6; * @return The enum numeric value on the wire for compressionType. */ int getCompressionTypeValue(); /** * .proto.CompressionType compressionType = 6; * @return The compressionType. */ org.apache.pulsar.functions.proto.Function.CompressionType getCompressionType(); } /** * Protobuf type {@code proto.ProducerSpec} */ public static final class ProducerSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ProducerSpec) ProducerSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ProducerSpec.newBuilder() to construct. private ProducerSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProducerSpec() { batchBuilder_ = ""; compressionType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProducerSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ProducerSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ProducerSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.ProducerSpec.class, org.apache.pulsar.functions.proto.Function.ProducerSpec.Builder.class); } public static final int MAXPENDINGMESSAGES_FIELD_NUMBER = 1; private int maxPendingMessages_; /** * int32 maxPendingMessages = 1; * @return The maxPendingMessages. */ @java.lang.Override public int getMaxPendingMessages() { return maxPendingMessages_; } public static final int MAXPENDINGMESSAGESACROSSPARTITIONS_FIELD_NUMBER = 2; private int maxPendingMessagesAcrossPartitions_; /** * int32 maxPendingMessagesAcrossPartitions = 2; * @return The maxPendingMessagesAcrossPartitions. */ @java.lang.Override public int getMaxPendingMessagesAcrossPartitions() { return maxPendingMessagesAcrossPartitions_; } public static final int USETHREADLOCALPRODUCERS_FIELD_NUMBER = 3; private boolean useThreadLocalProducers_; /** * bool useThreadLocalProducers = 3; * @return The useThreadLocalProducers. */ @java.lang.Override public boolean getUseThreadLocalProducers() { return useThreadLocalProducers_; } public static final int CRYPTOSPEC_FIELD_NUMBER = 4; private org.apache.pulsar.functions.proto.Function.CryptoSpec cryptoSpec_; /** * .proto.CryptoSpec cryptoSpec = 4; * @return Whether the cryptoSpec field is set. */ @java.lang.Override public boolean hasCryptoSpec() { return cryptoSpec_ != null; } /** * .proto.CryptoSpec cryptoSpec = 4; * @return The cryptoSpec. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.CryptoSpec getCryptoSpec() { return cryptoSpec_ == null ? org.apache.pulsar.functions.proto.Function.CryptoSpec.getDefaultInstance() : cryptoSpec_; } /** * .proto.CryptoSpec cryptoSpec = 4; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.CryptoSpecOrBuilder getCryptoSpecOrBuilder() { return getCryptoSpec(); } public static final int BATCHBUILDER_FIELD_NUMBER = 5; private volatile java.lang.Object batchBuilder_; /** * string batchBuilder = 5; * @return The batchBuilder. */ @java.lang.Override public java.lang.String getBatchBuilder() { java.lang.Object ref = batchBuilder_; 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(); batchBuilder_ = s; return s; } } /** * string batchBuilder = 5; * @return The bytes for batchBuilder. */ @java.lang.Override public com.google.protobuf.ByteString getBatchBuilderBytes() { java.lang.Object ref = batchBuilder_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); batchBuilder_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPRESSIONTYPE_FIELD_NUMBER = 6; private int compressionType_; /** * .proto.CompressionType compressionType = 6; * @return The enum numeric value on the wire for compressionType. */ @java.lang.Override public int getCompressionTypeValue() { return compressionType_; } /** * .proto.CompressionType compressionType = 6; * @return The compressionType. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.CompressionType getCompressionType() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.CompressionType result = org.apache.pulsar.functions.proto.Function.CompressionType.valueOf(compressionType_); return result == null ? org.apache.pulsar.functions.proto.Function.CompressionType.UNRECOGNIZED : result; } 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 (maxPendingMessages_ != 0) { output.writeInt32(1, maxPendingMessages_); } if (maxPendingMessagesAcrossPartitions_ != 0) { output.writeInt32(2, maxPendingMessagesAcrossPartitions_); } if (useThreadLocalProducers_ != false) { output.writeBool(3, useThreadLocalProducers_); } if (cryptoSpec_ != null) { output.writeMessage(4, getCryptoSpec()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchBuilder_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, batchBuilder_); } if (compressionType_ != org.apache.pulsar.functions.proto.Function.CompressionType.LZ4.getNumber()) { output.writeEnum(6, compressionType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (maxPendingMessages_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, maxPendingMessages_); } if (maxPendingMessagesAcrossPartitions_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, maxPendingMessagesAcrossPartitions_); } if (useThreadLocalProducers_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, useThreadLocalProducers_); } if (cryptoSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCryptoSpec()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchBuilder_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, batchBuilder_); } if (compressionType_ != org.apache.pulsar.functions.proto.Function.CompressionType.LZ4.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, compressionType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.pulsar.functions.proto.Function.ProducerSpec)) { return super.equals(obj); } org.apache.pulsar.functions.proto.Function.ProducerSpec other = (org.apache.pulsar.functions.proto.Function.ProducerSpec) obj; if (getMaxPendingMessages() != other.getMaxPendingMessages()) return false; if (getMaxPendingMessagesAcrossPartitions() != other.getMaxPendingMessagesAcrossPartitions()) return false; if (getUseThreadLocalProducers() != other.getUseThreadLocalProducers()) return false; if (hasCryptoSpec() != other.hasCryptoSpec()) return false; if (hasCryptoSpec()) { if (!getCryptoSpec() .equals(other.getCryptoSpec())) return false; } if (!getBatchBuilder() .equals(other.getBatchBuilder())) return false; if (compressionType_ != other.compressionType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MAXPENDINGMESSAGES_FIELD_NUMBER; hash = (53 * hash) + getMaxPendingMessages(); hash = (37 * hash) + MAXPENDINGMESSAGESACROSSPARTITIONS_FIELD_NUMBER; hash = (53 * hash) + getMaxPendingMessagesAcrossPartitions(); hash = (37 * hash) + USETHREADLOCALPRODUCERS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUseThreadLocalProducers()); if (hasCryptoSpec()) { hash = (37 * hash) + CRYPTOSPEC_FIELD_NUMBER; hash = (53 * hash) + getCryptoSpec().hashCode(); } hash = (37 * hash) + BATCHBUILDER_FIELD_NUMBER; hash = (53 * hash) + getBatchBuilder().hashCode(); hash = (37 * hash) + COMPRESSIONTYPE_FIELD_NUMBER; hash = (53 * hash) + compressionType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.pulsar.functions.proto.Function.ProducerSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.ProducerSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.ProducerSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.ProducerSpec 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.pulsar.functions.proto.Function.ProducerSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.ProducerSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.ProducerSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.ProducerSpec 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.pulsar.functions.proto.Function.ProducerSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.ProducerSpec 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.pulsar.functions.proto.Function.ProducerSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.ProducerSpec 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.pulsar.functions.proto.Function.ProducerSpec 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 proto.ProducerSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ProducerSpec) org.apache.pulsar.functions.proto.Function.ProducerSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ProducerSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ProducerSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.ProducerSpec.class, org.apache.pulsar.functions.proto.Function.ProducerSpec.Builder.class); } // Construct using org.apache.pulsar.functions.proto.Function.ProducerSpec.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); maxPendingMessages_ = 0; maxPendingMessagesAcrossPartitions_ = 0; useThreadLocalProducers_ = false; if (cryptoSpecBuilder_ == null) { cryptoSpec_ = null; } else { cryptoSpec_ = null; cryptoSpecBuilder_ = null; } batchBuilder_ = ""; compressionType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_ProducerSpec_descriptor; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.ProducerSpec getDefaultInstanceForType() { return org.apache.pulsar.functions.proto.Function.ProducerSpec.getDefaultInstance(); } @java.lang.Override public org.apache.pulsar.functions.proto.Function.ProducerSpec build() { org.apache.pulsar.functions.proto.Function.ProducerSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.ProducerSpec buildPartial() { org.apache.pulsar.functions.proto.Function.ProducerSpec result = new org.apache.pulsar.functions.proto.Function.ProducerSpec(this); result.maxPendingMessages_ = maxPendingMessages_; result.maxPendingMessagesAcrossPartitions_ = maxPendingMessagesAcrossPartitions_; result.useThreadLocalProducers_ = useThreadLocalProducers_; if (cryptoSpecBuilder_ == null) { result.cryptoSpec_ = cryptoSpec_; } else { result.cryptoSpec_ = cryptoSpecBuilder_.build(); } result.batchBuilder_ = batchBuilder_; result.compressionType_ = compressionType_; 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.pulsar.functions.proto.Function.ProducerSpec) { return mergeFrom((org.apache.pulsar.functions.proto.Function.ProducerSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.pulsar.functions.proto.Function.ProducerSpec other) { if (other == org.apache.pulsar.functions.proto.Function.ProducerSpec.getDefaultInstance()) return this; if (other.getMaxPendingMessages() != 0) { setMaxPendingMessages(other.getMaxPendingMessages()); } if (other.getMaxPendingMessagesAcrossPartitions() != 0) { setMaxPendingMessagesAcrossPartitions(other.getMaxPendingMessagesAcrossPartitions()); } if (other.getUseThreadLocalProducers() != false) { setUseThreadLocalProducers(other.getUseThreadLocalProducers()); } if (other.hasCryptoSpec()) { mergeCryptoSpec(other.getCryptoSpec()); } if (!other.getBatchBuilder().isEmpty()) { batchBuilder_ = other.batchBuilder_; onChanged(); } if (other.compressionType_ != 0) { setCompressionTypeValue(other.getCompressionTypeValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { maxPendingMessages_ = input.readInt32(); break; } // case 8 case 16: { maxPendingMessagesAcrossPartitions_ = input.readInt32(); break; } // case 16 case 24: { useThreadLocalProducers_ = input.readBool(); break; } // case 24 case 34: { input.readMessage( getCryptoSpecFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 case 42: { batchBuilder_ = input.readStringRequireUtf8(); break; } // case 42 case 48: { compressionType_ = input.readEnum(); break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int maxPendingMessages_ ; /** * int32 maxPendingMessages = 1; * @return The maxPendingMessages. */ @java.lang.Override public int getMaxPendingMessages() { return maxPendingMessages_; } /** * int32 maxPendingMessages = 1; * @param value The maxPendingMessages to set. * @return This builder for chaining. */ public Builder setMaxPendingMessages(int value) { maxPendingMessages_ = value; onChanged(); return this; } /** * int32 maxPendingMessages = 1; * @return This builder for chaining. */ public Builder clearMaxPendingMessages() { maxPendingMessages_ = 0; onChanged(); return this; } private int maxPendingMessagesAcrossPartitions_ ; /** * int32 maxPendingMessagesAcrossPartitions = 2; * @return The maxPendingMessagesAcrossPartitions. */ @java.lang.Override public int getMaxPendingMessagesAcrossPartitions() { return maxPendingMessagesAcrossPartitions_; } /** * int32 maxPendingMessagesAcrossPartitions = 2; * @param value The maxPendingMessagesAcrossPartitions to set. * @return This builder for chaining. */ public Builder setMaxPendingMessagesAcrossPartitions(int value) { maxPendingMessagesAcrossPartitions_ = value; onChanged(); return this; } /** * int32 maxPendingMessagesAcrossPartitions = 2; * @return This builder for chaining. */ public Builder clearMaxPendingMessagesAcrossPartitions() { maxPendingMessagesAcrossPartitions_ = 0; onChanged(); return this; } private boolean useThreadLocalProducers_ ; /** * bool useThreadLocalProducers = 3; * @return The useThreadLocalProducers. */ @java.lang.Override public boolean getUseThreadLocalProducers() { return useThreadLocalProducers_; } /** * bool useThreadLocalProducers = 3; * @param value The useThreadLocalProducers to set. * @return This builder for chaining. */ public Builder setUseThreadLocalProducers(boolean value) { useThreadLocalProducers_ = value; onChanged(); return this; } /** * bool useThreadLocalProducers = 3; * @return This builder for chaining. */ public Builder clearUseThreadLocalProducers() { useThreadLocalProducers_ = false; onChanged(); return this; } private org.apache.pulsar.functions.proto.Function.CryptoSpec cryptoSpec_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.CryptoSpec, org.apache.pulsar.functions.proto.Function.CryptoSpec.Builder, org.apache.pulsar.functions.proto.Function.CryptoSpecOrBuilder> cryptoSpecBuilder_; /** * .proto.CryptoSpec cryptoSpec = 4; * @return Whether the cryptoSpec field is set. */ public boolean hasCryptoSpec() { return cryptoSpecBuilder_ != null || cryptoSpec_ != null; } /** * .proto.CryptoSpec cryptoSpec = 4; * @return The cryptoSpec. */ public org.apache.pulsar.functions.proto.Function.CryptoSpec getCryptoSpec() { if (cryptoSpecBuilder_ == null) { return cryptoSpec_ == null ? org.apache.pulsar.functions.proto.Function.CryptoSpec.getDefaultInstance() : cryptoSpec_; } else { return cryptoSpecBuilder_.getMessage(); } } /** * .proto.CryptoSpec cryptoSpec = 4; */ public Builder setCryptoSpec(org.apache.pulsar.functions.proto.Function.CryptoSpec value) { if (cryptoSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cryptoSpec_ = value; onChanged(); } else { cryptoSpecBuilder_.setMessage(value); } return this; } /** * .proto.CryptoSpec cryptoSpec = 4; */ public Builder setCryptoSpec( org.apache.pulsar.functions.proto.Function.CryptoSpec.Builder builderForValue) { if (cryptoSpecBuilder_ == null) { cryptoSpec_ = builderForValue.build(); onChanged(); } else { cryptoSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.CryptoSpec cryptoSpec = 4; */ public Builder mergeCryptoSpec(org.apache.pulsar.functions.proto.Function.CryptoSpec value) { if (cryptoSpecBuilder_ == null) { if (cryptoSpec_ != null) { cryptoSpec_ = org.apache.pulsar.functions.proto.Function.CryptoSpec.newBuilder(cryptoSpec_).mergeFrom(value).buildPartial(); } else { cryptoSpec_ = value; } onChanged(); } else { cryptoSpecBuilder_.mergeFrom(value); } return this; } /** * .proto.CryptoSpec cryptoSpec = 4; */ public Builder clearCryptoSpec() { if (cryptoSpecBuilder_ == null) { cryptoSpec_ = null; onChanged(); } else { cryptoSpec_ = null; cryptoSpecBuilder_ = null; } return this; } /** * .proto.CryptoSpec cryptoSpec = 4; */ public org.apache.pulsar.functions.proto.Function.CryptoSpec.Builder getCryptoSpecBuilder() { onChanged(); return getCryptoSpecFieldBuilder().getBuilder(); } /** * .proto.CryptoSpec cryptoSpec = 4; */ public org.apache.pulsar.functions.proto.Function.CryptoSpecOrBuilder getCryptoSpecOrBuilder() { if (cryptoSpecBuilder_ != null) { return cryptoSpecBuilder_.getMessageOrBuilder(); } else { return cryptoSpec_ == null ? org.apache.pulsar.functions.proto.Function.CryptoSpec.getDefaultInstance() : cryptoSpec_; } } /** * .proto.CryptoSpec cryptoSpec = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.CryptoSpec, org.apache.pulsar.functions.proto.Function.CryptoSpec.Builder, org.apache.pulsar.functions.proto.Function.CryptoSpecOrBuilder> getCryptoSpecFieldBuilder() { if (cryptoSpecBuilder_ == null) { cryptoSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.CryptoSpec, org.apache.pulsar.functions.proto.Function.CryptoSpec.Builder, org.apache.pulsar.functions.proto.Function.CryptoSpecOrBuilder>( getCryptoSpec(), getParentForChildren(), isClean()); cryptoSpec_ = null; } return cryptoSpecBuilder_; } private java.lang.Object batchBuilder_ = ""; /** * string batchBuilder = 5; * @return The batchBuilder. */ public java.lang.String getBatchBuilder() { java.lang.Object ref = batchBuilder_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchBuilder_ = s; return s; } else { return (java.lang.String) ref; } } /** * string batchBuilder = 5; * @return The bytes for batchBuilder. */ public com.google.protobuf.ByteString getBatchBuilderBytes() { java.lang.Object ref = batchBuilder_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); batchBuilder_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string batchBuilder = 5; * @param value The batchBuilder to set. * @return This builder for chaining. */ public Builder setBatchBuilder( java.lang.String value) { if (value == null) { throw new NullPointerException(); } batchBuilder_ = value; onChanged(); return this; } /** * string batchBuilder = 5; * @return This builder for chaining. */ public Builder clearBatchBuilder() { batchBuilder_ = getDefaultInstance().getBatchBuilder(); onChanged(); return this; } /** * string batchBuilder = 5; * @param value The bytes for batchBuilder to set. * @return This builder for chaining. */ public Builder setBatchBuilderBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); batchBuilder_ = value; onChanged(); return this; } private int compressionType_ = 0; /** * .proto.CompressionType compressionType = 6; * @return The enum numeric value on the wire for compressionType. */ @java.lang.Override public int getCompressionTypeValue() { return compressionType_; } /** * .proto.CompressionType compressionType = 6; * @param value The enum numeric value on the wire for compressionType to set. * @return This builder for chaining. */ public Builder setCompressionTypeValue(int value) { compressionType_ = value; onChanged(); return this; } /** * .proto.CompressionType compressionType = 6; * @return The compressionType. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.CompressionType getCompressionType() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.CompressionType result = org.apache.pulsar.functions.proto.Function.CompressionType.valueOf(compressionType_); return result == null ? org.apache.pulsar.functions.proto.Function.CompressionType.UNRECOGNIZED : result; } /** * .proto.CompressionType compressionType = 6; * @param value The compressionType to set. * @return This builder for chaining. */ public Builder setCompressionType(org.apache.pulsar.functions.proto.Function.CompressionType value) { if (value == null) { throw new NullPointerException(); } compressionType_ = value.getNumber(); onChanged(); return this; } /** * .proto.CompressionType compressionType = 6; * @return This builder for chaining. */ public Builder clearCompressionType() { compressionType_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.ProducerSpec) } // @@protoc_insertion_point(class_scope:proto.ProducerSpec) private static final org.apache.pulsar.functions.proto.Function.ProducerSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.pulsar.functions.proto.Function.ProducerSpec(); } public static org.apache.pulsar.functions.proto.Function.ProducerSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProducerSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.ProducerSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CryptoSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.CryptoSpec) com.google.protobuf.MessageOrBuilder { /** * string cryptoKeyReaderClassName = 1; * @return The cryptoKeyReaderClassName. */ java.lang.String getCryptoKeyReaderClassName(); /** * string cryptoKeyReaderClassName = 1; * @return The bytes for cryptoKeyReaderClassName. */ com.google.protobuf.ByteString getCryptoKeyReaderClassNameBytes(); /** * string cryptoKeyReaderConfig = 2; * @return The cryptoKeyReaderConfig. */ java.lang.String getCryptoKeyReaderConfig(); /** * string cryptoKeyReaderConfig = 2; * @return The bytes for cryptoKeyReaderConfig. */ com.google.protobuf.ByteString getCryptoKeyReaderConfigBytes(); /** *
     * key names used by producer to encrypt data
     * 
* * repeated string producerEncryptionKeyName = 3; * @return A list containing the producerEncryptionKeyName. */ java.util.List getProducerEncryptionKeyNameList(); /** *
     * key names used by producer to encrypt data
     * 
* * repeated string producerEncryptionKeyName = 3; * @return The count of producerEncryptionKeyName. */ int getProducerEncryptionKeyNameCount(); /** *
     * key names used by producer to encrypt data
     * 
* * repeated string producerEncryptionKeyName = 3; * @param index The index of the element to return. * @return The producerEncryptionKeyName at the given index. */ java.lang.String getProducerEncryptionKeyName(int index); /** *
     * key names used by producer to encrypt data
     * 
* * repeated string producerEncryptionKeyName = 3; * @param index The index of the value to return. * @return The bytes of the producerEncryptionKeyName at the given index. */ com.google.protobuf.ByteString getProducerEncryptionKeyNameBytes(int index); /** *
     * define the action if producer fail to encrypt data
     * one of FAIL, SEND
     * 
* * .proto.CryptoSpec.FailureAction producerCryptoFailureAction = 4; * @return The enum numeric value on the wire for producerCryptoFailureAction. */ int getProducerCryptoFailureActionValue(); /** *
     * define the action if producer fail to encrypt data
     * one of FAIL, SEND
     * 
* * .proto.CryptoSpec.FailureAction producerCryptoFailureAction = 4; * @return The producerCryptoFailureAction. */ org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction getProducerCryptoFailureAction(); /** *
     * define the action if consumer fail to decrypt data
     * one of FAIL, DISCARD, CONSUME
     * 
* * .proto.CryptoSpec.FailureAction consumerCryptoFailureAction = 5; * @return The enum numeric value on the wire for consumerCryptoFailureAction. */ int getConsumerCryptoFailureActionValue(); /** *
     * define the action if consumer fail to decrypt data
     * one of FAIL, DISCARD, CONSUME
     * 
* * .proto.CryptoSpec.FailureAction consumerCryptoFailureAction = 5; * @return The consumerCryptoFailureAction. */ org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction getConsumerCryptoFailureAction(); } /** * Protobuf type {@code proto.CryptoSpec} */ public static final class CryptoSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.CryptoSpec) CryptoSpecOrBuilder { private static final long serialVersionUID = 0L; // Use CryptoSpec.newBuilder() to construct. private CryptoSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CryptoSpec() { cryptoKeyReaderClassName_ = ""; cryptoKeyReaderConfig_ = ""; producerEncryptionKeyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; producerCryptoFailureAction_ = 0; consumerCryptoFailureAction_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CryptoSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_CryptoSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_CryptoSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.CryptoSpec.class, org.apache.pulsar.functions.proto.Function.CryptoSpec.Builder.class); } /** * Protobuf enum {@code proto.CryptoSpec.FailureAction} */ public enum FailureAction implements com.google.protobuf.ProtocolMessageEnum { /** * FAIL = 0; */ FAIL(0), /** * DISCARD = 1; */ DISCARD(1), /** * CONSUME = 2; */ CONSUME(2), /** * SEND = 10; */ SEND(10), UNRECOGNIZED(-1), ; /** * FAIL = 0; */ public static final int FAIL_VALUE = 0; /** * DISCARD = 1; */ public static final int DISCARD_VALUE = 1; /** * CONSUME = 2; */ public static final int CONSUME_VALUE = 2; /** * SEND = 10; */ public static final int SEND_VALUE = 10; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FailureAction 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 FailureAction forNumber(int value) { switch (value) { case 0: return FAIL; case 1: return DISCARD; case 2: return CONSUME; case 10: return SEND; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< FailureAction> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public FailureAction findValueByNumber(int number) { return FailureAction.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.CryptoSpec.getDescriptor().getEnumTypes().get(0); } private static final FailureAction[] VALUES = values(); public static FailureAction valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private FailureAction(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto.CryptoSpec.FailureAction) } public static final int CRYPTOKEYREADERCLASSNAME_FIELD_NUMBER = 1; private volatile java.lang.Object cryptoKeyReaderClassName_; /** * string cryptoKeyReaderClassName = 1; * @return The cryptoKeyReaderClassName. */ @java.lang.Override public java.lang.String getCryptoKeyReaderClassName() { java.lang.Object ref = cryptoKeyReaderClassName_; 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(); cryptoKeyReaderClassName_ = s; return s; } } /** * string cryptoKeyReaderClassName = 1; * @return The bytes for cryptoKeyReaderClassName. */ @java.lang.Override public com.google.protobuf.ByteString getCryptoKeyReaderClassNameBytes() { java.lang.Object ref = cryptoKeyReaderClassName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cryptoKeyReaderClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CRYPTOKEYREADERCONFIG_FIELD_NUMBER = 2; private volatile java.lang.Object cryptoKeyReaderConfig_; /** * string cryptoKeyReaderConfig = 2; * @return The cryptoKeyReaderConfig. */ @java.lang.Override public java.lang.String getCryptoKeyReaderConfig() { java.lang.Object ref = cryptoKeyReaderConfig_; 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(); cryptoKeyReaderConfig_ = s; return s; } } /** * string cryptoKeyReaderConfig = 2; * @return The bytes for cryptoKeyReaderConfig. */ @java.lang.Override public com.google.protobuf.ByteString getCryptoKeyReaderConfigBytes() { java.lang.Object ref = cryptoKeyReaderConfig_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cryptoKeyReaderConfig_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRODUCERENCRYPTIONKEYNAME_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList producerEncryptionKeyName_; /** *
     * key names used by producer to encrypt data
     * 
* * repeated string producerEncryptionKeyName = 3; * @return A list containing the producerEncryptionKeyName. */ public com.google.protobuf.ProtocolStringList getProducerEncryptionKeyNameList() { return producerEncryptionKeyName_; } /** *
     * key names used by producer to encrypt data
     * 
* * repeated string producerEncryptionKeyName = 3; * @return The count of producerEncryptionKeyName. */ public int getProducerEncryptionKeyNameCount() { return producerEncryptionKeyName_.size(); } /** *
     * key names used by producer to encrypt data
     * 
* * repeated string producerEncryptionKeyName = 3; * @param index The index of the element to return. * @return The producerEncryptionKeyName at the given index. */ public java.lang.String getProducerEncryptionKeyName(int index) { return producerEncryptionKeyName_.get(index); } /** *
     * key names used by producer to encrypt data
     * 
* * repeated string producerEncryptionKeyName = 3; * @param index The index of the value to return. * @return The bytes of the producerEncryptionKeyName at the given index. */ public com.google.protobuf.ByteString getProducerEncryptionKeyNameBytes(int index) { return producerEncryptionKeyName_.getByteString(index); } public static final int PRODUCERCRYPTOFAILUREACTION_FIELD_NUMBER = 4; private int producerCryptoFailureAction_; /** *
     * define the action if producer fail to encrypt data
     * one of FAIL, SEND
     * 
* * .proto.CryptoSpec.FailureAction producerCryptoFailureAction = 4; * @return The enum numeric value on the wire for producerCryptoFailureAction. */ @java.lang.Override public int getProducerCryptoFailureActionValue() { return producerCryptoFailureAction_; } /** *
     * define the action if producer fail to encrypt data
     * one of FAIL, SEND
     * 
* * .proto.CryptoSpec.FailureAction producerCryptoFailureAction = 4; * @return The producerCryptoFailureAction. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction getProducerCryptoFailureAction() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction result = org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction.valueOf(producerCryptoFailureAction_); return result == null ? org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction.UNRECOGNIZED : result; } public static final int CONSUMERCRYPTOFAILUREACTION_FIELD_NUMBER = 5; private int consumerCryptoFailureAction_; /** *
     * define the action if consumer fail to decrypt data
     * one of FAIL, DISCARD, CONSUME
     * 
* * .proto.CryptoSpec.FailureAction consumerCryptoFailureAction = 5; * @return The enum numeric value on the wire for consumerCryptoFailureAction. */ @java.lang.Override public int getConsumerCryptoFailureActionValue() { return consumerCryptoFailureAction_; } /** *
     * define the action if consumer fail to decrypt data
     * one of FAIL, DISCARD, CONSUME
     * 
* * .proto.CryptoSpec.FailureAction consumerCryptoFailureAction = 5; * @return The consumerCryptoFailureAction. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction getConsumerCryptoFailureAction() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction result = org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction.valueOf(consumerCryptoFailureAction_); return result == null ? org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction.UNRECOGNIZED : result; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyReaderClassName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cryptoKeyReaderClassName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyReaderConfig_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cryptoKeyReaderConfig_); } for (int i = 0; i < producerEncryptionKeyName_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, producerEncryptionKeyName_.getRaw(i)); } if (producerCryptoFailureAction_ != org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction.FAIL.getNumber()) { output.writeEnum(4, producerCryptoFailureAction_); } if (consumerCryptoFailureAction_ != org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction.FAIL.getNumber()) { output.writeEnum(5, consumerCryptoFailureAction_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyReaderClassName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cryptoKeyReaderClassName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyReaderConfig_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cryptoKeyReaderConfig_); } { int dataSize = 0; for (int i = 0; i < producerEncryptionKeyName_.size(); i++) { dataSize += computeStringSizeNoTag(producerEncryptionKeyName_.getRaw(i)); } size += dataSize; size += 1 * getProducerEncryptionKeyNameList().size(); } if (producerCryptoFailureAction_ != org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction.FAIL.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, producerCryptoFailureAction_); } if (consumerCryptoFailureAction_ != org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction.FAIL.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, consumerCryptoFailureAction_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.pulsar.functions.proto.Function.CryptoSpec)) { return super.equals(obj); } org.apache.pulsar.functions.proto.Function.CryptoSpec other = (org.apache.pulsar.functions.proto.Function.CryptoSpec) obj; if (!getCryptoKeyReaderClassName() .equals(other.getCryptoKeyReaderClassName())) return false; if (!getCryptoKeyReaderConfig() .equals(other.getCryptoKeyReaderConfig())) return false; if (!getProducerEncryptionKeyNameList() .equals(other.getProducerEncryptionKeyNameList())) return false; if (producerCryptoFailureAction_ != other.producerCryptoFailureAction_) return false; if (consumerCryptoFailureAction_ != other.consumerCryptoFailureAction_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CRYPTOKEYREADERCLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getCryptoKeyReaderClassName().hashCode(); hash = (37 * hash) + CRYPTOKEYREADERCONFIG_FIELD_NUMBER; hash = (53 * hash) + getCryptoKeyReaderConfig().hashCode(); if (getProducerEncryptionKeyNameCount() > 0) { hash = (37 * hash) + PRODUCERENCRYPTIONKEYNAME_FIELD_NUMBER; hash = (53 * hash) + getProducerEncryptionKeyNameList().hashCode(); } hash = (37 * hash) + PRODUCERCRYPTOFAILUREACTION_FIELD_NUMBER; hash = (53 * hash) + producerCryptoFailureAction_; hash = (37 * hash) + CONSUMERCRYPTOFAILUREACTION_FIELD_NUMBER; hash = (53 * hash) + consumerCryptoFailureAction_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.pulsar.functions.proto.Function.CryptoSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.CryptoSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.CryptoSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.CryptoSpec 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.pulsar.functions.proto.Function.CryptoSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.CryptoSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.CryptoSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.CryptoSpec 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.pulsar.functions.proto.Function.CryptoSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.CryptoSpec 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.pulsar.functions.proto.Function.CryptoSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.CryptoSpec 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.pulsar.functions.proto.Function.CryptoSpec 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 proto.CryptoSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.CryptoSpec) org.apache.pulsar.functions.proto.Function.CryptoSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_CryptoSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_CryptoSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.CryptoSpec.class, org.apache.pulsar.functions.proto.Function.CryptoSpec.Builder.class); } // Construct using org.apache.pulsar.functions.proto.Function.CryptoSpec.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); cryptoKeyReaderClassName_ = ""; cryptoKeyReaderConfig_ = ""; producerEncryptionKeyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); producerCryptoFailureAction_ = 0; consumerCryptoFailureAction_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_CryptoSpec_descriptor; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.CryptoSpec getDefaultInstanceForType() { return org.apache.pulsar.functions.proto.Function.CryptoSpec.getDefaultInstance(); } @java.lang.Override public org.apache.pulsar.functions.proto.Function.CryptoSpec build() { org.apache.pulsar.functions.proto.Function.CryptoSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.CryptoSpec buildPartial() { org.apache.pulsar.functions.proto.Function.CryptoSpec result = new org.apache.pulsar.functions.proto.Function.CryptoSpec(this); int from_bitField0_ = bitField0_; result.cryptoKeyReaderClassName_ = cryptoKeyReaderClassName_; result.cryptoKeyReaderConfig_ = cryptoKeyReaderConfig_; if (((bitField0_ & 0x00000001) != 0)) { producerEncryptionKeyName_ = producerEncryptionKeyName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.producerEncryptionKeyName_ = producerEncryptionKeyName_; result.producerCryptoFailureAction_ = producerCryptoFailureAction_; result.consumerCryptoFailureAction_ = consumerCryptoFailureAction_; 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.pulsar.functions.proto.Function.CryptoSpec) { return mergeFrom((org.apache.pulsar.functions.proto.Function.CryptoSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.pulsar.functions.proto.Function.CryptoSpec other) { if (other == org.apache.pulsar.functions.proto.Function.CryptoSpec.getDefaultInstance()) return this; if (!other.getCryptoKeyReaderClassName().isEmpty()) { cryptoKeyReaderClassName_ = other.cryptoKeyReaderClassName_; onChanged(); } if (!other.getCryptoKeyReaderConfig().isEmpty()) { cryptoKeyReaderConfig_ = other.cryptoKeyReaderConfig_; onChanged(); } if (!other.producerEncryptionKeyName_.isEmpty()) { if (producerEncryptionKeyName_.isEmpty()) { producerEncryptionKeyName_ = other.producerEncryptionKeyName_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureProducerEncryptionKeyNameIsMutable(); producerEncryptionKeyName_.addAll(other.producerEncryptionKeyName_); } onChanged(); } if (other.producerCryptoFailureAction_ != 0) { setProducerCryptoFailureActionValue(other.getProducerCryptoFailureActionValue()); } if (other.consumerCryptoFailureAction_ != 0) { setConsumerCryptoFailureActionValue(other.getConsumerCryptoFailureActionValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cryptoKeyReaderClassName_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { cryptoKeyReaderConfig_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureProducerEncryptionKeyNameIsMutable(); producerEncryptionKeyName_.add(s); break; } // case 26 case 32: { producerCryptoFailureAction_ = input.readEnum(); break; } // case 32 case 40: { consumerCryptoFailureAction_ = input.readEnum(); break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object cryptoKeyReaderClassName_ = ""; /** * string cryptoKeyReaderClassName = 1; * @return The cryptoKeyReaderClassName. */ public java.lang.String getCryptoKeyReaderClassName() { java.lang.Object ref = cryptoKeyReaderClassName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyReaderClassName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cryptoKeyReaderClassName = 1; * @return The bytes for cryptoKeyReaderClassName. */ public com.google.protobuf.ByteString getCryptoKeyReaderClassNameBytes() { java.lang.Object ref = cryptoKeyReaderClassName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cryptoKeyReaderClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cryptoKeyReaderClassName = 1; * @param value The cryptoKeyReaderClassName to set. * @return This builder for chaining. */ public Builder setCryptoKeyReaderClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cryptoKeyReaderClassName_ = value; onChanged(); return this; } /** * string cryptoKeyReaderClassName = 1; * @return This builder for chaining. */ public Builder clearCryptoKeyReaderClassName() { cryptoKeyReaderClassName_ = getDefaultInstance().getCryptoKeyReaderClassName(); onChanged(); return this; } /** * string cryptoKeyReaderClassName = 1; * @param value The bytes for cryptoKeyReaderClassName to set. * @return This builder for chaining. */ public Builder setCryptoKeyReaderClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cryptoKeyReaderClassName_ = value; onChanged(); return this; } private java.lang.Object cryptoKeyReaderConfig_ = ""; /** * string cryptoKeyReaderConfig = 2; * @return The cryptoKeyReaderConfig. */ public java.lang.String getCryptoKeyReaderConfig() { java.lang.Object ref = cryptoKeyReaderConfig_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyReaderConfig_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cryptoKeyReaderConfig = 2; * @return The bytes for cryptoKeyReaderConfig. */ public com.google.protobuf.ByteString getCryptoKeyReaderConfigBytes() { java.lang.Object ref = cryptoKeyReaderConfig_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cryptoKeyReaderConfig_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cryptoKeyReaderConfig = 2; * @param value The cryptoKeyReaderConfig to set. * @return This builder for chaining. */ public Builder setCryptoKeyReaderConfig( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cryptoKeyReaderConfig_ = value; onChanged(); return this; } /** * string cryptoKeyReaderConfig = 2; * @return This builder for chaining. */ public Builder clearCryptoKeyReaderConfig() { cryptoKeyReaderConfig_ = getDefaultInstance().getCryptoKeyReaderConfig(); onChanged(); return this; } /** * string cryptoKeyReaderConfig = 2; * @param value The bytes for cryptoKeyReaderConfig to set. * @return This builder for chaining. */ public Builder setCryptoKeyReaderConfigBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cryptoKeyReaderConfig_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList producerEncryptionKeyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureProducerEncryptionKeyNameIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { producerEncryptionKeyName_ = new com.google.protobuf.LazyStringArrayList(producerEncryptionKeyName_); bitField0_ |= 0x00000001; } } /** *
       * key names used by producer to encrypt data
       * 
* * repeated string producerEncryptionKeyName = 3; * @return A list containing the producerEncryptionKeyName. */ public com.google.protobuf.ProtocolStringList getProducerEncryptionKeyNameList() { return producerEncryptionKeyName_.getUnmodifiableView(); } /** *
       * key names used by producer to encrypt data
       * 
* * repeated string producerEncryptionKeyName = 3; * @return The count of producerEncryptionKeyName. */ public int getProducerEncryptionKeyNameCount() { return producerEncryptionKeyName_.size(); } /** *
       * key names used by producer to encrypt data
       * 
* * repeated string producerEncryptionKeyName = 3; * @param index The index of the element to return. * @return The producerEncryptionKeyName at the given index. */ public java.lang.String getProducerEncryptionKeyName(int index) { return producerEncryptionKeyName_.get(index); } /** *
       * key names used by producer to encrypt data
       * 
* * repeated string producerEncryptionKeyName = 3; * @param index The index of the value to return. * @return The bytes of the producerEncryptionKeyName at the given index. */ public com.google.protobuf.ByteString getProducerEncryptionKeyNameBytes(int index) { return producerEncryptionKeyName_.getByteString(index); } /** *
       * key names used by producer to encrypt data
       * 
* * repeated string producerEncryptionKeyName = 3; * @param index The index to set the value at. * @param value The producerEncryptionKeyName to set. * @return This builder for chaining. */ public Builder setProducerEncryptionKeyName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProducerEncryptionKeyNameIsMutable(); producerEncryptionKeyName_.set(index, value); onChanged(); return this; } /** *
       * key names used by producer to encrypt data
       * 
* * repeated string producerEncryptionKeyName = 3; * @param value The producerEncryptionKeyName to add. * @return This builder for chaining. */ public Builder addProducerEncryptionKeyName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProducerEncryptionKeyNameIsMutable(); producerEncryptionKeyName_.add(value); onChanged(); return this; } /** *
       * key names used by producer to encrypt data
       * 
* * repeated string producerEncryptionKeyName = 3; * @param values The producerEncryptionKeyName to add. * @return This builder for chaining. */ public Builder addAllProducerEncryptionKeyName( java.lang.Iterable values) { ensureProducerEncryptionKeyNameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, producerEncryptionKeyName_); onChanged(); return this; } /** *
       * key names used by producer to encrypt data
       * 
* * repeated string producerEncryptionKeyName = 3; * @return This builder for chaining. */ public Builder clearProducerEncryptionKeyName() { producerEncryptionKeyName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * key names used by producer to encrypt data
       * 
* * repeated string producerEncryptionKeyName = 3; * @param value The bytes of the producerEncryptionKeyName to add. * @return This builder for chaining. */ public Builder addProducerEncryptionKeyNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureProducerEncryptionKeyNameIsMutable(); producerEncryptionKeyName_.add(value); onChanged(); return this; } private int producerCryptoFailureAction_ = 0; /** *
       * define the action if producer fail to encrypt data
       * one of FAIL, SEND
       * 
* * .proto.CryptoSpec.FailureAction producerCryptoFailureAction = 4; * @return The enum numeric value on the wire for producerCryptoFailureAction. */ @java.lang.Override public int getProducerCryptoFailureActionValue() { return producerCryptoFailureAction_; } /** *
       * define the action if producer fail to encrypt data
       * one of FAIL, SEND
       * 
* * .proto.CryptoSpec.FailureAction producerCryptoFailureAction = 4; * @param value The enum numeric value on the wire for producerCryptoFailureAction to set. * @return This builder for chaining. */ public Builder setProducerCryptoFailureActionValue(int value) { producerCryptoFailureAction_ = value; onChanged(); return this; } /** *
       * define the action if producer fail to encrypt data
       * one of FAIL, SEND
       * 
* * .proto.CryptoSpec.FailureAction producerCryptoFailureAction = 4; * @return The producerCryptoFailureAction. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction getProducerCryptoFailureAction() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction result = org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction.valueOf(producerCryptoFailureAction_); return result == null ? org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction.UNRECOGNIZED : result; } /** *
       * define the action if producer fail to encrypt data
       * one of FAIL, SEND
       * 
* * .proto.CryptoSpec.FailureAction producerCryptoFailureAction = 4; * @param value The producerCryptoFailureAction to set. * @return This builder for chaining. */ public Builder setProducerCryptoFailureAction(org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction value) { if (value == null) { throw new NullPointerException(); } producerCryptoFailureAction_ = value.getNumber(); onChanged(); return this; } /** *
       * define the action if producer fail to encrypt data
       * one of FAIL, SEND
       * 
* * .proto.CryptoSpec.FailureAction producerCryptoFailureAction = 4; * @return This builder for chaining. */ public Builder clearProducerCryptoFailureAction() { producerCryptoFailureAction_ = 0; onChanged(); return this; } private int consumerCryptoFailureAction_ = 0; /** *
       * define the action if consumer fail to decrypt data
       * one of FAIL, DISCARD, CONSUME
       * 
* * .proto.CryptoSpec.FailureAction consumerCryptoFailureAction = 5; * @return The enum numeric value on the wire for consumerCryptoFailureAction. */ @java.lang.Override public int getConsumerCryptoFailureActionValue() { return consumerCryptoFailureAction_; } /** *
       * define the action if consumer fail to decrypt data
       * one of FAIL, DISCARD, CONSUME
       * 
* * .proto.CryptoSpec.FailureAction consumerCryptoFailureAction = 5; * @param value The enum numeric value on the wire for consumerCryptoFailureAction to set. * @return This builder for chaining. */ public Builder setConsumerCryptoFailureActionValue(int value) { consumerCryptoFailureAction_ = value; onChanged(); return this; } /** *
       * define the action if consumer fail to decrypt data
       * one of FAIL, DISCARD, CONSUME
       * 
* * .proto.CryptoSpec.FailureAction consumerCryptoFailureAction = 5; * @return The consumerCryptoFailureAction. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction getConsumerCryptoFailureAction() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction result = org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction.valueOf(consumerCryptoFailureAction_); return result == null ? org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction.UNRECOGNIZED : result; } /** *
       * define the action if consumer fail to decrypt data
       * one of FAIL, DISCARD, CONSUME
       * 
* * .proto.CryptoSpec.FailureAction consumerCryptoFailureAction = 5; * @param value The consumerCryptoFailureAction to set. * @return This builder for chaining. */ public Builder setConsumerCryptoFailureAction(org.apache.pulsar.functions.proto.Function.CryptoSpec.FailureAction value) { if (value == null) { throw new NullPointerException(); } consumerCryptoFailureAction_ = value.getNumber(); onChanged(); return this; } /** *
       * define the action if consumer fail to decrypt data
       * one of FAIL, DISCARD, CONSUME
       * 
* * .proto.CryptoSpec.FailureAction consumerCryptoFailureAction = 5; * @return This builder for chaining. */ public Builder clearConsumerCryptoFailureAction() { consumerCryptoFailureAction_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.CryptoSpec) } // @@protoc_insertion_point(class_scope:proto.CryptoSpec) private static final org.apache.pulsar.functions.proto.Function.CryptoSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.pulsar.functions.proto.Function.CryptoSpec(); } public static org.apache.pulsar.functions.proto.Function.CryptoSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CryptoSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.CryptoSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SourceSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SourceSpec) com.google.protobuf.MessageOrBuilder { /** * string className = 1; * @return The className. */ java.lang.String getClassName(); /** * string className = 1; * @return The bytes for className. */ com.google.protobuf.ByteString getClassNameBytes(); /** *
     * map in json format
     * 
* * string configs = 2; * @return The configs. */ java.lang.String getConfigs(); /** *
     * map in json format
     * 
* * string configs = 2; * @return The bytes for configs. */ com.google.protobuf.ByteString getConfigsBytes(); /** * string typeClassName = 5; * @return The typeClassName. */ java.lang.String getTypeClassName(); /** * string typeClassName = 5; * @return The bytes for typeClassName. */ com.google.protobuf.ByteString getTypeClassNameBytes(); /** *
     * configs used only when source feeds into functions
     * 
* * .proto.SubscriptionType subscriptionType = 3; * @return The enum numeric value on the wire for subscriptionType. */ int getSubscriptionTypeValue(); /** *
     * configs used only when source feeds into functions
     * 
* * .proto.SubscriptionType subscriptionType = 3; * @return The subscriptionType. */ org.apache.pulsar.functions.proto.Function.SubscriptionType getSubscriptionType(); /** *
     * @deprecated -- use topicsToSchema
     * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Deprecated int getTopicsToSerDeClassNameCount(); /** *
     * @deprecated -- use topicsToSchema
     * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Deprecated boolean containsTopicsToSerDeClassName( java.lang.String key); /** * Use {@link #getTopicsToSerDeClassNameMap()} instead. */ @java.lang.Deprecated java.util.Map getTopicsToSerDeClassName(); /** *
     * @deprecated -- use topicsToSchema
     * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Deprecated java.util.Map getTopicsToSerDeClassNameMap(); /** *
     * @deprecated -- use topicsToSchema
     * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Deprecated java.lang.String getTopicsToSerDeClassNameOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * @deprecated -- use topicsToSchema
     * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Deprecated java.lang.String getTopicsToSerDeClassNameOrThrow( java.lang.String key); /** *
     **
     * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ int getInputSpecsCount(); /** *
     **
     * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ boolean containsInputSpecs( java.lang.String key); /** * Use {@link #getInputSpecsMap()} instead. */ @java.lang.Deprecated java.util.Map getInputSpecs(); /** *
     **
     * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ java.util.Map getInputSpecsMap(); /** *
     **
     * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ org.apache.pulsar.functions.proto.Function.ConsumerSpec getInputSpecsOrDefault( java.lang.String key, org.apache.pulsar.functions.proto.Function.ConsumerSpec defaultValue); /** *
     **
     * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ org.apache.pulsar.functions.proto.Function.ConsumerSpec getInputSpecsOrThrow( java.lang.String key); /** * uint64 timeoutMs = 6; * @return The timeoutMs. */ long getTimeoutMs(); /** * string topicsPattern = 7 [deprecated = true]; * @deprecated * @return The topicsPattern. */ @java.lang.Deprecated java.lang.String getTopicsPattern(); /** * string topicsPattern = 7 [deprecated = true]; * @deprecated * @return The bytes for topicsPattern. */ @java.lang.Deprecated com.google.protobuf.ByteString getTopicsPatternBytes(); /** *
     * If specified, this will refer to an archive that is
     * already present in the server 
     * 
* * string builtin = 8; * @return The builtin. */ java.lang.String getBuiltin(); /** *
     * If specified, this will refer to an archive that is
     * already present in the server 
     * 
* * string builtin = 8; * @return The bytes for builtin. */ com.google.protobuf.ByteString getBuiltinBytes(); /** * string subscriptionName = 9; * @return The subscriptionName. */ java.lang.String getSubscriptionName(); /** * string subscriptionName = 9; * @return The bytes for subscriptionName. */ com.google.protobuf.ByteString getSubscriptionNameBytes(); /** * bool cleanupSubscription = 11; * @return The cleanupSubscription. */ boolean getCleanupSubscription(); /** * .proto.SubscriptionPosition subscriptionPosition = 12; * @return The enum numeric value on the wire for subscriptionPosition. */ int getSubscriptionPositionValue(); /** * .proto.SubscriptionPosition subscriptionPosition = 12; * @return The subscriptionPosition. */ org.apache.pulsar.functions.proto.Function.SubscriptionPosition getSubscriptionPosition(); /** * uint64 negativeAckRedeliveryDelayMs = 13; * @return The negativeAckRedeliveryDelayMs. */ long getNegativeAckRedeliveryDelayMs(); /** * bool skipToLatest = 14; * @return The skipToLatest. */ boolean getSkipToLatest(); } /** * Protobuf type {@code proto.SourceSpec} */ public static final class SourceSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SourceSpec) SourceSpecOrBuilder { private static final long serialVersionUID = 0L; // Use SourceSpec.newBuilder() to construct. private SourceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SourceSpec() { className_ = ""; configs_ = ""; typeClassName_ = ""; subscriptionType_ = 0; topicsPattern_ = ""; builtin_ = ""; subscriptionName_ = ""; subscriptionPosition_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SourceSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_SourceSpec_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetTopicsToSerDeClassName(); case 10: return internalGetInputSpecs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_SourceSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.SourceSpec.class, org.apache.pulsar.functions.proto.Function.SourceSpec.Builder.class); } public static final int CLASSNAME_FIELD_NUMBER = 1; private volatile java.lang.Object className_; /** * string className = 1; * @return The className. */ @java.lang.Override public java.lang.String getClassName() { java.lang.Object ref = className_; 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(); className_ = s; return s; } } /** * string className = 1; * @return The bytes for className. */ @java.lang.Override public com.google.protobuf.ByteString getClassNameBytes() { java.lang.Object ref = className_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); className_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONFIGS_FIELD_NUMBER = 2; private volatile java.lang.Object configs_; /** *
     * map in json format
     * 
* * string configs = 2; * @return The configs. */ @java.lang.Override public java.lang.String getConfigs() { java.lang.Object ref = configs_; 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(); configs_ = s; return s; } } /** *
     * map in json format
     * 
* * string configs = 2; * @return The bytes for configs. */ @java.lang.Override public com.google.protobuf.ByteString getConfigsBytes() { java.lang.Object ref = configs_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); configs_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPECLASSNAME_FIELD_NUMBER = 5; private volatile java.lang.Object typeClassName_; /** * string typeClassName = 5; * @return The typeClassName. */ @java.lang.Override public java.lang.String getTypeClassName() { java.lang.Object ref = typeClassName_; 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(); typeClassName_ = s; return s; } } /** * string typeClassName = 5; * @return The bytes for typeClassName. */ @java.lang.Override public com.google.protobuf.ByteString getTypeClassNameBytes() { java.lang.Object ref = typeClassName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBSCRIPTIONTYPE_FIELD_NUMBER = 3; private int subscriptionType_; /** *
     * configs used only when source feeds into functions
     * 
* * .proto.SubscriptionType subscriptionType = 3; * @return The enum numeric value on the wire for subscriptionType. */ @java.lang.Override public int getSubscriptionTypeValue() { return subscriptionType_; } /** *
     * configs used only when source feeds into functions
     * 
* * .proto.SubscriptionType subscriptionType = 3; * @return The subscriptionType. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.SubscriptionType getSubscriptionType() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.SubscriptionType result = org.apache.pulsar.functions.proto.Function.SubscriptionType.valueOf(subscriptionType_); return result == null ? org.apache.pulsar.functions.proto.Function.SubscriptionType.UNRECOGNIZED : result; } public static final int TOPICSTOSERDECLASSNAME_FIELD_NUMBER = 4; private static final class TopicsToSerDeClassNameDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.apache.pulsar.functions.proto.Function.internal_static_proto_SourceSpec_TopicsToSerDeClassNameEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> topicsToSerDeClassName_; private com.google.protobuf.MapField internalGetTopicsToSerDeClassName() { if (topicsToSerDeClassName_ == null) { return com.google.protobuf.MapField.emptyMapField( TopicsToSerDeClassNameDefaultEntryHolder.defaultEntry); } return topicsToSerDeClassName_; } @java.lang.Deprecated public int getTopicsToSerDeClassNameCount() { return internalGetTopicsToSerDeClassName().getMap().size(); } /** *
     * @deprecated -- use topicsToSchema
     * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Deprecated @java.lang.Override public boolean containsTopicsToSerDeClassName( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTopicsToSerDeClassName().getMap().containsKey(key); } /** * Use {@link #getTopicsToSerDeClassNameMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTopicsToSerDeClassName() { return getTopicsToSerDeClassNameMap(); } /** *
     * @deprecated -- use topicsToSchema
     * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTopicsToSerDeClassNameMap() { return internalGetTopicsToSerDeClassName().getMap(); } /** *
     * @deprecated -- use topicsToSchema
     * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public java.lang.String getTopicsToSerDeClassNameOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTopicsToSerDeClassName().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * @deprecated -- use topicsToSchema
     * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public java.lang.String getTopicsToSerDeClassNameOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTopicsToSerDeClassName().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int INPUTSPECS_FIELD_NUMBER = 10; private static final class InputSpecsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.apache.pulsar.functions.proto.Function.ConsumerSpec> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.apache.pulsar.functions.proto.Function.internal_static_proto_SourceSpec_InputSpecsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.apache.pulsar.functions.proto.Function.ConsumerSpec.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.apache.pulsar.functions.proto.Function.ConsumerSpec> inputSpecs_; private com.google.protobuf.MapField internalGetInputSpecs() { if (inputSpecs_ == null) { return com.google.protobuf.MapField.emptyMapField( InputSpecsDefaultEntryHolder.defaultEntry); } return inputSpecs_; } public int getInputSpecsCount() { return internalGetInputSpecs().getMap().size(); } /** *
     **
     * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ @java.lang.Override public boolean containsInputSpecs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetInputSpecs().getMap().containsKey(key); } /** * Use {@link #getInputSpecsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getInputSpecs() { return getInputSpecsMap(); } /** *
     **
     * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ @java.lang.Override public java.util.Map getInputSpecsMap() { return internalGetInputSpecs().getMap(); } /** *
     **
     * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.ConsumerSpec getInputSpecsOrDefault( java.lang.String key, org.apache.pulsar.functions.proto.Function.ConsumerSpec defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInputSpecs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     **
     * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.ConsumerSpec getInputSpecsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInputSpecs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int TIMEOUTMS_FIELD_NUMBER = 6; private long timeoutMs_; /** * uint64 timeoutMs = 6; * @return The timeoutMs. */ @java.lang.Override public long getTimeoutMs() { return timeoutMs_; } public static final int TOPICSPATTERN_FIELD_NUMBER = 7; private volatile java.lang.Object topicsPattern_; /** * string topicsPattern = 7 [deprecated = true]; * @deprecated * @return The topicsPattern. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getTopicsPattern() { java.lang.Object ref = topicsPattern_; 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(); topicsPattern_ = s; return s; } } /** * string topicsPattern = 7 [deprecated = true]; * @deprecated * @return The bytes for topicsPattern. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getTopicsPatternBytes() { java.lang.Object ref = topicsPattern_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); topicsPattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUILTIN_FIELD_NUMBER = 8; private volatile java.lang.Object builtin_; /** *
     * If specified, this will refer to an archive that is
     * already present in the server 
     * 
* * string builtin = 8; * @return The builtin. */ @java.lang.Override public java.lang.String getBuiltin() { java.lang.Object ref = builtin_; 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(); builtin_ = s; return s; } } /** *
     * If specified, this will refer to an archive that is
     * already present in the server 
     * 
* * string builtin = 8; * @return The bytes for builtin. */ @java.lang.Override public com.google.protobuf.ByteString getBuiltinBytes() { java.lang.Object ref = builtin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); builtin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBSCRIPTIONNAME_FIELD_NUMBER = 9; private volatile java.lang.Object subscriptionName_; /** * string subscriptionName = 9; * @return The subscriptionName. */ @java.lang.Override public java.lang.String getSubscriptionName() { java.lang.Object ref = subscriptionName_; 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(); subscriptionName_ = s; return s; } } /** * string subscriptionName = 9; * @return The bytes for subscriptionName. */ @java.lang.Override public com.google.protobuf.ByteString getSubscriptionNameBytes() { java.lang.Object ref = subscriptionName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subscriptionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLEANUPSUBSCRIPTION_FIELD_NUMBER = 11; private boolean cleanupSubscription_; /** * bool cleanupSubscription = 11; * @return The cleanupSubscription. */ @java.lang.Override public boolean getCleanupSubscription() { return cleanupSubscription_; } public static final int SUBSCRIPTIONPOSITION_FIELD_NUMBER = 12; private int subscriptionPosition_; /** * .proto.SubscriptionPosition subscriptionPosition = 12; * @return The enum numeric value on the wire for subscriptionPosition. */ @java.lang.Override public int getSubscriptionPositionValue() { return subscriptionPosition_; } /** * .proto.SubscriptionPosition subscriptionPosition = 12; * @return The subscriptionPosition. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.SubscriptionPosition getSubscriptionPosition() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.SubscriptionPosition result = org.apache.pulsar.functions.proto.Function.SubscriptionPosition.valueOf(subscriptionPosition_); return result == null ? org.apache.pulsar.functions.proto.Function.SubscriptionPosition.UNRECOGNIZED : result; } public static final int NEGATIVEACKREDELIVERYDELAYMS_FIELD_NUMBER = 13; private long negativeAckRedeliveryDelayMs_; /** * uint64 negativeAckRedeliveryDelayMs = 13; * @return The negativeAckRedeliveryDelayMs. */ @java.lang.Override public long getNegativeAckRedeliveryDelayMs() { return negativeAckRedeliveryDelayMs_; } public static final int SKIPTOLATEST_FIELD_NUMBER = 14; private boolean skipToLatest_; /** * bool skipToLatest = 14; * @return The skipToLatest. */ @java.lang.Override public boolean getSkipToLatest() { return skipToLatest_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, className_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configs_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, configs_); } if (subscriptionType_ != org.apache.pulsar.functions.proto.Function.SubscriptionType.SHARED.getNumber()) { output.writeEnum(3, subscriptionType_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetTopicsToSerDeClassName(), TopicsToSerDeClassNameDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeClassName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, typeClassName_); } if (timeoutMs_ != 0L) { output.writeUInt64(6, timeoutMs_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topicsPattern_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, topicsPattern_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(builtin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, builtin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscriptionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, subscriptionName_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetInputSpecs(), InputSpecsDefaultEntryHolder.defaultEntry, 10); if (cleanupSubscription_ != false) { output.writeBool(11, cleanupSubscription_); } if (subscriptionPosition_ != org.apache.pulsar.functions.proto.Function.SubscriptionPosition.LATEST.getNumber()) { output.writeEnum(12, subscriptionPosition_); } if (negativeAckRedeliveryDelayMs_ != 0L) { output.writeUInt64(13, negativeAckRedeliveryDelayMs_); } if (skipToLatest_ != false) { output.writeBool(14, skipToLatest_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, className_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configs_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, configs_); } if (subscriptionType_ != org.apache.pulsar.functions.proto.Function.SubscriptionType.SHARED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, subscriptionType_); } for (java.util.Map.Entry entry : internalGetTopicsToSerDeClassName().getMap().entrySet()) { com.google.protobuf.MapEntry topicsToSerDeClassName__ = TopicsToSerDeClassNameDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, topicsToSerDeClassName__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeClassName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, typeClassName_); } if (timeoutMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, timeoutMs_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topicsPattern_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, topicsPattern_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(builtin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, builtin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscriptionName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, subscriptionName_); } for (java.util.Map.Entry entry : internalGetInputSpecs().getMap().entrySet()) { com.google.protobuf.MapEntry inputSpecs__ = InputSpecsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, inputSpecs__); } if (cleanupSubscription_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, cleanupSubscription_); } if (subscriptionPosition_ != org.apache.pulsar.functions.proto.Function.SubscriptionPosition.LATEST.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(12, subscriptionPosition_); } if (negativeAckRedeliveryDelayMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(13, negativeAckRedeliveryDelayMs_); } if (skipToLatest_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, skipToLatest_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.pulsar.functions.proto.Function.SourceSpec)) { return super.equals(obj); } org.apache.pulsar.functions.proto.Function.SourceSpec other = (org.apache.pulsar.functions.proto.Function.SourceSpec) obj; if (!getClassName() .equals(other.getClassName())) return false; if (!getConfigs() .equals(other.getConfigs())) return false; if (!getTypeClassName() .equals(other.getTypeClassName())) return false; if (subscriptionType_ != other.subscriptionType_) return false; if (!internalGetTopicsToSerDeClassName().equals( other.internalGetTopicsToSerDeClassName())) return false; if (!internalGetInputSpecs().equals( other.internalGetInputSpecs())) return false; if (getTimeoutMs() != other.getTimeoutMs()) return false; if (!getTopicsPattern() .equals(other.getTopicsPattern())) return false; if (!getBuiltin() .equals(other.getBuiltin())) return false; if (!getSubscriptionName() .equals(other.getSubscriptionName())) return false; if (getCleanupSubscription() != other.getCleanupSubscription()) return false; if (subscriptionPosition_ != other.subscriptionPosition_) return false; if (getNegativeAckRedeliveryDelayMs() != other.getNegativeAckRedeliveryDelayMs()) return false; if (getSkipToLatest() != other.getSkipToLatest()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getClassName().hashCode(); hash = (37 * hash) + CONFIGS_FIELD_NUMBER; hash = (53 * hash) + getConfigs().hashCode(); hash = (37 * hash) + TYPECLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getTypeClassName().hashCode(); hash = (37 * hash) + SUBSCRIPTIONTYPE_FIELD_NUMBER; hash = (53 * hash) + subscriptionType_; if (!internalGetTopicsToSerDeClassName().getMap().isEmpty()) { hash = (37 * hash) + TOPICSTOSERDECLASSNAME_FIELD_NUMBER; hash = (53 * hash) + internalGetTopicsToSerDeClassName().hashCode(); } if (!internalGetInputSpecs().getMap().isEmpty()) { hash = (37 * hash) + INPUTSPECS_FIELD_NUMBER; hash = (53 * hash) + internalGetInputSpecs().hashCode(); } hash = (37 * hash) + TIMEOUTMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeoutMs()); hash = (37 * hash) + TOPICSPATTERN_FIELD_NUMBER; hash = (53 * hash) + getTopicsPattern().hashCode(); hash = (37 * hash) + BUILTIN_FIELD_NUMBER; hash = (53 * hash) + getBuiltin().hashCode(); hash = (37 * hash) + SUBSCRIPTIONNAME_FIELD_NUMBER; hash = (53 * hash) + getSubscriptionName().hashCode(); hash = (37 * hash) + CLEANUPSUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCleanupSubscription()); hash = (37 * hash) + SUBSCRIPTIONPOSITION_FIELD_NUMBER; hash = (53 * hash) + subscriptionPosition_; hash = (37 * hash) + NEGATIVEACKREDELIVERYDELAYMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNegativeAckRedeliveryDelayMs()); hash = (37 * hash) + SKIPTOLATEST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSkipToLatest()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.pulsar.functions.proto.Function.SourceSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.SourceSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.SourceSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.SourceSpec 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.pulsar.functions.proto.Function.SourceSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.SourceSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.SourceSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.SourceSpec 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.pulsar.functions.proto.Function.SourceSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.SourceSpec 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.pulsar.functions.proto.Function.SourceSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.SourceSpec 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.pulsar.functions.proto.Function.SourceSpec 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 proto.SourceSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SourceSpec) org.apache.pulsar.functions.proto.Function.SourceSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_SourceSpec_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetTopicsToSerDeClassName(); case 10: return internalGetInputSpecs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 4: return internalGetMutableTopicsToSerDeClassName(); case 10: return internalGetMutableInputSpecs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_SourceSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.SourceSpec.class, org.apache.pulsar.functions.proto.Function.SourceSpec.Builder.class); } // Construct using org.apache.pulsar.functions.proto.Function.SourceSpec.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); className_ = ""; configs_ = ""; typeClassName_ = ""; subscriptionType_ = 0; internalGetMutableTopicsToSerDeClassName().clear(); internalGetMutableInputSpecs().clear(); timeoutMs_ = 0L; topicsPattern_ = ""; builtin_ = ""; subscriptionName_ = ""; cleanupSubscription_ = false; subscriptionPosition_ = 0; negativeAckRedeliveryDelayMs_ = 0L; skipToLatest_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_SourceSpec_descriptor; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.SourceSpec getDefaultInstanceForType() { return org.apache.pulsar.functions.proto.Function.SourceSpec.getDefaultInstance(); } @java.lang.Override public org.apache.pulsar.functions.proto.Function.SourceSpec build() { org.apache.pulsar.functions.proto.Function.SourceSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.SourceSpec buildPartial() { org.apache.pulsar.functions.proto.Function.SourceSpec result = new org.apache.pulsar.functions.proto.Function.SourceSpec(this); int from_bitField0_ = bitField0_; result.className_ = className_; result.configs_ = configs_; result.typeClassName_ = typeClassName_; result.subscriptionType_ = subscriptionType_; result.topicsToSerDeClassName_ = internalGetTopicsToSerDeClassName(); result.topicsToSerDeClassName_.makeImmutable(); result.inputSpecs_ = internalGetInputSpecs(); result.inputSpecs_.makeImmutable(); result.timeoutMs_ = timeoutMs_; result.topicsPattern_ = topicsPattern_; result.builtin_ = builtin_; result.subscriptionName_ = subscriptionName_; result.cleanupSubscription_ = cleanupSubscription_; result.subscriptionPosition_ = subscriptionPosition_; result.negativeAckRedeliveryDelayMs_ = negativeAckRedeliveryDelayMs_; result.skipToLatest_ = skipToLatest_; 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.pulsar.functions.proto.Function.SourceSpec) { return mergeFrom((org.apache.pulsar.functions.proto.Function.SourceSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.pulsar.functions.proto.Function.SourceSpec other) { if (other == org.apache.pulsar.functions.proto.Function.SourceSpec.getDefaultInstance()) return this; if (!other.getClassName().isEmpty()) { className_ = other.className_; onChanged(); } if (!other.getConfigs().isEmpty()) { configs_ = other.configs_; onChanged(); } if (!other.getTypeClassName().isEmpty()) { typeClassName_ = other.typeClassName_; onChanged(); } if (other.subscriptionType_ != 0) { setSubscriptionTypeValue(other.getSubscriptionTypeValue()); } internalGetMutableTopicsToSerDeClassName().mergeFrom( other.internalGetTopicsToSerDeClassName()); internalGetMutableInputSpecs().mergeFrom( other.internalGetInputSpecs()); if (other.getTimeoutMs() != 0L) { setTimeoutMs(other.getTimeoutMs()); } if (!other.getTopicsPattern().isEmpty()) { topicsPattern_ = other.topicsPattern_; onChanged(); } if (!other.getBuiltin().isEmpty()) { builtin_ = other.builtin_; onChanged(); } if (!other.getSubscriptionName().isEmpty()) { subscriptionName_ = other.subscriptionName_; onChanged(); } if (other.getCleanupSubscription() != false) { setCleanupSubscription(other.getCleanupSubscription()); } if (other.subscriptionPosition_ != 0) { setSubscriptionPositionValue(other.getSubscriptionPositionValue()); } if (other.getNegativeAckRedeliveryDelayMs() != 0L) { setNegativeAckRedeliveryDelayMs(other.getNegativeAckRedeliveryDelayMs()); } if (other.getSkipToLatest() != false) { setSkipToLatest(other.getSkipToLatest()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { className_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { configs_ = input.readStringRequireUtf8(); break; } // case 18 case 24: { subscriptionType_ = input.readEnum(); break; } // case 24 case 34: { com.google.protobuf.MapEntry topicsToSerDeClassName__ = input.readMessage( TopicsToSerDeClassNameDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableTopicsToSerDeClassName().getMutableMap().put( topicsToSerDeClassName__.getKey(), topicsToSerDeClassName__.getValue()); break; } // case 34 case 42: { typeClassName_ = input.readStringRequireUtf8(); break; } // case 42 case 48: { timeoutMs_ = input.readUInt64(); break; } // case 48 case 58: { topicsPattern_ = input.readStringRequireUtf8(); break; } // case 58 case 66: { builtin_ = input.readStringRequireUtf8(); break; } // case 66 case 74: { subscriptionName_ = input.readStringRequireUtf8(); break; } // case 74 case 82: { com.google.protobuf.MapEntry inputSpecs__ = input.readMessage( InputSpecsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableInputSpecs().getMutableMap().put( inputSpecs__.getKey(), inputSpecs__.getValue()); break; } // case 82 case 88: { cleanupSubscription_ = input.readBool(); break; } // case 88 case 96: { subscriptionPosition_ = input.readEnum(); break; } // case 96 case 104: { negativeAckRedeliveryDelayMs_ = input.readUInt64(); break; } // case 104 case 112: { skipToLatest_ = input.readBool(); break; } // case 112 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object className_ = ""; /** * string className = 1; * @return The className. */ public java.lang.String getClassName() { java.lang.Object ref = className_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); className_ = s; return s; } else { return (java.lang.String) ref; } } /** * string className = 1; * @return The bytes for className. */ public com.google.protobuf.ByteString getClassNameBytes() { java.lang.Object ref = className_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); className_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string className = 1; * @param value The className to set. * @return This builder for chaining. */ public Builder setClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } className_ = value; onChanged(); return this; } /** * string className = 1; * @return This builder for chaining. */ public Builder clearClassName() { className_ = getDefaultInstance().getClassName(); onChanged(); return this; } /** * string className = 1; * @param value The bytes for className to set. * @return This builder for chaining. */ public Builder setClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); className_ = value; onChanged(); return this; } private java.lang.Object configs_ = ""; /** *
       * map in json format
       * 
* * string configs = 2; * @return The configs. */ public java.lang.String getConfigs() { java.lang.Object ref = configs_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configs_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * map in json format
       * 
* * string configs = 2; * @return The bytes for configs. */ public com.google.protobuf.ByteString getConfigsBytes() { java.lang.Object ref = configs_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); configs_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * map in json format
       * 
* * string configs = 2; * @param value The configs to set. * @return This builder for chaining. */ public Builder setConfigs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } configs_ = value; onChanged(); return this; } /** *
       * map in json format
       * 
* * string configs = 2; * @return This builder for chaining. */ public Builder clearConfigs() { configs_ = getDefaultInstance().getConfigs(); onChanged(); return this; } /** *
       * map in json format
       * 
* * string configs = 2; * @param value The bytes for configs to set. * @return This builder for chaining. */ public Builder setConfigsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); configs_ = value; onChanged(); return this; } private java.lang.Object typeClassName_ = ""; /** * string typeClassName = 5; * @return The typeClassName. */ public java.lang.String getTypeClassName() { java.lang.Object ref = typeClassName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeClassName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string typeClassName = 5; * @return The bytes for typeClassName. */ public com.google.protobuf.ByteString getTypeClassNameBytes() { java.lang.Object ref = typeClassName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string typeClassName = 5; * @param value The typeClassName to set. * @return This builder for chaining. */ public Builder setTypeClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeClassName_ = value; onChanged(); return this; } /** * string typeClassName = 5; * @return This builder for chaining. */ public Builder clearTypeClassName() { typeClassName_ = getDefaultInstance().getTypeClassName(); onChanged(); return this; } /** * string typeClassName = 5; * @param value The bytes for typeClassName to set. * @return This builder for chaining. */ public Builder setTypeClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeClassName_ = value; onChanged(); return this; } private int subscriptionType_ = 0; /** *
       * configs used only when source feeds into functions
       * 
* * .proto.SubscriptionType subscriptionType = 3; * @return The enum numeric value on the wire for subscriptionType. */ @java.lang.Override public int getSubscriptionTypeValue() { return subscriptionType_; } /** *
       * configs used only when source feeds into functions
       * 
* * .proto.SubscriptionType subscriptionType = 3; * @param value The enum numeric value on the wire for subscriptionType to set. * @return This builder for chaining. */ public Builder setSubscriptionTypeValue(int value) { subscriptionType_ = value; onChanged(); return this; } /** *
       * configs used only when source feeds into functions
       * 
* * .proto.SubscriptionType subscriptionType = 3; * @return The subscriptionType. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.SubscriptionType getSubscriptionType() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.SubscriptionType result = org.apache.pulsar.functions.proto.Function.SubscriptionType.valueOf(subscriptionType_); return result == null ? org.apache.pulsar.functions.proto.Function.SubscriptionType.UNRECOGNIZED : result; } /** *
       * configs used only when source feeds into functions
       * 
* * .proto.SubscriptionType subscriptionType = 3; * @param value The subscriptionType to set. * @return This builder for chaining. */ public Builder setSubscriptionType(org.apache.pulsar.functions.proto.Function.SubscriptionType value) { if (value == null) { throw new NullPointerException(); } subscriptionType_ = value.getNumber(); onChanged(); return this; } /** *
       * configs used only when source feeds into functions
       * 
* * .proto.SubscriptionType subscriptionType = 3; * @return This builder for chaining. */ public Builder clearSubscriptionType() { subscriptionType_ = 0; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> topicsToSerDeClassName_; private com.google.protobuf.MapField internalGetTopicsToSerDeClassName() { if (topicsToSerDeClassName_ == null) { return com.google.protobuf.MapField.emptyMapField( TopicsToSerDeClassNameDefaultEntryHolder.defaultEntry); } return topicsToSerDeClassName_; } private com.google.protobuf.MapField internalGetMutableTopicsToSerDeClassName() { onChanged();; if (topicsToSerDeClassName_ == null) { topicsToSerDeClassName_ = com.google.protobuf.MapField.newMapField( TopicsToSerDeClassNameDefaultEntryHolder.defaultEntry); } if (!topicsToSerDeClassName_.isMutable()) { topicsToSerDeClassName_ = topicsToSerDeClassName_.copy(); } return topicsToSerDeClassName_; } @java.lang.Deprecated public int getTopicsToSerDeClassNameCount() { return internalGetTopicsToSerDeClassName().getMap().size(); } /** *
       * @deprecated -- use topicsToSchema
       * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Deprecated @java.lang.Override public boolean containsTopicsToSerDeClassName( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTopicsToSerDeClassName().getMap().containsKey(key); } /** * Use {@link #getTopicsToSerDeClassNameMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTopicsToSerDeClassName() { return getTopicsToSerDeClassNameMap(); } /** *
       * @deprecated -- use topicsToSchema
       * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTopicsToSerDeClassNameMap() { return internalGetTopicsToSerDeClassName().getMap(); } /** *
       * @deprecated -- use topicsToSchema
       * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public java.lang.String getTopicsToSerDeClassNameOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTopicsToSerDeClassName().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * @deprecated -- use topicsToSchema
       * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public java.lang.String getTopicsToSerDeClassNameOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTopicsToSerDeClassName().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } @java.lang.Deprecated public Builder clearTopicsToSerDeClassName() { internalGetMutableTopicsToSerDeClassName().getMutableMap() .clear(); return this; } /** *
       * @deprecated -- use topicsToSchema
       * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Deprecated public Builder removeTopicsToSerDeClassName( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableTopicsToSerDeClassName().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTopicsToSerDeClassName() { return internalGetMutableTopicsToSerDeClassName().getMutableMap(); } /** *
       * @deprecated -- use topicsToSchema
       * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Deprecated public Builder putTopicsToSerDeClassName( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableTopicsToSerDeClassName().getMutableMap() .put(key, value); return this; } /** *
       * @deprecated -- use topicsToSchema
       * 
* * map<string, string> topicsToSerDeClassName = 4 [deprecated = true]; */ @java.lang.Deprecated public Builder putAllTopicsToSerDeClassName( java.util.Map values) { internalGetMutableTopicsToSerDeClassName().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, org.apache.pulsar.functions.proto.Function.ConsumerSpec> inputSpecs_; private com.google.protobuf.MapField internalGetInputSpecs() { if (inputSpecs_ == null) { return com.google.protobuf.MapField.emptyMapField( InputSpecsDefaultEntryHolder.defaultEntry); } return inputSpecs_; } private com.google.protobuf.MapField internalGetMutableInputSpecs() { onChanged();; if (inputSpecs_ == null) { inputSpecs_ = com.google.protobuf.MapField.newMapField( InputSpecsDefaultEntryHolder.defaultEntry); } if (!inputSpecs_.isMutable()) { inputSpecs_ = inputSpecs_.copy(); } return inputSpecs_; } public int getInputSpecsCount() { return internalGetInputSpecs().getMap().size(); } /** *
       **
       * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ @java.lang.Override public boolean containsInputSpecs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetInputSpecs().getMap().containsKey(key); } /** * Use {@link #getInputSpecsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getInputSpecs() { return getInputSpecsMap(); } /** *
       **
       * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ @java.lang.Override public java.util.Map getInputSpecsMap() { return internalGetInputSpecs().getMap(); } /** *
       **
       * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.ConsumerSpec getInputSpecsOrDefault( java.lang.String key, org.apache.pulsar.functions.proto.Function.ConsumerSpec defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInputSpecs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       **
       * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.ConsumerSpec getInputSpecsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInputSpecs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearInputSpecs() { internalGetMutableInputSpecs().getMutableMap() .clear(); return this; } /** *
       **
       * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ public Builder removeInputSpecs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableInputSpecs().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableInputSpecs() { return internalGetMutableInputSpecs().getMutableMap(); } /** *
       **
       * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ public Builder putInputSpecs( java.lang.String key, org.apache.pulsar.functions.proto.Function.ConsumerSpec value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableInputSpecs().getMutableMap() .put(key, value); return this; } /** *
       **
       * 
* * map<string, .proto.ConsumerSpec> inputSpecs = 10; */ public Builder putAllInputSpecs( java.util.Map values) { internalGetMutableInputSpecs().getMutableMap() .putAll(values); return this; } private long timeoutMs_ ; /** * uint64 timeoutMs = 6; * @return The timeoutMs. */ @java.lang.Override public long getTimeoutMs() { return timeoutMs_; } /** * uint64 timeoutMs = 6; * @param value The timeoutMs to set. * @return This builder for chaining. */ public Builder setTimeoutMs(long value) { timeoutMs_ = value; onChanged(); return this; } /** * uint64 timeoutMs = 6; * @return This builder for chaining. */ public Builder clearTimeoutMs() { timeoutMs_ = 0L; onChanged(); return this; } private java.lang.Object topicsPattern_ = ""; /** * string topicsPattern = 7 [deprecated = true]; * @deprecated * @return The topicsPattern. */ @java.lang.Deprecated public java.lang.String getTopicsPattern() { java.lang.Object ref = topicsPattern_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topicsPattern_ = s; return s; } else { return (java.lang.String) ref; } } /** * string topicsPattern = 7 [deprecated = true]; * @deprecated * @return The bytes for topicsPattern. */ @java.lang.Deprecated public com.google.protobuf.ByteString getTopicsPatternBytes() { java.lang.Object ref = topicsPattern_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); topicsPattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string topicsPattern = 7 [deprecated = true]; * @deprecated * @param value The topicsPattern to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setTopicsPattern( java.lang.String value) { if (value == null) { throw new NullPointerException(); } topicsPattern_ = value; onChanged(); return this; } /** * string topicsPattern = 7 [deprecated = true]; * @deprecated * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTopicsPattern() { topicsPattern_ = getDefaultInstance().getTopicsPattern(); onChanged(); return this; } /** * string topicsPattern = 7 [deprecated = true]; * @deprecated * @param value The bytes for topicsPattern to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setTopicsPatternBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topicsPattern_ = value; onChanged(); return this; } private java.lang.Object builtin_ = ""; /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 8; * @return The builtin. */ public java.lang.String getBuiltin() { java.lang.Object ref = builtin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); builtin_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 8; * @return The bytes for builtin. */ public com.google.protobuf.ByteString getBuiltinBytes() { java.lang.Object ref = builtin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); builtin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 8; * @param value The builtin to set. * @return This builder for chaining. */ public Builder setBuiltin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } builtin_ = value; onChanged(); return this; } /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 8; * @return This builder for chaining. */ public Builder clearBuiltin() { builtin_ = getDefaultInstance().getBuiltin(); onChanged(); return this; } /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 8; * @param value The bytes for builtin to set. * @return This builder for chaining. */ public Builder setBuiltinBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); builtin_ = value; onChanged(); return this; } private java.lang.Object subscriptionName_ = ""; /** * string subscriptionName = 9; * @return The subscriptionName. */ public java.lang.String getSubscriptionName() { java.lang.Object ref = subscriptionName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscriptionName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string subscriptionName = 9; * @return The bytes for subscriptionName. */ public com.google.protobuf.ByteString getSubscriptionNameBytes() { java.lang.Object ref = subscriptionName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subscriptionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string subscriptionName = 9; * @param value The subscriptionName to set. * @return This builder for chaining. */ public Builder setSubscriptionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subscriptionName_ = value; onChanged(); return this; } /** * string subscriptionName = 9; * @return This builder for chaining. */ public Builder clearSubscriptionName() { subscriptionName_ = getDefaultInstance().getSubscriptionName(); onChanged(); return this; } /** * string subscriptionName = 9; * @param value The bytes for subscriptionName to set. * @return This builder for chaining. */ public Builder setSubscriptionNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscriptionName_ = value; onChanged(); return this; } private boolean cleanupSubscription_ ; /** * bool cleanupSubscription = 11; * @return The cleanupSubscription. */ @java.lang.Override public boolean getCleanupSubscription() { return cleanupSubscription_; } /** * bool cleanupSubscription = 11; * @param value The cleanupSubscription to set. * @return This builder for chaining. */ public Builder setCleanupSubscription(boolean value) { cleanupSubscription_ = value; onChanged(); return this; } /** * bool cleanupSubscription = 11; * @return This builder for chaining. */ public Builder clearCleanupSubscription() { cleanupSubscription_ = false; onChanged(); return this; } private int subscriptionPosition_ = 0; /** * .proto.SubscriptionPosition subscriptionPosition = 12; * @return The enum numeric value on the wire for subscriptionPosition. */ @java.lang.Override public int getSubscriptionPositionValue() { return subscriptionPosition_; } /** * .proto.SubscriptionPosition subscriptionPosition = 12; * @param value The enum numeric value on the wire for subscriptionPosition to set. * @return This builder for chaining. */ public Builder setSubscriptionPositionValue(int value) { subscriptionPosition_ = value; onChanged(); return this; } /** * .proto.SubscriptionPosition subscriptionPosition = 12; * @return The subscriptionPosition. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.SubscriptionPosition getSubscriptionPosition() { @SuppressWarnings("deprecation") org.apache.pulsar.functions.proto.Function.SubscriptionPosition result = org.apache.pulsar.functions.proto.Function.SubscriptionPosition.valueOf(subscriptionPosition_); return result == null ? org.apache.pulsar.functions.proto.Function.SubscriptionPosition.UNRECOGNIZED : result; } /** * .proto.SubscriptionPosition subscriptionPosition = 12; * @param value The subscriptionPosition to set. * @return This builder for chaining. */ public Builder setSubscriptionPosition(org.apache.pulsar.functions.proto.Function.SubscriptionPosition value) { if (value == null) { throw new NullPointerException(); } subscriptionPosition_ = value.getNumber(); onChanged(); return this; } /** * .proto.SubscriptionPosition subscriptionPosition = 12; * @return This builder for chaining. */ public Builder clearSubscriptionPosition() { subscriptionPosition_ = 0; onChanged(); return this; } private long negativeAckRedeliveryDelayMs_ ; /** * uint64 negativeAckRedeliveryDelayMs = 13; * @return The negativeAckRedeliveryDelayMs. */ @java.lang.Override public long getNegativeAckRedeliveryDelayMs() { return negativeAckRedeliveryDelayMs_; } /** * uint64 negativeAckRedeliveryDelayMs = 13; * @param value The negativeAckRedeliveryDelayMs to set. * @return This builder for chaining. */ public Builder setNegativeAckRedeliveryDelayMs(long value) { negativeAckRedeliveryDelayMs_ = value; onChanged(); return this; } /** * uint64 negativeAckRedeliveryDelayMs = 13; * @return This builder for chaining. */ public Builder clearNegativeAckRedeliveryDelayMs() { negativeAckRedeliveryDelayMs_ = 0L; onChanged(); return this; } private boolean skipToLatest_ ; /** * bool skipToLatest = 14; * @return The skipToLatest. */ @java.lang.Override public boolean getSkipToLatest() { return skipToLatest_; } /** * bool skipToLatest = 14; * @param value The skipToLatest to set. * @return This builder for chaining. */ public Builder setSkipToLatest(boolean value) { skipToLatest_ = value; onChanged(); return this; } /** * bool skipToLatest = 14; * @return This builder for chaining. */ public Builder clearSkipToLatest() { skipToLatest_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.SourceSpec) } // @@protoc_insertion_point(class_scope:proto.SourceSpec) private static final org.apache.pulsar.functions.proto.Function.SourceSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.pulsar.functions.proto.Function.SourceSpec(); } public static org.apache.pulsar.functions.proto.Function.SourceSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SourceSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.SourceSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SinkSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.SinkSpec) com.google.protobuf.MessageOrBuilder { /** * string className = 1; * @return The className. */ java.lang.String getClassName(); /** * string className = 1; * @return The bytes for className. */ com.google.protobuf.ByteString getClassNameBytes(); /** *
     * map in json format
     * 
* * string configs = 2; * @return The configs. */ java.lang.String getConfigs(); /** *
     * map in json format
     * 
* * string configs = 2; * @return The bytes for configs. */ com.google.protobuf.ByteString getConfigsBytes(); /** * string typeClassName = 5; * @return The typeClassName. */ java.lang.String getTypeClassName(); /** * string typeClassName = 5; * @return The bytes for typeClassName. */ com.google.protobuf.ByteString getTypeClassNameBytes(); /** *
     * configs used only when functions output to sink
     * 
* * string topic = 3; * @return The topic. */ java.lang.String getTopic(); /** *
     * configs used only when functions output to sink
     * 
* * string topic = 3; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * .proto.ProducerSpec producerSpec = 11; * @return Whether the producerSpec field is set. */ boolean hasProducerSpec(); /** * .proto.ProducerSpec producerSpec = 11; * @return The producerSpec. */ org.apache.pulsar.functions.proto.Function.ProducerSpec getProducerSpec(); /** * .proto.ProducerSpec producerSpec = 11; */ org.apache.pulsar.functions.proto.Function.ProducerSpecOrBuilder getProducerSpecOrBuilder(); /** * string serDeClassName = 4; * @return The serDeClassName. */ java.lang.String getSerDeClassName(); /** * string serDeClassName = 4; * @return The bytes for serDeClassName. */ com.google.protobuf.ByteString getSerDeClassNameBytes(); /** *
     * If specified, this will refer to an archive that is
     * already present in the server 
     * 
* * string builtin = 6; * @return The builtin. */ java.lang.String getBuiltin(); /** *
     * If specified, this will refer to an archive that is
     * already present in the server 
     * 
* * string builtin = 6; * @return The bytes for builtin. */ com.google.protobuf.ByteString getBuiltinBytes(); /** *
     **
     * Builtin schema type or custom schema class name
     * 
* * string schemaType = 7; * @return The schemaType. */ java.lang.String getSchemaType(); /** *
     **
     * Builtin schema type or custom schema class name
     * 
* * string schemaType = 7; * @return The bytes for schemaType. */ com.google.protobuf.ByteString getSchemaTypeBytes(); /** * bool forwardSourceMessageProperty = 8; * @return The forwardSourceMessageProperty. */ boolean getForwardSourceMessageProperty(); /** * map<string, string> schemaProperties = 9; */ int getSchemaPropertiesCount(); /** * map<string, string> schemaProperties = 9; */ boolean containsSchemaProperties( java.lang.String key); /** * Use {@link #getSchemaPropertiesMap()} instead. */ @java.lang.Deprecated java.util.Map getSchemaProperties(); /** * map<string, string> schemaProperties = 9; */ java.util.Map getSchemaPropertiesMap(); /** * map<string, string> schemaProperties = 9; */ java.lang.String getSchemaPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue); /** * map<string, string> schemaProperties = 9; */ java.lang.String getSchemaPropertiesOrThrow( java.lang.String key); /** * map<string, string> consumerProperties = 10; */ int getConsumerPropertiesCount(); /** * map<string, string> consumerProperties = 10; */ boolean containsConsumerProperties( java.lang.String key); /** * Use {@link #getConsumerPropertiesMap()} instead. */ @java.lang.Deprecated java.util.Map getConsumerProperties(); /** * map<string, string> consumerProperties = 10; */ java.util.Map getConsumerPropertiesMap(); /** * map<string, string> consumerProperties = 10; */ java.lang.String getConsumerPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue); /** * map<string, string> consumerProperties = 10; */ java.lang.String getConsumerPropertiesOrThrow( java.lang.String key); } /** * Protobuf type {@code proto.SinkSpec} */ public static final class SinkSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SinkSpec) SinkSpecOrBuilder { private static final long serialVersionUID = 0L; // Use SinkSpec.newBuilder() to construct. private SinkSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SinkSpec() { className_ = ""; configs_ = ""; typeClassName_ = ""; topic_ = ""; serDeClassName_ = ""; builtin_ = ""; schemaType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SinkSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_SinkSpec_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 9: return internalGetSchemaProperties(); case 10: return internalGetConsumerProperties(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_SinkSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.SinkSpec.class, org.apache.pulsar.functions.proto.Function.SinkSpec.Builder.class); } public static final int CLASSNAME_FIELD_NUMBER = 1; private volatile java.lang.Object className_; /** * string className = 1; * @return The className. */ @java.lang.Override public java.lang.String getClassName() { java.lang.Object ref = className_; 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(); className_ = s; return s; } } /** * string className = 1; * @return The bytes for className. */ @java.lang.Override public com.google.protobuf.ByteString getClassNameBytes() { java.lang.Object ref = className_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); className_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONFIGS_FIELD_NUMBER = 2; private volatile java.lang.Object configs_; /** *
     * map in json format
     * 
* * string configs = 2; * @return The configs. */ @java.lang.Override public java.lang.String getConfigs() { java.lang.Object ref = configs_; 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(); configs_ = s; return s; } } /** *
     * map in json format
     * 
* * string configs = 2; * @return The bytes for configs. */ @java.lang.Override public com.google.protobuf.ByteString getConfigsBytes() { java.lang.Object ref = configs_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); configs_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPECLASSNAME_FIELD_NUMBER = 5; private volatile java.lang.Object typeClassName_; /** * string typeClassName = 5; * @return The typeClassName. */ @java.lang.Override public java.lang.String getTypeClassName() { java.lang.Object ref = typeClassName_; 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(); typeClassName_ = s; return s; } } /** * string typeClassName = 5; * @return The bytes for typeClassName. */ @java.lang.Override public com.google.protobuf.ByteString getTypeClassNameBytes() { java.lang.Object ref = typeClassName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOPIC_FIELD_NUMBER = 3; private volatile java.lang.Object topic_; /** *
     * configs used only when functions output to sink
     * 
* * string topic = 3; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { java.lang.Object ref = topic_; 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(); topic_ = s; return s; } } /** *
     * configs used only when functions output to sink
     * 
* * string topic = 3; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); topic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRODUCERSPEC_FIELD_NUMBER = 11; private org.apache.pulsar.functions.proto.Function.ProducerSpec producerSpec_; /** * .proto.ProducerSpec producerSpec = 11; * @return Whether the producerSpec field is set. */ @java.lang.Override public boolean hasProducerSpec() { return producerSpec_ != null; } /** * .proto.ProducerSpec producerSpec = 11; * @return The producerSpec. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.ProducerSpec getProducerSpec() { return producerSpec_ == null ? org.apache.pulsar.functions.proto.Function.ProducerSpec.getDefaultInstance() : producerSpec_; } /** * .proto.ProducerSpec producerSpec = 11; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.ProducerSpecOrBuilder getProducerSpecOrBuilder() { return getProducerSpec(); } public static final int SERDECLASSNAME_FIELD_NUMBER = 4; private volatile java.lang.Object serDeClassName_; /** * string serDeClassName = 4; * @return The serDeClassName. */ @java.lang.Override public java.lang.String getSerDeClassName() { java.lang.Object ref = serDeClassName_; 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(); serDeClassName_ = s; return s; } } /** * string serDeClassName = 4; * @return The bytes for serDeClassName. */ @java.lang.Override public com.google.protobuf.ByteString getSerDeClassNameBytes() { java.lang.Object ref = serDeClassName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serDeClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUILTIN_FIELD_NUMBER = 6; private volatile java.lang.Object builtin_; /** *
     * If specified, this will refer to an archive that is
     * already present in the server 
     * 
* * string builtin = 6; * @return The builtin. */ @java.lang.Override public java.lang.String getBuiltin() { java.lang.Object ref = builtin_; 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(); builtin_ = s; return s; } } /** *
     * If specified, this will refer to an archive that is
     * already present in the server 
     * 
* * string builtin = 6; * @return The bytes for builtin. */ @java.lang.Override public com.google.protobuf.ByteString getBuiltinBytes() { java.lang.Object ref = builtin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); builtin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCHEMATYPE_FIELD_NUMBER = 7; private volatile java.lang.Object schemaType_; /** *
     **
     * Builtin schema type or custom schema class name
     * 
* * string schemaType = 7; * @return The schemaType. */ @java.lang.Override public java.lang.String getSchemaType() { java.lang.Object ref = schemaType_; 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(); schemaType_ = s; return s; } } /** *
     **
     * Builtin schema type or custom schema class name
     * 
* * string schemaType = 7; * @return The bytes for schemaType. */ @java.lang.Override public com.google.protobuf.ByteString getSchemaTypeBytes() { java.lang.Object ref = schemaType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FORWARDSOURCEMESSAGEPROPERTY_FIELD_NUMBER = 8; private boolean forwardSourceMessageProperty_; /** * bool forwardSourceMessageProperty = 8; * @return The forwardSourceMessageProperty. */ @java.lang.Override public boolean getForwardSourceMessageProperty() { return forwardSourceMessageProperty_; } public static final int SCHEMAPROPERTIES_FIELD_NUMBER = 9; private static final class SchemaPropertiesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.apache.pulsar.functions.proto.Function.internal_static_proto_SinkSpec_SchemaPropertiesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> schemaProperties_; private com.google.protobuf.MapField internalGetSchemaProperties() { if (schemaProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SchemaPropertiesDefaultEntryHolder.defaultEntry); } return schemaProperties_; } public int getSchemaPropertiesCount() { return internalGetSchemaProperties().getMap().size(); } /** * map<string, string> schemaProperties = 9; */ @java.lang.Override public boolean containsSchemaProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetSchemaProperties().getMap().containsKey(key); } /** * Use {@link #getSchemaPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getSchemaProperties() { return getSchemaPropertiesMap(); } /** * map<string, string> schemaProperties = 9; */ @java.lang.Override public java.util.Map getSchemaPropertiesMap() { return internalGetSchemaProperties().getMap(); } /** * map<string, string> schemaProperties = 9; */ @java.lang.Override public java.lang.String getSchemaPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetSchemaProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> schemaProperties = 9; */ @java.lang.Override public java.lang.String getSchemaPropertiesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetSchemaProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CONSUMERPROPERTIES_FIELD_NUMBER = 10; private static final class ConsumerPropertiesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.apache.pulsar.functions.proto.Function.internal_static_proto_SinkSpec_ConsumerPropertiesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> consumerProperties_; private com.google.protobuf.MapField internalGetConsumerProperties() { if (consumerProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ConsumerPropertiesDefaultEntryHolder.defaultEntry); } return consumerProperties_; } public int getConsumerPropertiesCount() { return internalGetConsumerProperties().getMap().size(); } /** * map<string, string> consumerProperties = 10; */ @java.lang.Override public boolean containsConsumerProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetConsumerProperties().getMap().containsKey(key); } /** * Use {@link #getConsumerPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConsumerProperties() { return getConsumerPropertiesMap(); } /** * map<string, string> consumerProperties = 10; */ @java.lang.Override public java.util.Map getConsumerPropertiesMap() { return internalGetConsumerProperties().getMap(); } /** * map<string, string> consumerProperties = 10; */ @java.lang.Override public java.lang.String getConsumerPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConsumerProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> consumerProperties = 10; */ @java.lang.Override public java.lang.String getConsumerPropertiesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConsumerProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, className_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configs_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, configs_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topic_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serDeClassName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, serDeClassName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeClassName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, typeClassName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(builtin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, builtin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, schemaType_); } if (forwardSourceMessageProperty_ != false) { output.writeBool(8, forwardSourceMessageProperty_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetSchemaProperties(), SchemaPropertiesDefaultEntryHolder.defaultEntry, 9); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetConsumerProperties(), ConsumerPropertiesDefaultEntryHolder.defaultEntry, 10); if (producerSpec_ != null) { output.writeMessage(11, getProducerSpec()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, className_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configs_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, configs_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, topic_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serDeClassName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, serDeClassName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeClassName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, typeClassName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(builtin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, builtin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, schemaType_); } if (forwardSourceMessageProperty_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, forwardSourceMessageProperty_); } for (java.util.Map.Entry entry : internalGetSchemaProperties().getMap().entrySet()) { com.google.protobuf.MapEntry schemaProperties__ = SchemaPropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, schemaProperties__); } for (java.util.Map.Entry entry : internalGetConsumerProperties().getMap().entrySet()) { com.google.protobuf.MapEntry consumerProperties__ = ConsumerPropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, consumerProperties__); } if (producerSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getProducerSpec()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.pulsar.functions.proto.Function.SinkSpec)) { return super.equals(obj); } org.apache.pulsar.functions.proto.Function.SinkSpec other = (org.apache.pulsar.functions.proto.Function.SinkSpec) obj; if (!getClassName() .equals(other.getClassName())) return false; if (!getConfigs() .equals(other.getConfigs())) return false; if (!getTypeClassName() .equals(other.getTypeClassName())) return false; if (!getTopic() .equals(other.getTopic())) return false; if (hasProducerSpec() != other.hasProducerSpec()) return false; if (hasProducerSpec()) { if (!getProducerSpec() .equals(other.getProducerSpec())) return false; } if (!getSerDeClassName() .equals(other.getSerDeClassName())) return false; if (!getBuiltin() .equals(other.getBuiltin())) return false; if (!getSchemaType() .equals(other.getSchemaType())) return false; if (getForwardSourceMessageProperty() != other.getForwardSourceMessageProperty()) return false; if (!internalGetSchemaProperties().equals( other.internalGetSchemaProperties())) return false; if (!internalGetConsumerProperties().equals( other.internalGetConsumerProperties())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getClassName().hashCode(); hash = (37 * hash) + CONFIGS_FIELD_NUMBER; hash = (53 * hash) + getConfigs().hashCode(); hash = (37 * hash) + TYPECLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getTypeClassName().hashCode(); hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); if (hasProducerSpec()) { hash = (37 * hash) + PRODUCERSPEC_FIELD_NUMBER; hash = (53 * hash) + getProducerSpec().hashCode(); } hash = (37 * hash) + SERDECLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getSerDeClassName().hashCode(); hash = (37 * hash) + BUILTIN_FIELD_NUMBER; hash = (53 * hash) + getBuiltin().hashCode(); hash = (37 * hash) + SCHEMATYPE_FIELD_NUMBER; hash = (53 * hash) + getSchemaType().hashCode(); hash = (37 * hash) + FORWARDSOURCEMESSAGEPROPERTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForwardSourceMessageProperty()); if (!internalGetSchemaProperties().getMap().isEmpty()) { hash = (37 * hash) + SCHEMAPROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetSchemaProperties().hashCode(); } if (!internalGetConsumerProperties().getMap().isEmpty()) { hash = (37 * hash) + CONSUMERPROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetConsumerProperties().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.pulsar.functions.proto.Function.SinkSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.SinkSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.SinkSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.SinkSpec 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.pulsar.functions.proto.Function.SinkSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.SinkSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.SinkSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.SinkSpec 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.pulsar.functions.proto.Function.SinkSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.SinkSpec 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.pulsar.functions.proto.Function.SinkSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.SinkSpec 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.pulsar.functions.proto.Function.SinkSpec 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 proto.SinkSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SinkSpec) org.apache.pulsar.functions.proto.Function.SinkSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_SinkSpec_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 9: return internalGetSchemaProperties(); case 10: return internalGetConsumerProperties(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 9: return internalGetMutableSchemaProperties(); case 10: return internalGetMutableConsumerProperties(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_SinkSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.SinkSpec.class, org.apache.pulsar.functions.proto.Function.SinkSpec.Builder.class); } // Construct using org.apache.pulsar.functions.proto.Function.SinkSpec.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); className_ = ""; configs_ = ""; typeClassName_ = ""; topic_ = ""; if (producerSpecBuilder_ == null) { producerSpec_ = null; } else { producerSpec_ = null; producerSpecBuilder_ = null; } serDeClassName_ = ""; builtin_ = ""; schemaType_ = ""; forwardSourceMessageProperty_ = false; internalGetMutableSchemaProperties().clear(); internalGetMutableConsumerProperties().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_SinkSpec_descriptor; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.SinkSpec getDefaultInstanceForType() { return org.apache.pulsar.functions.proto.Function.SinkSpec.getDefaultInstance(); } @java.lang.Override public org.apache.pulsar.functions.proto.Function.SinkSpec build() { org.apache.pulsar.functions.proto.Function.SinkSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.SinkSpec buildPartial() { org.apache.pulsar.functions.proto.Function.SinkSpec result = new org.apache.pulsar.functions.proto.Function.SinkSpec(this); int from_bitField0_ = bitField0_; result.className_ = className_; result.configs_ = configs_; result.typeClassName_ = typeClassName_; result.topic_ = topic_; if (producerSpecBuilder_ == null) { result.producerSpec_ = producerSpec_; } else { result.producerSpec_ = producerSpecBuilder_.build(); } result.serDeClassName_ = serDeClassName_; result.builtin_ = builtin_; result.schemaType_ = schemaType_; result.forwardSourceMessageProperty_ = forwardSourceMessageProperty_; result.schemaProperties_ = internalGetSchemaProperties(); result.schemaProperties_.makeImmutable(); result.consumerProperties_ = internalGetConsumerProperties(); result.consumerProperties_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.pulsar.functions.proto.Function.SinkSpec) { return mergeFrom((org.apache.pulsar.functions.proto.Function.SinkSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.pulsar.functions.proto.Function.SinkSpec other) { if (other == org.apache.pulsar.functions.proto.Function.SinkSpec.getDefaultInstance()) return this; if (!other.getClassName().isEmpty()) { className_ = other.className_; onChanged(); } if (!other.getConfigs().isEmpty()) { configs_ = other.configs_; onChanged(); } if (!other.getTypeClassName().isEmpty()) { typeClassName_ = other.typeClassName_; onChanged(); } if (!other.getTopic().isEmpty()) { topic_ = other.topic_; onChanged(); } if (other.hasProducerSpec()) { mergeProducerSpec(other.getProducerSpec()); } if (!other.getSerDeClassName().isEmpty()) { serDeClassName_ = other.serDeClassName_; onChanged(); } if (!other.getBuiltin().isEmpty()) { builtin_ = other.builtin_; onChanged(); } if (!other.getSchemaType().isEmpty()) { schemaType_ = other.schemaType_; onChanged(); } if (other.getForwardSourceMessageProperty() != false) { setForwardSourceMessageProperty(other.getForwardSourceMessageProperty()); } internalGetMutableSchemaProperties().mergeFrom( other.internalGetSchemaProperties()); internalGetMutableConsumerProperties().mergeFrom( other.internalGetConsumerProperties()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { className_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { configs_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { topic_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { serDeClassName_ = input.readStringRequireUtf8(); break; } // case 34 case 42: { typeClassName_ = input.readStringRequireUtf8(); break; } // case 42 case 50: { builtin_ = input.readStringRequireUtf8(); break; } // case 50 case 58: { schemaType_ = input.readStringRequireUtf8(); break; } // case 58 case 64: { forwardSourceMessageProperty_ = input.readBool(); break; } // case 64 case 74: { com.google.protobuf.MapEntry schemaProperties__ = input.readMessage( SchemaPropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableSchemaProperties().getMutableMap().put( schemaProperties__.getKey(), schemaProperties__.getValue()); break; } // case 74 case 82: { com.google.protobuf.MapEntry consumerProperties__ = input.readMessage( ConsumerPropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableConsumerProperties().getMutableMap().put( consumerProperties__.getKey(), consumerProperties__.getValue()); break; } // case 82 case 90: { input.readMessage( getProducerSpecFieldBuilder().getBuilder(), extensionRegistry); break; } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object className_ = ""; /** * string className = 1; * @return The className. */ public java.lang.String getClassName() { java.lang.Object ref = className_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); className_ = s; return s; } else { return (java.lang.String) ref; } } /** * string className = 1; * @return The bytes for className. */ public com.google.protobuf.ByteString getClassNameBytes() { java.lang.Object ref = className_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); className_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string className = 1; * @param value The className to set. * @return This builder for chaining. */ public Builder setClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } className_ = value; onChanged(); return this; } /** * string className = 1; * @return This builder for chaining. */ public Builder clearClassName() { className_ = getDefaultInstance().getClassName(); onChanged(); return this; } /** * string className = 1; * @param value The bytes for className to set. * @return This builder for chaining. */ public Builder setClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); className_ = value; onChanged(); return this; } private java.lang.Object configs_ = ""; /** *
       * map in json format
       * 
* * string configs = 2; * @return The configs. */ public java.lang.String getConfigs() { java.lang.Object ref = configs_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configs_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * map in json format
       * 
* * string configs = 2; * @return The bytes for configs. */ public com.google.protobuf.ByteString getConfigsBytes() { java.lang.Object ref = configs_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); configs_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * map in json format
       * 
* * string configs = 2; * @param value The configs to set. * @return This builder for chaining. */ public Builder setConfigs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } configs_ = value; onChanged(); return this; } /** *
       * map in json format
       * 
* * string configs = 2; * @return This builder for chaining. */ public Builder clearConfigs() { configs_ = getDefaultInstance().getConfigs(); onChanged(); return this; } /** *
       * map in json format
       * 
* * string configs = 2; * @param value The bytes for configs to set. * @return This builder for chaining. */ public Builder setConfigsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); configs_ = value; onChanged(); return this; } private java.lang.Object typeClassName_ = ""; /** * string typeClassName = 5; * @return The typeClassName. */ public java.lang.String getTypeClassName() { java.lang.Object ref = typeClassName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeClassName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string typeClassName = 5; * @return The bytes for typeClassName. */ public com.google.protobuf.ByteString getTypeClassNameBytes() { java.lang.Object ref = typeClassName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string typeClassName = 5; * @param value The typeClassName to set. * @return This builder for chaining. */ public Builder setTypeClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeClassName_ = value; onChanged(); return this; } /** * string typeClassName = 5; * @return This builder for chaining. */ public Builder clearTypeClassName() { typeClassName_ = getDefaultInstance().getTypeClassName(); onChanged(); return this; } /** * string typeClassName = 5; * @param value The bytes for typeClassName to set. * @return This builder for chaining. */ public Builder setTypeClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeClassName_ = value; onChanged(); return this; } private java.lang.Object topic_ = ""; /** *
       * configs used only when functions output to sink
       * 
* * string topic = 3; * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * configs used only when functions output to sink
       * 
* * string topic = 3; * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); topic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * configs used only when functions output to sink
       * 
* * string topic = 3; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { if (value == null) { throw new NullPointerException(); } topic_ = value; onChanged(); return this; } /** *
       * configs used only when functions output to sink
       * 
* * string topic = 3; * @return This builder for chaining. */ public Builder clearTopic() { topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** *
       * configs used only when functions output to sink
       * 
* * string topic = 3; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; onChanged(); return this; } private org.apache.pulsar.functions.proto.Function.ProducerSpec producerSpec_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.ProducerSpec, org.apache.pulsar.functions.proto.Function.ProducerSpec.Builder, org.apache.pulsar.functions.proto.Function.ProducerSpecOrBuilder> producerSpecBuilder_; /** * .proto.ProducerSpec producerSpec = 11; * @return Whether the producerSpec field is set. */ public boolean hasProducerSpec() { return producerSpecBuilder_ != null || producerSpec_ != null; } /** * .proto.ProducerSpec producerSpec = 11; * @return The producerSpec. */ public org.apache.pulsar.functions.proto.Function.ProducerSpec getProducerSpec() { if (producerSpecBuilder_ == null) { return producerSpec_ == null ? org.apache.pulsar.functions.proto.Function.ProducerSpec.getDefaultInstance() : producerSpec_; } else { return producerSpecBuilder_.getMessage(); } } /** * .proto.ProducerSpec producerSpec = 11; */ public Builder setProducerSpec(org.apache.pulsar.functions.proto.Function.ProducerSpec value) { if (producerSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } producerSpec_ = value; onChanged(); } else { producerSpecBuilder_.setMessage(value); } return this; } /** * .proto.ProducerSpec producerSpec = 11; */ public Builder setProducerSpec( org.apache.pulsar.functions.proto.Function.ProducerSpec.Builder builderForValue) { if (producerSpecBuilder_ == null) { producerSpec_ = builderForValue.build(); onChanged(); } else { producerSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.ProducerSpec producerSpec = 11; */ public Builder mergeProducerSpec(org.apache.pulsar.functions.proto.Function.ProducerSpec value) { if (producerSpecBuilder_ == null) { if (producerSpec_ != null) { producerSpec_ = org.apache.pulsar.functions.proto.Function.ProducerSpec.newBuilder(producerSpec_).mergeFrom(value).buildPartial(); } else { producerSpec_ = value; } onChanged(); } else { producerSpecBuilder_.mergeFrom(value); } return this; } /** * .proto.ProducerSpec producerSpec = 11; */ public Builder clearProducerSpec() { if (producerSpecBuilder_ == null) { producerSpec_ = null; onChanged(); } else { producerSpec_ = null; producerSpecBuilder_ = null; } return this; } /** * .proto.ProducerSpec producerSpec = 11; */ public org.apache.pulsar.functions.proto.Function.ProducerSpec.Builder getProducerSpecBuilder() { onChanged(); return getProducerSpecFieldBuilder().getBuilder(); } /** * .proto.ProducerSpec producerSpec = 11; */ public org.apache.pulsar.functions.proto.Function.ProducerSpecOrBuilder getProducerSpecOrBuilder() { if (producerSpecBuilder_ != null) { return producerSpecBuilder_.getMessageOrBuilder(); } else { return producerSpec_ == null ? org.apache.pulsar.functions.proto.Function.ProducerSpec.getDefaultInstance() : producerSpec_; } } /** * .proto.ProducerSpec producerSpec = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.ProducerSpec, org.apache.pulsar.functions.proto.Function.ProducerSpec.Builder, org.apache.pulsar.functions.proto.Function.ProducerSpecOrBuilder> getProducerSpecFieldBuilder() { if (producerSpecBuilder_ == null) { producerSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.ProducerSpec, org.apache.pulsar.functions.proto.Function.ProducerSpec.Builder, org.apache.pulsar.functions.proto.Function.ProducerSpecOrBuilder>( getProducerSpec(), getParentForChildren(), isClean()); producerSpec_ = null; } return producerSpecBuilder_; } private java.lang.Object serDeClassName_ = ""; /** * string serDeClassName = 4; * @return The serDeClassName. */ public java.lang.String getSerDeClassName() { java.lang.Object ref = serDeClassName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serDeClassName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string serDeClassName = 4; * @return The bytes for serDeClassName. */ public com.google.protobuf.ByteString getSerDeClassNameBytes() { java.lang.Object ref = serDeClassName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serDeClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string serDeClassName = 4; * @param value The serDeClassName to set. * @return This builder for chaining. */ public Builder setSerDeClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serDeClassName_ = value; onChanged(); return this; } /** * string serDeClassName = 4; * @return This builder for chaining. */ public Builder clearSerDeClassName() { serDeClassName_ = getDefaultInstance().getSerDeClassName(); onChanged(); return this; } /** * string serDeClassName = 4; * @param value The bytes for serDeClassName to set. * @return This builder for chaining. */ public Builder setSerDeClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serDeClassName_ = value; onChanged(); return this; } private java.lang.Object builtin_ = ""; /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 6; * @return The builtin. */ public java.lang.String getBuiltin() { java.lang.Object ref = builtin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); builtin_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 6; * @return The bytes for builtin. */ public com.google.protobuf.ByteString getBuiltinBytes() { java.lang.Object ref = builtin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); builtin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 6; * @param value The builtin to set. * @return This builder for chaining. */ public Builder setBuiltin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } builtin_ = value; onChanged(); return this; } /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 6; * @return This builder for chaining. */ public Builder clearBuiltin() { builtin_ = getDefaultInstance().getBuiltin(); onChanged(); return this; } /** *
       * If specified, this will refer to an archive that is
       * already present in the server 
       * 
* * string builtin = 6; * @param value The bytes for builtin to set. * @return This builder for chaining. */ public Builder setBuiltinBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); builtin_ = value; onChanged(); return this; } private java.lang.Object schemaType_ = ""; /** *
       **
       * Builtin schema type or custom schema class name
       * 
* * string schemaType = 7; * @return The schemaType. */ public java.lang.String getSchemaType() { java.lang.Object ref = schemaType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       **
       * Builtin schema type or custom schema class name
       * 
* * string schemaType = 7; * @return The bytes for schemaType. */ public com.google.protobuf.ByteString getSchemaTypeBytes() { java.lang.Object ref = schemaType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       **
       * Builtin schema type or custom schema class name
       * 
* * string schemaType = 7; * @param value The schemaType to set. * @return This builder for chaining. */ public Builder setSchemaType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } schemaType_ = value; onChanged(); return this; } /** *
       **
       * Builtin schema type or custom schema class name
       * 
* * string schemaType = 7; * @return This builder for chaining. */ public Builder clearSchemaType() { schemaType_ = getDefaultInstance().getSchemaType(); onChanged(); return this; } /** *
       **
       * Builtin schema type or custom schema class name
       * 
* * string schemaType = 7; * @param value The bytes for schemaType to set. * @return This builder for chaining. */ public Builder setSchemaTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaType_ = value; onChanged(); return this; } private boolean forwardSourceMessageProperty_ ; /** * bool forwardSourceMessageProperty = 8; * @return The forwardSourceMessageProperty. */ @java.lang.Override public boolean getForwardSourceMessageProperty() { return forwardSourceMessageProperty_; } /** * bool forwardSourceMessageProperty = 8; * @param value The forwardSourceMessageProperty to set. * @return This builder for chaining. */ public Builder setForwardSourceMessageProperty(boolean value) { forwardSourceMessageProperty_ = value; onChanged(); return this; } /** * bool forwardSourceMessageProperty = 8; * @return This builder for chaining. */ public Builder clearForwardSourceMessageProperty() { forwardSourceMessageProperty_ = false; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> schemaProperties_; private com.google.protobuf.MapField internalGetSchemaProperties() { if (schemaProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SchemaPropertiesDefaultEntryHolder.defaultEntry); } return schemaProperties_; } private com.google.protobuf.MapField internalGetMutableSchemaProperties() { onChanged();; if (schemaProperties_ == null) { schemaProperties_ = com.google.protobuf.MapField.newMapField( SchemaPropertiesDefaultEntryHolder.defaultEntry); } if (!schemaProperties_.isMutable()) { schemaProperties_ = schemaProperties_.copy(); } return schemaProperties_; } public int getSchemaPropertiesCount() { return internalGetSchemaProperties().getMap().size(); } /** * map<string, string> schemaProperties = 9; */ @java.lang.Override public boolean containsSchemaProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetSchemaProperties().getMap().containsKey(key); } /** * Use {@link #getSchemaPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getSchemaProperties() { return getSchemaPropertiesMap(); } /** * map<string, string> schemaProperties = 9; */ @java.lang.Override public java.util.Map getSchemaPropertiesMap() { return internalGetSchemaProperties().getMap(); } /** * map<string, string> schemaProperties = 9; */ @java.lang.Override public java.lang.String getSchemaPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetSchemaProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> schemaProperties = 9; */ @java.lang.Override public java.lang.String getSchemaPropertiesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetSchemaProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearSchemaProperties() { internalGetMutableSchemaProperties().getMutableMap() .clear(); return this; } /** * map<string, string> schemaProperties = 9; */ public Builder removeSchemaProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableSchemaProperties().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSchemaProperties() { return internalGetMutableSchemaProperties().getMutableMap(); } /** * map<string, string> schemaProperties = 9; */ public Builder putSchemaProperties( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableSchemaProperties().getMutableMap() .put(key, value); return this; } /** * map<string, string> schemaProperties = 9; */ public Builder putAllSchemaProperties( java.util.Map values) { internalGetMutableSchemaProperties().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> consumerProperties_; private com.google.protobuf.MapField internalGetConsumerProperties() { if (consumerProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ConsumerPropertiesDefaultEntryHolder.defaultEntry); } return consumerProperties_; } private com.google.protobuf.MapField internalGetMutableConsumerProperties() { onChanged();; if (consumerProperties_ == null) { consumerProperties_ = com.google.protobuf.MapField.newMapField( ConsumerPropertiesDefaultEntryHolder.defaultEntry); } if (!consumerProperties_.isMutable()) { consumerProperties_ = consumerProperties_.copy(); } return consumerProperties_; } public int getConsumerPropertiesCount() { return internalGetConsumerProperties().getMap().size(); } /** * map<string, string> consumerProperties = 10; */ @java.lang.Override public boolean containsConsumerProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetConsumerProperties().getMap().containsKey(key); } /** * Use {@link #getConsumerPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConsumerProperties() { return getConsumerPropertiesMap(); } /** * map<string, string> consumerProperties = 10; */ @java.lang.Override public java.util.Map getConsumerPropertiesMap() { return internalGetConsumerProperties().getMap(); } /** * map<string, string> consumerProperties = 10; */ @java.lang.Override public java.lang.String getConsumerPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConsumerProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> consumerProperties = 10; */ @java.lang.Override public java.lang.String getConsumerPropertiesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConsumerProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearConsumerProperties() { internalGetMutableConsumerProperties().getMutableMap() .clear(); return this; } /** * map<string, string> consumerProperties = 10; */ public Builder removeConsumerProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableConsumerProperties().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableConsumerProperties() { return internalGetMutableConsumerProperties().getMutableMap(); } /** * map<string, string> consumerProperties = 10; */ public Builder putConsumerProperties( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableConsumerProperties().getMutableMap() .put(key, value); return this; } /** * map<string, string> consumerProperties = 10; */ public Builder putAllConsumerProperties( java.util.Map values) { internalGetMutableConsumerProperties().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.SinkSpec) } // @@protoc_insertion_point(class_scope:proto.SinkSpec) private static final org.apache.pulsar.functions.proto.Function.SinkSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.pulsar.functions.proto.Function.SinkSpec(); } public static org.apache.pulsar.functions.proto.Function.SinkSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SinkSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.SinkSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PackageLocationMetaDataOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.PackageLocationMetaData) com.google.protobuf.MessageOrBuilder { /** * string packagePath = 1; * @return The packagePath. */ java.lang.String getPackagePath(); /** * string packagePath = 1; * @return The bytes for packagePath. */ com.google.protobuf.ByteString getPackagePathBytes(); /** * string originalFileName = 2; * @return The originalFileName. */ java.lang.String getOriginalFileName(); /** * string originalFileName = 2; * @return The bytes for originalFileName. */ com.google.protobuf.ByteString getOriginalFileNameBytes(); } /** * Protobuf type {@code proto.PackageLocationMetaData} */ public static final class PackageLocationMetaData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.PackageLocationMetaData) PackageLocationMetaDataOrBuilder { private static final long serialVersionUID = 0L; // Use PackageLocationMetaData.newBuilder() to construct. private PackageLocationMetaData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PackageLocationMetaData() { packagePath_ = ""; originalFileName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PackageLocationMetaData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_PackageLocationMetaData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_PackageLocationMetaData_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.class, org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.Builder.class); } public static final int PACKAGEPATH_FIELD_NUMBER = 1; private volatile java.lang.Object packagePath_; /** * string packagePath = 1; * @return The packagePath. */ @java.lang.Override public java.lang.String getPackagePath() { java.lang.Object ref = packagePath_; 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(); packagePath_ = s; return s; } } /** * string packagePath = 1; * @return The bytes for packagePath. */ @java.lang.Override public com.google.protobuf.ByteString getPackagePathBytes() { java.lang.Object ref = packagePath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packagePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORIGINALFILENAME_FIELD_NUMBER = 2; private volatile java.lang.Object originalFileName_; /** * string originalFileName = 2; * @return The originalFileName. */ @java.lang.Override public java.lang.String getOriginalFileName() { java.lang.Object ref = originalFileName_; 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(); originalFileName_ = s; return s; } } /** * string originalFileName = 2; * @return The bytes for originalFileName. */ @java.lang.Override public com.google.protobuf.ByteString getOriginalFileNameBytes() { java.lang.Object ref = originalFileName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originalFileName_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packagePath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packagePath_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalFileName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, originalFileName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packagePath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packagePath_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalFileName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, originalFileName_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.pulsar.functions.proto.Function.PackageLocationMetaData)) { return super.equals(obj); } org.apache.pulsar.functions.proto.Function.PackageLocationMetaData other = (org.apache.pulsar.functions.proto.Function.PackageLocationMetaData) obj; if (!getPackagePath() .equals(other.getPackagePath())) return false; if (!getOriginalFileName() .equals(other.getOriginalFileName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PACKAGEPATH_FIELD_NUMBER; hash = (53 * hash) + getPackagePath().hashCode(); hash = (37 * hash) + ORIGINALFILENAME_FIELD_NUMBER; hash = (53 * hash) + getOriginalFileName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.pulsar.functions.proto.Function.PackageLocationMetaData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.PackageLocationMetaData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.PackageLocationMetaData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.PackageLocationMetaData 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.pulsar.functions.proto.Function.PackageLocationMetaData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.PackageLocationMetaData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.PackageLocationMetaData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.PackageLocationMetaData 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.pulsar.functions.proto.Function.PackageLocationMetaData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.PackageLocationMetaData 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.pulsar.functions.proto.Function.PackageLocationMetaData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.PackageLocationMetaData 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.pulsar.functions.proto.Function.PackageLocationMetaData 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 proto.PackageLocationMetaData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.PackageLocationMetaData) org.apache.pulsar.functions.proto.Function.PackageLocationMetaDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_PackageLocationMetaData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_PackageLocationMetaData_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.class, org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.Builder.class); } // Construct using org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); packagePath_ = ""; originalFileName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_PackageLocationMetaData_descriptor; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.PackageLocationMetaData getDefaultInstanceForType() { return org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.getDefaultInstance(); } @java.lang.Override public org.apache.pulsar.functions.proto.Function.PackageLocationMetaData build() { org.apache.pulsar.functions.proto.Function.PackageLocationMetaData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.PackageLocationMetaData buildPartial() { org.apache.pulsar.functions.proto.Function.PackageLocationMetaData result = new org.apache.pulsar.functions.proto.Function.PackageLocationMetaData(this); result.packagePath_ = packagePath_; result.originalFileName_ = originalFileName_; 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.pulsar.functions.proto.Function.PackageLocationMetaData) { return mergeFrom((org.apache.pulsar.functions.proto.Function.PackageLocationMetaData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.pulsar.functions.proto.Function.PackageLocationMetaData other) { if (other == org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.getDefaultInstance()) return this; if (!other.getPackagePath().isEmpty()) { packagePath_ = other.packagePath_; onChanged(); } if (!other.getOriginalFileName().isEmpty()) { originalFileName_ = other.originalFileName_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { packagePath_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { originalFileName_ = input.readStringRequireUtf8(); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private java.lang.Object packagePath_ = ""; /** * string packagePath = 1; * @return The packagePath. */ public java.lang.String getPackagePath() { java.lang.Object ref = packagePath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); packagePath_ = s; return s; } else { return (java.lang.String) ref; } } /** * string packagePath = 1; * @return The bytes for packagePath. */ public com.google.protobuf.ByteString getPackagePathBytes() { java.lang.Object ref = packagePath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packagePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string packagePath = 1; * @param value The packagePath to set. * @return This builder for chaining. */ public Builder setPackagePath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } packagePath_ = value; onChanged(); return this; } /** * string packagePath = 1; * @return This builder for chaining. */ public Builder clearPackagePath() { packagePath_ = getDefaultInstance().getPackagePath(); onChanged(); return this; } /** * string packagePath = 1; * @param value The bytes for packagePath to set. * @return This builder for chaining. */ public Builder setPackagePathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); packagePath_ = value; onChanged(); return this; } private java.lang.Object originalFileName_ = ""; /** * string originalFileName = 2; * @return The originalFileName. */ public java.lang.String getOriginalFileName() { java.lang.Object ref = originalFileName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalFileName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string originalFileName = 2; * @return The bytes for originalFileName. */ public com.google.protobuf.ByteString getOriginalFileNameBytes() { java.lang.Object ref = originalFileName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originalFileName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string originalFileName = 2; * @param value The originalFileName to set. * @return This builder for chaining. */ public Builder setOriginalFileName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } originalFileName_ = value; onChanged(); return this; } /** * string originalFileName = 2; * @return This builder for chaining. */ public Builder clearOriginalFileName() { originalFileName_ = getDefaultInstance().getOriginalFileName(); onChanged(); return this; } /** * string originalFileName = 2; * @param value The bytes for originalFileName to set. * @return This builder for chaining. */ public Builder setOriginalFileNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); originalFileName_ = 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:proto.PackageLocationMetaData) } // @@protoc_insertion_point(class_scope:proto.PackageLocationMetaData) private static final org.apache.pulsar.functions.proto.Function.PackageLocationMetaData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.pulsar.functions.proto.Function.PackageLocationMetaData(); } public static org.apache.pulsar.functions.proto.Function.PackageLocationMetaData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PackageLocationMetaData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.PackageLocationMetaData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FunctionMetaDataOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FunctionMetaData) com.google.protobuf.MessageOrBuilder { /** * .proto.FunctionDetails functionDetails = 1; * @return Whether the functionDetails field is set. */ boolean hasFunctionDetails(); /** * .proto.FunctionDetails functionDetails = 1; * @return The functionDetails. */ org.apache.pulsar.functions.proto.Function.FunctionDetails getFunctionDetails(); /** * .proto.FunctionDetails functionDetails = 1; */ org.apache.pulsar.functions.proto.Function.FunctionDetailsOrBuilder getFunctionDetailsOrBuilder(); /** * .proto.PackageLocationMetaData packageLocation = 2; * @return Whether the packageLocation field is set. */ boolean hasPackageLocation(); /** * .proto.PackageLocationMetaData packageLocation = 2; * @return The packageLocation. */ org.apache.pulsar.functions.proto.Function.PackageLocationMetaData getPackageLocation(); /** * .proto.PackageLocationMetaData packageLocation = 2; */ org.apache.pulsar.functions.proto.Function.PackageLocationMetaDataOrBuilder getPackageLocationOrBuilder(); /** * uint64 version = 3; * @return The version. */ long getVersion(); /** * uint64 createTime = 4; * @return The createTime. */ long getCreateTime(); /** * map<int32, .proto.FunctionState> instanceStates = 5; */ int getInstanceStatesCount(); /** * map<int32, .proto.FunctionState> instanceStates = 5; */ boolean containsInstanceStates( int key); /** * Use {@link #getInstanceStatesMap()} instead. */ @java.lang.Deprecated java.util.Map getInstanceStates(); /** * map<int32, .proto.FunctionState> instanceStates = 5; */ java.util.Map getInstanceStatesMap(); /** * map<int32, .proto.FunctionState> instanceStates = 5; */ org.apache.pulsar.functions.proto.Function.FunctionState getInstanceStatesOrDefault( int key, org.apache.pulsar.functions.proto.Function.FunctionState defaultValue); /** * map<int32, .proto.FunctionState> instanceStates = 5; */ org.apache.pulsar.functions.proto.Function.FunctionState getInstanceStatesOrThrow( int key); /** * Use {@link #getInstanceStatesValueMap()} instead. */ @java.lang.Deprecated java.util.Map getInstanceStatesValue(); /** * map<int32, .proto.FunctionState> instanceStates = 5; */ java.util.Map getInstanceStatesValueMap(); /** * map<int32, .proto.FunctionState> instanceStates = 5; */ int getInstanceStatesValueOrDefault( int key, int defaultValue); /** * map<int32, .proto.FunctionState> instanceStates = 5; */ int getInstanceStatesValueOrThrow( int key); /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; * @return Whether the functionAuthSpec field is set. */ boolean hasFunctionAuthSpec(); /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; * @return The functionAuthSpec. */ org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec getFunctionAuthSpec(); /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; */ org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpecOrBuilder getFunctionAuthSpecOrBuilder(); /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; * @return Whether the transformFunctionPackageLocation field is set. */ boolean hasTransformFunctionPackageLocation(); /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; * @return The transformFunctionPackageLocation. */ org.apache.pulsar.functions.proto.Function.PackageLocationMetaData getTransformFunctionPackageLocation(); /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; */ org.apache.pulsar.functions.proto.Function.PackageLocationMetaDataOrBuilder getTransformFunctionPackageLocationOrBuilder(); } /** * Protobuf type {@code proto.FunctionMetaData} */ public static final class FunctionMetaData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FunctionMetaData) FunctionMetaDataOrBuilder { private static final long serialVersionUID = 0L; // Use FunctionMetaData.newBuilder() to construct. private FunctionMetaData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FunctionMetaData() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FunctionMetaData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionMetaData_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetInstanceStates(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionMetaData_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.FunctionMetaData.class, org.apache.pulsar.functions.proto.Function.FunctionMetaData.Builder.class); } public static final int FUNCTIONDETAILS_FIELD_NUMBER = 1; private org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails_; /** * .proto.FunctionDetails functionDetails = 1; * @return Whether the functionDetails field is set. */ @java.lang.Override public boolean hasFunctionDetails() { return functionDetails_ != null; } /** * .proto.FunctionDetails functionDetails = 1; * @return The functionDetails. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionDetails getFunctionDetails() { return functionDetails_ == null ? org.apache.pulsar.functions.proto.Function.FunctionDetails.getDefaultInstance() : functionDetails_; } /** * .proto.FunctionDetails functionDetails = 1; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionDetailsOrBuilder getFunctionDetailsOrBuilder() { return getFunctionDetails(); } public static final int PACKAGELOCATION_FIELD_NUMBER = 2; private org.apache.pulsar.functions.proto.Function.PackageLocationMetaData packageLocation_; /** * .proto.PackageLocationMetaData packageLocation = 2; * @return Whether the packageLocation field is set. */ @java.lang.Override public boolean hasPackageLocation() { return packageLocation_ != null; } /** * .proto.PackageLocationMetaData packageLocation = 2; * @return The packageLocation. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.PackageLocationMetaData getPackageLocation() { return packageLocation_ == null ? org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.getDefaultInstance() : packageLocation_; } /** * .proto.PackageLocationMetaData packageLocation = 2; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.PackageLocationMetaDataOrBuilder getPackageLocationOrBuilder() { return getPackageLocation(); } public static final int VERSION_FIELD_NUMBER = 3; private long version_; /** * uint64 version = 3; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } public static final int CREATETIME_FIELD_NUMBER = 4; private long createTime_; /** * uint64 createTime = 4; * @return The createTime. */ @java.lang.Override public long getCreateTime() { return createTime_; } public static final int INSTANCESTATES_FIELD_NUMBER = 5; private static final class InstanceStatesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionMetaData_InstanceStatesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.ENUM, org.apache.pulsar.functions.proto.Function.FunctionState.RUNNING.getNumber()); } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> instanceStates_; private com.google.protobuf.MapField internalGetInstanceStates() { if (instanceStates_ == null) { return com.google.protobuf.MapField.emptyMapField( InstanceStatesDefaultEntryHolder.defaultEntry); } return instanceStates_; } private static final com.google.protobuf.Internal.MapAdapter.Converter< java.lang.Integer, org.apache.pulsar.functions.proto.Function.FunctionState> instanceStatesValueConverter = com.google.protobuf.Internal.MapAdapter.newEnumConverter( org.apache.pulsar.functions.proto.Function.FunctionState.internalGetValueMap(), org.apache.pulsar.functions.proto.Function.FunctionState.UNRECOGNIZED); private static final java.util.Map internalGetAdaptedInstanceStatesMap( java.util.Map map) { return new com.google.protobuf.Internal.MapAdapter< java.lang.Integer, org.apache.pulsar.functions.proto.Function.FunctionState, java.lang.Integer>( map, instanceStatesValueConverter); } public int getInstanceStatesCount() { return internalGetInstanceStates().getMap().size(); } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ @java.lang.Override public boolean containsInstanceStates( int key) { return internalGetInstanceStates().getMap().containsKey(key); } /** * Use {@link #getInstanceStatesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getInstanceStates() { return getInstanceStatesMap(); } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ @java.lang.Override public java.util.Map getInstanceStatesMap() { return internalGetAdaptedInstanceStatesMap( internalGetInstanceStates().getMap());} /** * map<int32, .proto.FunctionState> instanceStates = 5; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionState getInstanceStatesOrDefault( int key, org.apache.pulsar.functions.proto.Function.FunctionState defaultValue) { java.util.Map map = internalGetInstanceStates().getMap(); return map.containsKey(key) ? instanceStatesValueConverter.doForward(map.get(key)) : defaultValue; } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionState getInstanceStatesOrThrow( int key) { java.util.Map map = internalGetInstanceStates().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return instanceStatesValueConverter.doForward(map.get(key)); } /** * Use {@link #getInstanceStatesValueMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getInstanceStatesValue() { return getInstanceStatesValueMap(); } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ @java.lang.Override public java.util.Map getInstanceStatesValueMap() { return internalGetInstanceStates().getMap(); } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ @java.lang.Override public int getInstanceStatesValueOrDefault( int key, int defaultValue) { java.util.Map map = internalGetInstanceStates().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ @java.lang.Override public int getInstanceStatesValueOrThrow( int key) { java.util.Map map = internalGetInstanceStates().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int FUNCTIONAUTHSPEC_FIELD_NUMBER = 6; private org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec functionAuthSpec_; /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; * @return Whether the functionAuthSpec field is set. */ @java.lang.Override public boolean hasFunctionAuthSpec() { return functionAuthSpec_ != null; } /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; * @return The functionAuthSpec. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec getFunctionAuthSpec() { return functionAuthSpec_ == null ? org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.getDefaultInstance() : functionAuthSpec_; } /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpecOrBuilder getFunctionAuthSpecOrBuilder() { return getFunctionAuthSpec(); } public static final int TRANSFORMFUNCTIONPACKAGELOCATION_FIELD_NUMBER = 7; private org.apache.pulsar.functions.proto.Function.PackageLocationMetaData transformFunctionPackageLocation_; /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; * @return Whether the transformFunctionPackageLocation field is set. */ @java.lang.Override public boolean hasTransformFunctionPackageLocation() { return transformFunctionPackageLocation_ != null; } /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; * @return The transformFunctionPackageLocation. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.PackageLocationMetaData getTransformFunctionPackageLocation() { return transformFunctionPackageLocation_ == null ? org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.getDefaultInstance() : transformFunctionPackageLocation_; } /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.PackageLocationMetaDataOrBuilder getTransformFunctionPackageLocationOrBuilder() { return getTransformFunctionPackageLocation(); } 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 (functionDetails_ != null) { output.writeMessage(1, getFunctionDetails()); } if (packageLocation_ != null) { output.writeMessage(2, getPackageLocation()); } if (version_ != 0L) { output.writeUInt64(3, version_); } if (createTime_ != 0L) { output.writeUInt64(4, createTime_); } com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetInstanceStates(), InstanceStatesDefaultEntryHolder.defaultEntry, 5); if (functionAuthSpec_ != null) { output.writeMessage(6, getFunctionAuthSpec()); } if (transformFunctionPackageLocation_ != null) { output.writeMessage(7, getTransformFunctionPackageLocation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (functionDetails_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFunctionDetails()); } if (packageLocation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPackageLocation()); } if (version_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, version_); } if (createTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, createTime_); } for (java.util.Map.Entry entry : internalGetInstanceStates().getMap().entrySet()) { com.google.protobuf.MapEntry instanceStates__ = InstanceStatesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, instanceStates__); } if (functionAuthSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getFunctionAuthSpec()); } if (transformFunctionPackageLocation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getTransformFunctionPackageLocation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.pulsar.functions.proto.Function.FunctionMetaData)) { return super.equals(obj); } org.apache.pulsar.functions.proto.Function.FunctionMetaData other = (org.apache.pulsar.functions.proto.Function.FunctionMetaData) obj; if (hasFunctionDetails() != other.hasFunctionDetails()) return false; if (hasFunctionDetails()) { if (!getFunctionDetails() .equals(other.getFunctionDetails())) return false; } if (hasPackageLocation() != other.hasPackageLocation()) return false; if (hasPackageLocation()) { if (!getPackageLocation() .equals(other.getPackageLocation())) return false; } if (getVersion() != other.getVersion()) return false; if (getCreateTime() != other.getCreateTime()) return false; if (!internalGetInstanceStates().equals( other.internalGetInstanceStates())) return false; if (hasFunctionAuthSpec() != other.hasFunctionAuthSpec()) return false; if (hasFunctionAuthSpec()) { if (!getFunctionAuthSpec() .equals(other.getFunctionAuthSpec())) return false; } if (hasTransformFunctionPackageLocation() != other.hasTransformFunctionPackageLocation()) return false; if (hasTransformFunctionPackageLocation()) { if (!getTransformFunctionPackageLocation() .equals(other.getTransformFunctionPackageLocation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFunctionDetails()) { hash = (37 * hash) + FUNCTIONDETAILS_FIELD_NUMBER; hash = (53 * hash) + getFunctionDetails().hashCode(); } if (hasPackageLocation()) { hash = (37 * hash) + PACKAGELOCATION_FIELD_NUMBER; hash = (53 * hash) + getPackageLocation().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); hash = (37 * hash) + CREATETIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreateTime()); if (!internalGetInstanceStates().getMap().isEmpty()) { hash = (37 * hash) + INSTANCESTATES_FIELD_NUMBER; hash = (53 * hash) + internalGetInstanceStates().hashCode(); } if (hasFunctionAuthSpec()) { hash = (37 * hash) + FUNCTIONAUTHSPEC_FIELD_NUMBER; hash = (53 * hash) + getFunctionAuthSpec().hashCode(); } if (hasTransformFunctionPackageLocation()) { hash = (37 * hash) + TRANSFORMFUNCTIONPACKAGELOCATION_FIELD_NUMBER; hash = (53 * hash) + getTransformFunctionPackageLocation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.pulsar.functions.proto.Function.FunctionMetaData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.FunctionMetaData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.FunctionMetaData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.FunctionMetaData 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.pulsar.functions.proto.Function.FunctionMetaData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.FunctionMetaData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.FunctionMetaData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.FunctionMetaData 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.pulsar.functions.proto.Function.FunctionMetaData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.FunctionMetaData 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.pulsar.functions.proto.Function.FunctionMetaData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.FunctionMetaData 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.pulsar.functions.proto.Function.FunctionMetaData 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 proto.FunctionMetaData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FunctionMetaData) org.apache.pulsar.functions.proto.Function.FunctionMetaDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionMetaData_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetInstanceStates(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableInstanceStates(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionMetaData_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.FunctionMetaData.class, org.apache.pulsar.functions.proto.Function.FunctionMetaData.Builder.class); } // Construct using org.apache.pulsar.functions.proto.Function.FunctionMetaData.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (functionDetailsBuilder_ == null) { functionDetails_ = null; } else { functionDetails_ = null; functionDetailsBuilder_ = null; } if (packageLocationBuilder_ == null) { packageLocation_ = null; } else { packageLocation_ = null; packageLocationBuilder_ = null; } version_ = 0L; createTime_ = 0L; internalGetMutableInstanceStates().clear(); if (functionAuthSpecBuilder_ == null) { functionAuthSpec_ = null; } else { functionAuthSpec_ = null; functionAuthSpecBuilder_ = null; } if (transformFunctionPackageLocationBuilder_ == null) { transformFunctionPackageLocation_ = null; } else { transformFunctionPackageLocation_ = null; transformFunctionPackageLocationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionMetaData_descriptor; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionMetaData getDefaultInstanceForType() { return org.apache.pulsar.functions.proto.Function.FunctionMetaData.getDefaultInstance(); } @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionMetaData build() { org.apache.pulsar.functions.proto.Function.FunctionMetaData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionMetaData buildPartial() { org.apache.pulsar.functions.proto.Function.FunctionMetaData result = new org.apache.pulsar.functions.proto.Function.FunctionMetaData(this); int from_bitField0_ = bitField0_; if (functionDetailsBuilder_ == null) { result.functionDetails_ = functionDetails_; } else { result.functionDetails_ = functionDetailsBuilder_.build(); } if (packageLocationBuilder_ == null) { result.packageLocation_ = packageLocation_; } else { result.packageLocation_ = packageLocationBuilder_.build(); } result.version_ = version_; result.createTime_ = createTime_; result.instanceStates_ = internalGetInstanceStates(); result.instanceStates_.makeImmutable(); if (functionAuthSpecBuilder_ == null) { result.functionAuthSpec_ = functionAuthSpec_; } else { result.functionAuthSpec_ = functionAuthSpecBuilder_.build(); } if (transformFunctionPackageLocationBuilder_ == null) { result.transformFunctionPackageLocation_ = transformFunctionPackageLocation_; } else { result.transformFunctionPackageLocation_ = transformFunctionPackageLocationBuilder_.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.pulsar.functions.proto.Function.FunctionMetaData) { return mergeFrom((org.apache.pulsar.functions.proto.Function.FunctionMetaData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.pulsar.functions.proto.Function.FunctionMetaData other) { if (other == org.apache.pulsar.functions.proto.Function.FunctionMetaData.getDefaultInstance()) return this; if (other.hasFunctionDetails()) { mergeFunctionDetails(other.getFunctionDetails()); } if (other.hasPackageLocation()) { mergePackageLocation(other.getPackageLocation()); } if (other.getVersion() != 0L) { setVersion(other.getVersion()); } if (other.getCreateTime() != 0L) { setCreateTime(other.getCreateTime()); } internalGetMutableInstanceStates().mergeFrom( other.internalGetInstanceStates()); if (other.hasFunctionAuthSpec()) { mergeFunctionAuthSpec(other.getFunctionAuthSpec()); } if (other.hasTransformFunctionPackageLocation()) { mergeTransformFunctionPackageLocation(other.getTransformFunctionPackageLocation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getFunctionDetailsFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getPackageLocationFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 24: { version_ = input.readUInt64(); break; } // case 24 case 32: { createTime_ = input.readUInt64(); break; } // case 32 case 42: { com.google.protobuf.MapEntry instanceStates__ = input.readMessage( InstanceStatesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableInstanceStates().getMutableMap().put( instanceStates__.getKey(), instanceStates__.getValue()); break; } // case 42 case 50: { input.readMessage( getFunctionAuthSpecFieldBuilder().getBuilder(), extensionRegistry); break; } // case 50 case 58: { input.readMessage( getTransformFunctionPackageLocationFieldBuilder().getBuilder(), extensionRegistry); break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.apache.pulsar.functions.proto.Function.FunctionDetails functionDetails_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.FunctionDetails, org.apache.pulsar.functions.proto.Function.FunctionDetails.Builder, org.apache.pulsar.functions.proto.Function.FunctionDetailsOrBuilder> functionDetailsBuilder_; /** * .proto.FunctionDetails functionDetails = 1; * @return Whether the functionDetails field is set. */ public boolean hasFunctionDetails() { return functionDetailsBuilder_ != null || functionDetails_ != null; } /** * .proto.FunctionDetails functionDetails = 1; * @return The functionDetails. */ public org.apache.pulsar.functions.proto.Function.FunctionDetails getFunctionDetails() { if (functionDetailsBuilder_ == null) { return functionDetails_ == null ? org.apache.pulsar.functions.proto.Function.FunctionDetails.getDefaultInstance() : functionDetails_; } else { return functionDetailsBuilder_.getMessage(); } } /** * .proto.FunctionDetails functionDetails = 1; */ public Builder setFunctionDetails(org.apache.pulsar.functions.proto.Function.FunctionDetails value) { if (functionDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } functionDetails_ = value; onChanged(); } else { functionDetailsBuilder_.setMessage(value); } return this; } /** * .proto.FunctionDetails functionDetails = 1; */ public Builder setFunctionDetails( org.apache.pulsar.functions.proto.Function.FunctionDetails.Builder builderForValue) { if (functionDetailsBuilder_ == null) { functionDetails_ = builderForValue.build(); onChanged(); } else { functionDetailsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.FunctionDetails functionDetails = 1; */ public Builder mergeFunctionDetails(org.apache.pulsar.functions.proto.Function.FunctionDetails value) { if (functionDetailsBuilder_ == null) { if (functionDetails_ != null) { functionDetails_ = org.apache.pulsar.functions.proto.Function.FunctionDetails.newBuilder(functionDetails_).mergeFrom(value).buildPartial(); } else { functionDetails_ = value; } onChanged(); } else { functionDetailsBuilder_.mergeFrom(value); } return this; } /** * .proto.FunctionDetails functionDetails = 1; */ public Builder clearFunctionDetails() { if (functionDetailsBuilder_ == null) { functionDetails_ = null; onChanged(); } else { functionDetails_ = null; functionDetailsBuilder_ = null; } return this; } /** * .proto.FunctionDetails functionDetails = 1; */ public org.apache.pulsar.functions.proto.Function.FunctionDetails.Builder getFunctionDetailsBuilder() { onChanged(); return getFunctionDetailsFieldBuilder().getBuilder(); } /** * .proto.FunctionDetails functionDetails = 1; */ public org.apache.pulsar.functions.proto.Function.FunctionDetailsOrBuilder getFunctionDetailsOrBuilder() { if (functionDetailsBuilder_ != null) { return functionDetailsBuilder_.getMessageOrBuilder(); } else { return functionDetails_ == null ? org.apache.pulsar.functions.proto.Function.FunctionDetails.getDefaultInstance() : functionDetails_; } } /** * .proto.FunctionDetails functionDetails = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.FunctionDetails, org.apache.pulsar.functions.proto.Function.FunctionDetails.Builder, org.apache.pulsar.functions.proto.Function.FunctionDetailsOrBuilder> getFunctionDetailsFieldBuilder() { if (functionDetailsBuilder_ == null) { functionDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.FunctionDetails, org.apache.pulsar.functions.proto.Function.FunctionDetails.Builder, org.apache.pulsar.functions.proto.Function.FunctionDetailsOrBuilder>( getFunctionDetails(), getParentForChildren(), isClean()); functionDetails_ = null; } return functionDetailsBuilder_; } private org.apache.pulsar.functions.proto.Function.PackageLocationMetaData packageLocation_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.PackageLocationMetaData, org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.Builder, org.apache.pulsar.functions.proto.Function.PackageLocationMetaDataOrBuilder> packageLocationBuilder_; /** * .proto.PackageLocationMetaData packageLocation = 2; * @return Whether the packageLocation field is set. */ public boolean hasPackageLocation() { return packageLocationBuilder_ != null || packageLocation_ != null; } /** * .proto.PackageLocationMetaData packageLocation = 2; * @return The packageLocation. */ public org.apache.pulsar.functions.proto.Function.PackageLocationMetaData getPackageLocation() { if (packageLocationBuilder_ == null) { return packageLocation_ == null ? org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.getDefaultInstance() : packageLocation_; } else { return packageLocationBuilder_.getMessage(); } } /** * .proto.PackageLocationMetaData packageLocation = 2; */ public Builder setPackageLocation(org.apache.pulsar.functions.proto.Function.PackageLocationMetaData value) { if (packageLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } packageLocation_ = value; onChanged(); } else { packageLocationBuilder_.setMessage(value); } return this; } /** * .proto.PackageLocationMetaData packageLocation = 2; */ public Builder setPackageLocation( org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.Builder builderForValue) { if (packageLocationBuilder_ == null) { packageLocation_ = builderForValue.build(); onChanged(); } else { packageLocationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.PackageLocationMetaData packageLocation = 2; */ public Builder mergePackageLocation(org.apache.pulsar.functions.proto.Function.PackageLocationMetaData value) { if (packageLocationBuilder_ == null) { if (packageLocation_ != null) { packageLocation_ = org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.newBuilder(packageLocation_).mergeFrom(value).buildPartial(); } else { packageLocation_ = value; } onChanged(); } else { packageLocationBuilder_.mergeFrom(value); } return this; } /** * .proto.PackageLocationMetaData packageLocation = 2; */ public Builder clearPackageLocation() { if (packageLocationBuilder_ == null) { packageLocation_ = null; onChanged(); } else { packageLocation_ = null; packageLocationBuilder_ = null; } return this; } /** * .proto.PackageLocationMetaData packageLocation = 2; */ public org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.Builder getPackageLocationBuilder() { onChanged(); return getPackageLocationFieldBuilder().getBuilder(); } /** * .proto.PackageLocationMetaData packageLocation = 2; */ public org.apache.pulsar.functions.proto.Function.PackageLocationMetaDataOrBuilder getPackageLocationOrBuilder() { if (packageLocationBuilder_ != null) { return packageLocationBuilder_.getMessageOrBuilder(); } else { return packageLocation_ == null ? org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.getDefaultInstance() : packageLocation_; } } /** * .proto.PackageLocationMetaData packageLocation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.PackageLocationMetaData, org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.Builder, org.apache.pulsar.functions.proto.Function.PackageLocationMetaDataOrBuilder> getPackageLocationFieldBuilder() { if (packageLocationBuilder_ == null) { packageLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.PackageLocationMetaData, org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.Builder, org.apache.pulsar.functions.proto.Function.PackageLocationMetaDataOrBuilder>( getPackageLocation(), getParentForChildren(), isClean()); packageLocation_ = null; } return packageLocationBuilder_; } private long version_ ; /** * uint64 version = 3; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } /** * uint64 version = 3; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** * uint64 version = 3; * @return This builder for chaining. */ public Builder clearVersion() { version_ = 0L; onChanged(); return this; } private long createTime_ ; /** * uint64 createTime = 4; * @return The createTime. */ @java.lang.Override public long getCreateTime() { return createTime_; } /** * uint64 createTime = 4; * @param value The createTime to set. * @return This builder for chaining. */ public Builder setCreateTime(long value) { createTime_ = value; onChanged(); return this; } /** * uint64 createTime = 4; * @return This builder for chaining. */ public Builder clearCreateTime() { createTime_ = 0L; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> instanceStates_; private com.google.protobuf.MapField internalGetInstanceStates() { if (instanceStates_ == null) { return com.google.protobuf.MapField.emptyMapField( InstanceStatesDefaultEntryHolder.defaultEntry); } return instanceStates_; } private com.google.protobuf.MapField internalGetMutableInstanceStates() { onChanged();; if (instanceStates_ == null) { instanceStates_ = com.google.protobuf.MapField.newMapField( InstanceStatesDefaultEntryHolder.defaultEntry); } if (!instanceStates_.isMutable()) { instanceStates_ = instanceStates_.copy(); } return instanceStates_; } public int getInstanceStatesCount() { return internalGetInstanceStates().getMap().size(); } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ @java.lang.Override public boolean containsInstanceStates( int key) { return internalGetInstanceStates().getMap().containsKey(key); } /** * Use {@link #getInstanceStatesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getInstanceStates() { return getInstanceStatesMap(); } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ @java.lang.Override public java.util.Map getInstanceStatesMap() { return internalGetAdaptedInstanceStatesMap( internalGetInstanceStates().getMap());} /** * map<int32, .proto.FunctionState> instanceStates = 5; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionState getInstanceStatesOrDefault( int key, org.apache.pulsar.functions.proto.Function.FunctionState defaultValue) { java.util.Map map = internalGetInstanceStates().getMap(); return map.containsKey(key) ? instanceStatesValueConverter.doForward(map.get(key)) : defaultValue; } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionState getInstanceStatesOrThrow( int key) { java.util.Map map = internalGetInstanceStates().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return instanceStatesValueConverter.doForward(map.get(key)); } /** * Use {@link #getInstanceStatesValueMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getInstanceStatesValue() { return getInstanceStatesValueMap(); } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ @java.lang.Override public java.util.Map getInstanceStatesValueMap() { return internalGetInstanceStates().getMap(); } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ @java.lang.Override public int getInstanceStatesValueOrDefault( int key, int defaultValue) { java.util.Map map = internalGetInstanceStates().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ @java.lang.Override public int getInstanceStatesValueOrThrow( int key) { java.util.Map map = internalGetInstanceStates().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearInstanceStates() { internalGetMutableInstanceStates().getMutableMap() .clear(); return this; } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ public Builder removeInstanceStates( int key) { internalGetMutableInstanceStates().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableInstanceStates() { return internalGetAdaptedInstanceStatesMap( internalGetMutableInstanceStates().getMutableMap()); } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ public Builder putInstanceStates( int key, org.apache.pulsar.functions.proto.Function.FunctionState value) { internalGetMutableInstanceStates().getMutableMap() .put(key, instanceStatesValueConverter.doBackward(value)); return this; } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ public Builder putAllInstanceStates( java.util.Map values) { internalGetAdaptedInstanceStatesMap( internalGetMutableInstanceStates().getMutableMap()) .putAll(values); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableInstanceStatesValue() { return internalGetMutableInstanceStates().getMutableMap(); } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ public Builder putInstanceStatesValue( int key, int value) { internalGetMutableInstanceStates().getMutableMap() .put(key, value); return this; } /** * map<int32, .proto.FunctionState> instanceStates = 5; */ public Builder putAllInstanceStatesValue( java.util.Map values) { internalGetMutableInstanceStates().getMutableMap() .putAll(values); return this; } private org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec functionAuthSpec_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec, org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.Builder, org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpecOrBuilder> functionAuthSpecBuilder_; /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; * @return Whether the functionAuthSpec field is set. */ public boolean hasFunctionAuthSpec() { return functionAuthSpecBuilder_ != null || functionAuthSpec_ != null; } /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; * @return The functionAuthSpec. */ public org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec getFunctionAuthSpec() { if (functionAuthSpecBuilder_ == null) { return functionAuthSpec_ == null ? org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.getDefaultInstance() : functionAuthSpec_; } else { return functionAuthSpecBuilder_.getMessage(); } } /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; */ public Builder setFunctionAuthSpec(org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec value) { if (functionAuthSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } functionAuthSpec_ = value; onChanged(); } else { functionAuthSpecBuilder_.setMessage(value); } return this; } /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; */ public Builder setFunctionAuthSpec( org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.Builder builderForValue) { if (functionAuthSpecBuilder_ == null) { functionAuthSpec_ = builderForValue.build(); onChanged(); } else { functionAuthSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; */ public Builder mergeFunctionAuthSpec(org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec value) { if (functionAuthSpecBuilder_ == null) { if (functionAuthSpec_ != null) { functionAuthSpec_ = org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.newBuilder(functionAuthSpec_).mergeFrom(value).buildPartial(); } else { functionAuthSpec_ = value; } onChanged(); } else { functionAuthSpecBuilder_.mergeFrom(value); } return this; } /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; */ public Builder clearFunctionAuthSpec() { if (functionAuthSpecBuilder_ == null) { functionAuthSpec_ = null; onChanged(); } else { functionAuthSpec_ = null; functionAuthSpecBuilder_ = null; } return this; } /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; */ public org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.Builder getFunctionAuthSpecBuilder() { onChanged(); return getFunctionAuthSpecFieldBuilder().getBuilder(); } /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; */ public org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpecOrBuilder getFunctionAuthSpecOrBuilder() { if (functionAuthSpecBuilder_ != null) { return functionAuthSpecBuilder_.getMessageOrBuilder(); } else { return functionAuthSpec_ == null ? org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.getDefaultInstance() : functionAuthSpec_; } } /** * .proto.FunctionAuthenticationSpec functionAuthSpec = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec, org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.Builder, org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpecOrBuilder> getFunctionAuthSpecFieldBuilder() { if (functionAuthSpecBuilder_ == null) { functionAuthSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec, org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.Builder, org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpecOrBuilder>( getFunctionAuthSpec(), getParentForChildren(), isClean()); functionAuthSpec_ = null; } return functionAuthSpecBuilder_; } private org.apache.pulsar.functions.proto.Function.PackageLocationMetaData transformFunctionPackageLocation_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.PackageLocationMetaData, org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.Builder, org.apache.pulsar.functions.proto.Function.PackageLocationMetaDataOrBuilder> transformFunctionPackageLocationBuilder_; /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; * @return Whether the transformFunctionPackageLocation field is set. */ public boolean hasTransformFunctionPackageLocation() { return transformFunctionPackageLocationBuilder_ != null || transformFunctionPackageLocation_ != null; } /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; * @return The transformFunctionPackageLocation. */ public org.apache.pulsar.functions.proto.Function.PackageLocationMetaData getTransformFunctionPackageLocation() { if (transformFunctionPackageLocationBuilder_ == null) { return transformFunctionPackageLocation_ == null ? org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.getDefaultInstance() : transformFunctionPackageLocation_; } else { return transformFunctionPackageLocationBuilder_.getMessage(); } } /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; */ public Builder setTransformFunctionPackageLocation(org.apache.pulsar.functions.proto.Function.PackageLocationMetaData value) { if (transformFunctionPackageLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transformFunctionPackageLocation_ = value; onChanged(); } else { transformFunctionPackageLocationBuilder_.setMessage(value); } return this; } /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; */ public Builder setTransformFunctionPackageLocation( org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.Builder builderForValue) { if (transformFunctionPackageLocationBuilder_ == null) { transformFunctionPackageLocation_ = builderForValue.build(); onChanged(); } else { transformFunctionPackageLocationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; */ public Builder mergeTransformFunctionPackageLocation(org.apache.pulsar.functions.proto.Function.PackageLocationMetaData value) { if (transformFunctionPackageLocationBuilder_ == null) { if (transformFunctionPackageLocation_ != null) { transformFunctionPackageLocation_ = org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.newBuilder(transformFunctionPackageLocation_).mergeFrom(value).buildPartial(); } else { transformFunctionPackageLocation_ = value; } onChanged(); } else { transformFunctionPackageLocationBuilder_.mergeFrom(value); } return this; } /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; */ public Builder clearTransformFunctionPackageLocation() { if (transformFunctionPackageLocationBuilder_ == null) { transformFunctionPackageLocation_ = null; onChanged(); } else { transformFunctionPackageLocation_ = null; transformFunctionPackageLocationBuilder_ = null; } return this; } /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; */ public org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.Builder getTransformFunctionPackageLocationBuilder() { onChanged(); return getTransformFunctionPackageLocationFieldBuilder().getBuilder(); } /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; */ public org.apache.pulsar.functions.proto.Function.PackageLocationMetaDataOrBuilder getTransformFunctionPackageLocationOrBuilder() { if (transformFunctionPackageLocationBuilder_ != null) { return transformFunctionPackageLocationBuilder_.getMessageOrBuilder(); } else { return transformFunctionPackageLocation_ == null ? org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.getDefaultInstance() : transformFunctionPackageLocation_; } } /** * .proto.PackageLocationMetaData transformFunctionPackageLocation = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.PackageLocationMetaData, org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.Builder, org.apache.pulsar.functions.proto.Function.PackageLocationMetaDataOrBuilder> getTransformFunctionPackageLocationFieldBuilder() { if (transformFunctionPackageLocationBuilder_ == null) { transformFunctionPackageLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.PackageLocationMetaData, org.apache.pulsar.functions.proto.Function.PackageLocationMetaData.Builder, org.apache.pulsar.functions.proto.Function.PackageLocationMetaDataOrBuilder>( getTransformFunctionPackageLocation(), getParentForChildren(), isClean()); transformFunctionPackageLocation_ = null; } return transformFunctionPackageLocationBuilder_; } @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:proto.FunctionMetaData) } // @@protoc_insertion_point(class_scope:proto.FunctionMetaData) private static final org.apache.pulsar.functions.proto.Function.FunctionMetaData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.pulsar.functions.proto.Function.FunctionMetaData(); } public static org.apache.pulsar.functions.proto.Function.FunctionMetaData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FunctionMetaData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionMetaData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FunctionAuthenticationSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.FunctionAuthenticationSpec) com.google.protobuf.MessageOrBuilder { /** *
     **
     * function authentication related data that the function authentication provider
     * needs to cache/distribute to all workers support function authentication.
     * Depending on the function authentication provider implementation, this can be the actual auth credentials
     * or a pointer to the auth credentials that this function should use
     * 
* * bytes data = 1; * @return The data. */ com.google.protobuf.ByteString getData(); /** *
     **
     * classname of the function auth provicer this data is relevant to
     * 
* * string provider = 2; * @return The provider. */ java.lang.String getProvider(); /** *
     **
     * classname of the function auth provicer this data is relevant to
     * 
* * string provider = 2; * @return The bytes for provider. */ com.google.protobuf.ByteString getProviderBytes(); } /** * Protobuf type {@code proto.FunctionAuthenticationSpec} */ public static final class FunctionAuthenticationSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.FunctionAuthenticationSpec) FunctionAuthenticationSpecOrBuilder { private static final long serialVersionUID = 0L; // Use FunctionAuthenticationSpec.newBuilder() to construct. private FunctionAuthenticationSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FunctionAuthenticationSpec() { data_ = com.google.protobuf.ByteString.EMPTY; provider_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FunctionAuthenticationSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionAuthenticationSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionAuthenticationSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.class, org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.Builder.class); } public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_; /** *
     **
     * function authentication related data that the function authentication provider
     * needs to cache/distribute to all workers support function authentication.
     * Depending on the function authentication provider implementation, this can be the actual auth credentials
     * or a pointer to the auth credentials that this function should use
     * 
* * bytes data = 1; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } public static final int PROVIDER_FIELD_NUMBER = 2; private volatile java.lang.Object provider_; /** *
     **
     * classname of the function auth provicer this data is relevant to
     * 
* * string provider = 2; * @return The provider. */ @java.lang.Override public java.lang.String getProvider() { java.lang.Object ref = provider_; 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(); provider_ = s; return s; } } /** *
     **
     * classname of the function auth provicer this data is relevant to
     * 
* * string provider = 2; * @return The bytes for provider. */ @java.lang.Override public com.google.protobuf.ByteString getProviderBytes() { java.lang.Object ref = provider_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); provider_ = 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 (!data_.isEmpty()) { output.writeBytes(1, data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, provider_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, provider_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec)) { return super.equals(obj); } org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec other = (org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec) obj; if (!getData() .equals(other.getData())) return false; if (!getProvider() .equals(other.getProvider())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (37 * hash) + PROVIDER_FIELD_NUMBER; hash = (53 * hash) + getProvider().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec 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.pulsar.functions.proto.Function.FunctionAuthenticationSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec 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.pulsar.functions.proto.Function.FunctionAuthenticationSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec 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.pulsar.functions.proto.Function.FunctionAuthenticationSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec 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.pulsar.functions.proto.Function.FunctionAuthenticationSpec 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 proto.FunctionAuthenticationSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.FunctionAuthenticationSpec) org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionAuthenticationSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionAuthenticationSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.class, org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.Builder.class); } // Construct using org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); data_ = com.google.protobuf.ByteString.EMPTY; provider_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_FunctionAuthenticationSpec_descriptor; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec getDefaultInstanceForType() { return org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.getDefaultInstance(); } @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec build() { org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec buildPartial() { org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec result = new org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec(this); result.data_ = data_; result.provider_ = provider_; 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.pulsar.functions.proto.Function.FunctionAuthenticationSpec) { return mergeFrom((org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec other) { if (other == org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec.getDefaultInstance()) return this; if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (!other.getProvider().isEmpty()) { provider_ = other.provider_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { data_ = input.readBytes(); break; } // case 10 case 18: { provider_ = input.readStringRequireUtf8(); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
       **
       * function authentication related data that the function authentication provider
       * needs to cache/distribute to all workers support function authentication.
       * Depending on the function authentication provider implementation, this can be the actual auth credentials
       * or a pointer to the auth credentials that this function should use
       * 
* * bytes data = 1; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** *
       **
       * function authentication related data that the function authentication provider
       * needs to cache/distribute to all workers support function authentication.
       * Depending on the function authentication provider implementation, this can be the actual auth credentials
       * or a pointer to the auth credentials that this function should use
       * 
* * bytes data = 1; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** *
       **
       * function authentication related data that the function authentication provider
       * needs to cache/distribute to all workers support function authentication.
       * Depending on the function authentication provider implementation, this can be the actual auth credentials
       * or a pointer to the auth credentials that this function should use
       * 
* * bytes data = 1; * @return This builder for chaining. */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } private java.lang.Object provider_ = ""; /** *
       **
       * classname of the function auth provicer this data is relevant to
       * 
* * string provider = 2; * @return The provider. */ public java.lang.String getProvider() { java.lang.Object ref = provider_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); provider_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       **
       * classname of the function auth provicer this data is relevant to
       * 
* * string provider = 2; * @return The bytes for provider. */ public com.google.protobuf.ByteString getProviderBytes() { java.lang.Object ref = provider_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); provider_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       **
       * classname of the function auth provicer this data is relevant to
       * 
* * string provider = 2; * @param value The provider to set. * @return This builder for chaining. */ public Builder setProvider( java.lang.String value) { if (value == null) { throw new NullPointerException(); } provider_ = value; onChanged(); return this; } /** *
       **
       * classname of the function auth provicer this data is relevant to
       * 
* * string provider = 2; * @return This builder for chaining. */ public Builder clearProvider() { provider_ = getDefaultInstance().getProvider(); onChanged(); return this; } /** *
       **
       * classname of the function auth provicer this data is relevant to
       * 
* * string provider = 2; * @param value The bytes for provider to set. * @return This builder for chaining. */ public Builder setProviderBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); provider_ = 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:proto.FunctionAuthenticationSpec) } // @@protoc_insertion_point(class_scope:proto.FunctionAuthenticationSpec) private static final org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec(); } public static org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FunctionAuthenticationSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionAuthenticationSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Instance) com.google.protobuf.MessageOrBuilder { /** * .proto.FunctionMetaData functionMetaData = 1; * @return Whether the functionMetaData field is set. */ boolean hasFunctionMetaData(); /** * .proto.FunctionMetaData functionMetaData = 1; * @return The functionMetaData. */ org.apache.pulsar.functions.proto.Function.FunctionMetaData getFunctionMetaData(); /** * .proto.FunctionMetaData functionMetaData = 1; */ org.apache.pulsar.functions.proto.Function.FunctionMetaDataOrBuilder getFunctionMetaDataOrBuilder(); /** * int32 instanceId = 2; * @return The instanceId. */ int getInstanceId(); } /** * Protobuf type {@code proto.Instance} */ public static final class Instance extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Instance) InstanceOrBuilder { private static final long serialVersionUID = 0L; // Use Instance.newBuilder() to construct. private Instance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Instance() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Instance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.Instance.class, org.apache.pulsar.functions.proto.Function.Instance.Builder.class); } public static final int FUNCTIONMETADATA_FIELD_NUMBER = 1; private org.apache.pulsar.functions.proto.Function.FunctionMetaData functionMetaData_; /** * .proto.FunctionMetaData functionMetaData = 1; * @return Whether the functionMetaData field is set. */ @java.lang.Override public boolean hasFunctionMetaData() { return functionMetaData_ != null; } /** * .proto.FunctionMetaData functionMetaData = 1; * @return The functionMetaData. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionMetaData getFunctionMetaData() { return functionMetaData_ == null ? org.apache.pulsar.functions.proto.Function.FunctionMetaData.getDefaultInstance() : functionMetaData_; } /** * .proto.FunctionMetaData functionMetaData = 1; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.FunctionMetaDataOrBuilder getFunctionMetaDataOrBuilder() { return getFunctionMetaData(); } public static final int INSTANCEID_FIELD_NUMBER = 2; private int instanceId_; /** * int32 instanceId = 2; * @return The instanceId. */ @java.lang.Override public int getInstanceId() { return instanceId_; } 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 (functionMetaData_ != null) { output.writeMessage(1, getFunctionMetaData()); } if (instanceId_ != 0) { output.writeInt32(2, instanceId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (functionMetaData_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFunctionMetaData()); } if (instanceId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, instanceId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.pulsar.functions.proto.Function.Instance)) { return super.equals(obj); } org.apache.pulsar.functions.proto.Function.Instance other = (org.apache.pulsar.functions.proto.Function.Instance) obj; if (hasFunctionMetaData() != other.hasFunctionMetaData()) return false; if (hasFunctionMetaData()) { if (!getFunctionMetaData() .equals(other.getFunctionMetaData())) return false; } if (getInstanceId() != other.getInstanceId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFunctionMetaData()) { hash = (37 * hash) + FUNCTIONMETADATA_FIELD_NUMBER; hash = (53 * hash) + getFunctionMetaData().hashCode(); } hash = (37 * hash) + INSTANCEID_FIELD_NUMBER; hash = (53 * hash) + getInstanceId(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.pulsar.functions.proto.Function.Instance parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.Instance parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.Instance 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.pulsar.functions.proto.Function.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.Instance parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.Instance parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.Instance 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.pulsar.functions.proto.Function.Instance parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.Instance 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.pulsar.functions.proto.Function.Instance parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.Instance 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.pulsar.functions.proto.Function.Instance 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 proto.Instance} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Instance) org.apache.pulsar.functions.proto.Function.InstanceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Instance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.Instance.class, org.apache.pulsar.functions.proto.Function.Instance.Builder.class); } // Construct using org.apache.pulsar.functions.proto.Function.Instance.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (functionMetaDataBuilder_ == null) { functionMetaData_ = null; } else { functionMetaData_ = null; functionMetaDataBuilder_ = null; } instanceId_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Instance_descriptor; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.Instance getDefaultInstanceForType() { return org.apache.pulsar.functions.proto.Function.Instance.getDefaultInstance(); } @java.lang.Override public org.apache.pulsar.functions.proto.Function.Instance build() { org.apache.pulsar.functions.proto.Function.Instance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.Instance buildPartial() { org.apache.pulsar.functions.proto.Function.Instance result = new org.apache.pulsar.functions.proto.Function.Instance(this); if (functionMetaDataBuilder_ == null) { result.functionMetaData_ = functionMetaData_; } else { result.functionMetaData_ = functionMetaDataBuilder_.build(); } result.instanceId_ = instanceId_; 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.pulsar.functions.proto.Function.Instance) { return mergeFrom((org.apache.pulsar.functions.proto.Function.Instance)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.pulsar.functions.proto.Function.Instance other) { if (other == org.apache.pulsar.functions.proto.Function.Instance.getDefaultInstance()) return this; if (other.hasFunctionMetaData()) { mergeFunctionMetaData(other.getFunctionMetaData()); } if (other.getInstanceId() != 0) { setInstanceId(other.getInstanceId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getFunctionMetaDataFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 16: { instanceId_ = input.readInt32(); break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private org.apache.pulsar.functions.proto.Function.FunctionMetaData functionMetaData_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.FunctionMetaData, org.apache.pulsar.functions.proto.Function.FunctionMetaData.Builder, org.apache.pulsar.functions.proto.Function.FunctionMetaDataOrBuilder> functionMetaDataBuilder_; /** * .proto.FunctionMetaData functionMetaData = 1; * @return Whether the functionMetaData field is set. */ public boolean hasFunctionMetaData() { return functionMetaDataBuilder_ != null || functionMetaData_ != null; } /** * .proto.FunctionMetaData functionMetaData = 1; * @return The functionMetaData. */ public org.apache.pulsar.functions.proto.Function.FunctionMetaData getFunctionMetaData() { if (functionMetaDataBuilder_ == null) { return functionMetaData_ == null ? org.apache.pulsar.functions.proto.Function.FunctionMetaData.getDefaultInstance() : functionMetaData_; } else { return functionMetaDataBuilder_.getMessage(); } } /** * .proto.FunctionMetaData functionMetaData = 1; */ public Builder setFunctionMetaData(org.apache.pulsar.functions.proto.Function.FunctionMetaData value) { if (functionMetaDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } functionMetaData_ = value; onChanged(); } else { functionMetaDataBuilder_.setMessage(value); } return this; } /** * .proto.FunctionMetaData functionMetaData = 1; */ public Builder setFunctionMetaData( org.apache.pulsar.functions.proto.Function.FunctionMetaData.Builder builderForValue) { if (functionMetaDataBuilder_ == null) { functionMetaData_ = builderForValue.build(); onChanged(); } else { functionMetaDataBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.FunctionMetaData functionMetaData = 1; */ public Builder mergeFunctionMetaData(org.apache.pulsar.functions.proto.Function.FunctionMetaData value) { if (functionMetaDataBuilder_ == null) { if (functionMetaData_ != null) { functionMetaData_ = org.apache.pulsar.functions.proto.Function.FunctionMetaData.newBuilder(functionMetaData_).mergeFrom(value).buildPartial(); } else { functionMetaData_ = value; } onChanged(); } else { functionMetaDataBuilder_.mergeFrom(value); } return this; } /** * .proto.FunctionMetaData functionMetaData = 1; */ public Builder clearFunctionMetaData() { if (functionMetaDataBuilder_ == null) { functionMetaData_ = null; onChanged(); } else { functionMetaData_ = null; functionMetaDataBuilder_ = null; } return this; } /** * .proto.FunctionMetaData functionMetaData = 1; */ public org.apache.pulsar.functions.proto.Function.FunctionMetaData.Builder getFunctionMetaDataBuilder() { onChanged(); return getFunctionMetaDataFieldBuilder().getBuilder(); } /** * .proto.FunctionMetaData functionMetaData = 1; */ public org.apache.pulsar.functions.proto.Function.FunctionMetaDataOrBuilder getFunctionMetaDataOrBuilder() { if (functionMetaDataBuilder_ != null) { return functionMetaDataBuilder_.getMessageOrBuilder(); } else { return functionMetaData_ == null ? org.apache.pulsar.functions.proto.Function.FunctionMetaData.getDefaultInstance() : functionMetaData_; } } /** * .proto.FunctionMetaData functionMetaData = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.FunctionMetaData, org.apache.pulsar.functions.proto.Function.FunctionMetaData.Builder, org.apache.pulsar.functions.proto.Function.FunctionMetaDataOrBuilder> getFunctionMetaDataFieldBuilder() { if (functionMetaDataBuilder_ == null) { functionMetaDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.FunctionMetaData, org.apache.pulsar.functions.proto.Function.FunctionMetaData.Builder, org.apache.pulsar.functions.proto.Function.FunctionMetaDataOrBuilder>( getFunctionMetaData(), getParentForChildren(), isClean()); functionMetaData_ = null; } return functionMetaDataBuilder_; } private int instanceId_ ; /** * int32 instanceId = 2; * @return The instanceId. */ @java.lang.Override public int getInstanceId() { return instanceId_; } /** * int32 instanceId = 2; * @param value The instanceId to set. * @return This builder for chaining. */ public Builder setInstanceId(int value) { instanceId_ = value; onChanged(); return this; } /** * int32 instanceId = 2; * @return This builder for chaining. */ public Builder clearInstanceId() { instanceId_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.Instance) } // @@protoc_insertion_point(class_scope:proto.Instance) private static final org.apache.pulsar.functions.proto.Function.Instance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.pulsar.functions.proto.Function.Instance(); } public static org.apache.pulsar.functions.proto.Function.Instance getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Instance parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AssignmentOrBuilder extends // @@protoc_insertion_point(interface_extends:proto.Assignment) com.google.protobuf.MessageOrBuilder { /** * .proto.Instance instance = 1; * @return Whether the instance field is set. */ boolean hasInstance(); /** * .proto.Instance instance = 1; * @return The instance. */ org.apache.pulsar.functions.proto.Function.Instance getInstance(); /** * .proto.Instance instance = 1; */ org.apache.pulsar.functions.proto.Function.InstanceOrBuilder getInstanceOrBuilder(); /** * string workerId = 2; * @return The workerId. */ java.lang.String getWorkerId(); /** * string workerId = 2; * @return The bytes for workerId. */ com.google.protobuf.ByteString getWorkerIdBytes(); } /** * Protobuf type {@code proto.Assignment} */ public static final class Assignment extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Assignment) AssignmentOrBuilder { private static final long serialVersionUID = 0L; // Use Assignment.newBuilder() to construct. private Assignment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Assignment() { workerId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Assignment(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Assignment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Assignment_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.Assignment.class, org.apache.pulsar.functions.proto.Function.Assignment.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private org.apache.pulsar.functions.proto.Function.Instance instance_; /** * .proto.Instance instance = 1; * @return Whether the instance field is set. */ @java.lang.Override public boolean hasInstance() { return instance_ != null; } /** * .proto.Instance instance = 1; * @return The instance. */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.Instance getInstance() { return instance_ == null ? org.apache.pulsar.functions.proto.Function.Instance.getDefaultInstance() : instance_; } /** * .proto.Instance instance = 1; */ @java.lang.Override public org.apache.pulsar.functions.proto.Function.InstanceOrBuilder getInstanceOrBuilder() { return getInstance(); } public static final int WORKERID_FIELD_NUMBER = 2; private volatile java.lang.Object workerId_; /** * string workerId = 2; * @return The workerId. */ @java.lang.Override public java.lang.String getWorkerId() { java.lang.Object ref = workerId_; 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(); workerId_ = s; return s; } } /** * string workerId = 2; * @return The bytes for workerId. */ @java.lang.Override public com.google.protobuf.ByteString getWorkerIdBytes() { java.lang.Object ref = workerId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); workerId_ = 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 (instance_ != null) { output.writeMessage(1, getInstance()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workerId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (instance_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInstance()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workerId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.pulsar.functions.proto.Function.Assignment)) { return super.equals(obj); } org.apache.pulsar.functions.proto.Function.Assignment other = (org.apache.pulsar.functions.proto.Function.Assignment) obj; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { if (!getInstance() .equals(other.getInstance())) return false; } if (!getWorkerId() .equals(other.getWorkerId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasInstance()) { hash = (37 * hash) + INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getInstance().hashCode(); } hash = (37 * hash) + WORKERID_FIELD_NUMBER; hash = (53 * hash) + getWorkerId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.pulsar.functions.proto.Function.Assignment parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.Assignment parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.Assignment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.Assignment 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.pulsar.functions.proto.Function.Assignment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.pulsar.functions.proto.Function.Assignment parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.pulsar.functions.proto.Function.Assignment parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.Assignment 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.pulsar.functions.proto.Function.Assignment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.Assignment 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.pulsar.functions.proto.Function.Assignment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.pulsar.functions.proto.Function.Assignment 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.pulsar.functions.proto.Function.Assignment 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 proto.Assignment} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Assignment) org.apache.pulsar.functions.proto.Function.AssignmentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Assignment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Assignment_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.pulsar.functions.proto.Function.Assignment.class, org.apache.pulsar.functions.proto.Function.Assignment.Builder.class); } // Construct using org.apache.pulsar.functions.proto.Function.Assignment.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (instanceBuilder_ == null) { instance_ = null; } else { instance_ = null; instanceBuilder_ = null; } workerId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.pulsar.functions.proto.Function.internal_static_proto_Assignment_descriptor; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.Assignment getDefaultInstanceForType() { return org.apache.pulsar.functions.proto.Function.Assignment.getDefaultInstance(); } @java.lang.Override public org.apache.pulsar.functions.proto.Function.Assignment build() { org.apache.pulsar.functions.proto.Function.Assignment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.Assignment buildPartial() { org.apache.pulsar.functions.proto.Function.Assignment result = new org.apache.pulsar.functions.proto.Function.Assignment(this); if (instanceBuilder_ == null) { result.instance_ = instance_; } else { result.instance_ = instanceBuilder_.build(); } result.workerId_ = workerId_; 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.pulsar.functions.proto.Function.Assignment) { return mergeFrom((org.apache.pulsar.functions.proto.Function.Assignment)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.pulsar.functions.proto.Function.Assignment other) { if (other == org.apache.pulsar.functions.proto.Function.Assignment.getDefaultInstance()) return this; if (other.hasInstance()) { mergeInstance(other.getInstance()); } if (!other.getWorkerId().isEmpty()) { workerId_ = other.workerId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInstanceFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { workerId_ = input.readStringRequireUtf8(); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private org.apache.pulsar.functions.proto.Function.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.Instance, org.apache.pulsar.functions.proto.Function.Instance.Builder, org.apache.pulsar.functions.proto.Function.InstanceOrBuilder> instanceBuilder_; /** * .proto.Instance instance = 1; * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** * .proto.Instance instance = 1; * @return The instance. */ public org.apache.pulsar.functions.proto.Function.Instance getInstance() { if (instanceBuilder_ == null) { return instance_ == null ? org.apache.pulsar.functions.proto.Function.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** * .proto.Instance instance = 1; */ public Builder setInstance(org.apache.pulsar.functions.proto.Function.Instance value) { if (instanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } instance_ = value; onChanged(); } else { instanceBuilder_.setMessage(value); } return this; } /** * .proto.Instance instance = 1; */ public Builder setInstance( org.apache.pulsar.functions.proto.Function.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); } else { instanceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .proto.Instance instance = 1; */ public Builder mergeInstance(org.apache.pulsar.functions.proto.Function.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = org.apache.pulsar.functions.proto.Function.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } onChanged(); } else { instanceBuilder_.mergeFrom(value); } return this; } /** * .proto.Instance instance = 1; */ public Builder clearInstance() { if (instanceBuilder_ == null) { instance_ = null; onChanged(); } else { instance_ = null; instanceBuilder_ = null; } return this; } /** * .proto.Instance instance = 1; */ public org.apache.pulsar.functions.proto.Function.Instance.Builder getInstanceBuilder() { onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** * .proto.Instance instance = 1; */ public org.apache.pulsar.functions.proto.Function.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { return instance_ == null ? org.apache.pulsar.functions.proto.Function.Instance.getDefaultInstance() : instance_; } } /** * .proto.Instance instance = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.Instance, org.apache.pulsar.functions.proto.Function.Instance.Builder, org.apache.pulsar.functions.proto.Function.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.pulsar.functions.proto.Function.Instance, org.apache.pulsar.functions.proto.Function.Instance.Builder, org.apache.pulsar.functions.proto.Function.InstanceOrBuilder>( getInstance(), getParentForChildren(), isClean()); instance_ = null; } return instanceBuilder_; } private java.lang.Object workerId_ = ""; /** * string workerId = 2; * @return The workerId. */ public java.lang.String getWorkerId() { java.lang.Object ref = workerId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workerId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string workerId = 2; * @return The bytes for workerId. */ public com.google.protobuf.ByteString getWorkerIdBytes() { java.lang.Object ref = workerId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); workerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string workerId = 2; * @param value The workerId to set. * @return This builder for chaining. */ public Builder setWorkerId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } workerId_ = value; onChanged(); return this; } /** * string workerId = 2; * @return This builder for chaining. */ public Builder clearWorkerId() { workerId_ = getDefaultInstance().getWorkerId(); onChanged(); return this; } /** * string workerId = 2; * @param value The bytes for workerId to set. * @return This builder for chaining. */ public Builder setWorkerIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workerId_ = 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:proto.Assignment) } // @@protoc_insertion_point(class_scope:proto.Assignment) private static final org.apache.pulsar.functions.proto.Function.Assignment DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.pulsar.functions.proto.Function.Assignment(); } public static org.apache.pulsar.functions.proto.Function.Assignment getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Assignment parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.pulsar.functions.proto.Function.Assignment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_Resources_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_Resources_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_RetryDetails_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_RetryDetails_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_FunctionDetails_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_FunctionDetails_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_ConsumerSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_ConsumerSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_ConsumerSpec_ReceiverQueueSize_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_ConsumerSpec_ReceiverQueueSize_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_ConsumerSpec_SchemaPropertiesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_ConsumerSpec_SchemaPropertiesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_ConsumerSpec_ConsumerPropertiesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_ConsumerSpec_ConsumerPropertiesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_ProducerSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_ProducerSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_CryptoSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_CryptoSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_SourceSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_SourceSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_SourceSpec_TopicsToSerDeClassNameEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_SourceSpec_TopicsToSerDeClassNameEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_SourceSpec_InputSpecsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_SourceSpec_InputSpecsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_SinkSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_SinkSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_SinkSpec_SchemaPropertiesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_SinkSpec_SchemaPropertiesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_SinkSpec_ConsumerPropertiesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_SinkSpec_ConsumerPropertiesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_PackageLocationMetaData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_PackageLocationMetaData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_FunctionMetaData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_FunctionMetaData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_FunctionMetaData_InstanceStatesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_FunctionMetaData_InstanceStatesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_FunctionAuthenticationSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_FunctionAuthenticationSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_Instance_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_Instance_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_Assignment_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_Assignment_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\016Function.proto\022\005proto\"3\n\tResources\022\013\n\003" + "cpu\030\001 \001(\001\022\013\n\003ram\030\002 \001(\003\022\014\n\004disk\030\003 \001(\003\"B\n\014" + "RetryDetails\022\031\n\021maxMessageRetries\030\001 \001(\005\022" + "\027\n\017deadLetterTopic\030\002 \001(\t\"\246\006\n\017FunctionDet" + "ails\022\016\n\006tenant\030\001 \001(\t\022\021\n\tnamespace\030\002 \001(\t\022" + "\014\n\004name\030\003 \001(\t\022\021\n\tclassName\030\004 \001(\t\022\020\n\010logT" + "opic\030\005 \001(\t\0229\n\024processingGuarantees\030\006 \001(\016" + "2\033.proto.ProcessingGuarantees\022\022\n\nuserCon" + "fig\030\007 \001(\t\022\022\n\nsecretsMap\030\020 \001(\t\022/\n\007runtime" + "\030\010 \001(\0162\036.proto.FunctionDetails.Runtime\022\023" + "\n\007autoAck\030\t \001(\010B\002\030\001\022\023\n\013parallelism\030\n \001(\005" + "\022!\n\006source\030\013 \001(\0132\021.proto.SourceSpec\022\035\n\004s" + "ink\030\014 \001(\0132\017.proto.SinkSpec\022#\n\tresources\030" + "\r \001(\0132\020.proto.Resources\022\022\n\npackageUrl\030\016 " + "\001(\t\022)\n\014retryDetails\030\017 \001(\0132\023.proto.RetryD" + "etails\022\024\n\014runtimeFlags\030\021 \001(\t\022;\n\rcomponen" + "tType\030\022 \001(\0162$.proto.FunctionDetails.Comp" + "onentType\022\034\n\024customRuntimeOptions\030\023 \001(\t\022" + "\017\n\007builtin\030\024 \001(\t\022\026\n\016retainOrdering\030\025 \001(\010" + "\022\031\n\021retainKeyOrdering\030\026 \001(\010\0229\n\024subscript" + "ionPosition\030\027 \001(\0162\033.proto.SubscriptionPo" + "sition\"\'\n\007Runtime\022\010\n\004JAVA\020\000\022\n\n\006PYTHON\020\001\022" + "\006\n\002GO\020\003\"@\n\rComponentType\022\013\n\007UNKNOWN\020\000\022\014\n" + "\010FUNCTION\020\001\022\n\n\006SOURCE\020\002\022\010\n\004SINK\020\003\"\367\003\n\014Co" + "nsumerSpec\022\022\n\nschemaType\030\001 \001(\t\022\026\n\016serdeC" + "lassName\030\002 \001(\t\022\026\n\016isRegexPattern\030\003 \001(\010\022@" + "\n\021receiverQueueSize\030\004 \001(\0132%.proto.Consum" + "erSpec.ReceiverQueueSize\022C\n\020schemaProper" + "ties\030\005 \003(\0132).proto.ConsumerSpec.SchemaPr" + "opertiesEntry\022G\n\022consumerProperties\030\006 \003(" + "\0132+.proto.ConsumerSpec.ConsumerPropertie" + "sEntry\022%\n\ncryptoSpec\030\007 \001(\0132\021.proto.Crypt" + "oSpec\022\024\n\014poolMessages\030\010 \001(\010\032\"\n\021ReceiverQ" + "ueueSize\022\r\n\005value\030\001 \001(\005\0327\n\025SchemaPropert" + "iesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + "\0329\n\027ConsumerPropertiesEntry\022\013\n\003key\030\001 \001(\t" + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\345\001\n\014ProducerSpec\022\032\n\022" + "maxPendingMessages\030\001 \001(\005\022*\n\"maxPendingMe" + "ssagesAcrossPartitions\030\002 \001(\005\022\037\n\027useThrea" + "dLocalProducers\030\003 \001(\010\022%\n\ncryptoSpec\030\004 \001(" + "\0132\021.proto.CryptoSpec\022\024\n\014batchBuilder\030\005 \001" + "(\t\022/\n\017compressionType\030\006 \001(\0162\026.proto.Comp" + "ressionType\"\273\002\n\nCryptoSpec\022 \n\030cryptoKeyR" + "eaderClassName\030\001 \001(\t\022\035\n\025cryptoKeyReaderC" + "onfig\030\002 \001(\t\022!\n\031producerEncryptionKeyName" + "\030\003 \003(\t\022D\n\033producerCryptoFailureAction\030\004 " + "\001(\0162\037.proto.CryptoSpec.FailureAction\022D\n\033" + "consumerCryptoFailureAction\030\005 \001(\0162\037.prot" + "o.CryptoSpec.FailureAction\"=\n\rFailureAct" + "ion\022\010\n\004FAIL\020\000\022\013\n\007DISCARD\020\001\022\013\n\007CONSUME\020\002\022" + "\010\n\004SEND\020\n\"\370\004\n\nSourceSpec\022\021\n\tclassName\030\001 " + "\001(\t\022\017\n\007configs\030\002 \001(\t\022\025\n\rtypeClassName\030\005 " + "\001(\t\0221\n\020subscriptionType\030\003 \001(\0162\027.proto.Su" + "bscriptionType\022Q\n\026topicsToSerDeClassName" + "\030\004 \003(\0132-.proto.SourceSpec.TopicsToSerDeC" + "lassNameEntryB\002\030\001\0225\n\ninputSpecs\030\n \003(\0132!." + "proto.SourceSpec.InputSpecsEntry\022\021\n\ttime" + "outMs\030\006 \001(\004\022\031\n\rtopicsPattern\030\007 \001(\tB\002\030\001\022\017" + "\n\007builtin\030\010 \001(\t\022\030\n\020subscriptionName\030\t \001(" + "\t\022\033\n\023cleanupSubscription\030\013 \001(\010\0229\n\024subscr" + "iptionPosition\030\014 \001(\0162\033.proto.Subscriptio" + "nPosition\022$\n\034negativeAckRedeliveryDelayM" + "s\030\r \001(\004\022\024\n\014skipToLatest\030\016 \001(\010\032=\n\033TopicsT" + "oSerDeClassNameEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + "ue\030\002 \001(\t:\0028\001\032F\n\017InputSpecsEntry\022\013\n\003key\030\001" + " \001(\t\022\"\n\005value\030\002 \001(\0132\023.proto.ConsumerSpec" + ":\0028\001\"\334\003\n\010SinkSpec\022\021\n\tclassName\030\001 \001(\t\022\017\n\007" + "configs\030\002 \001(\t\022\025\n\rtypeClassName\030\005 \001(\t\022\r\n\005" + "topic\030\003 \001(\t\022)\n\014producerSpec\030\013 \001(\0132\023.prot" + "o.ProducerSpec\022\026\n\016serDeClassName\030\004 \001(\t\022\017" + "\n\007builtin\030\006 \001(\t\022\022\n\nschemaType\030\007 \001(\t\022$\n\034f" + "orwardSourceMessageProperty\030\010 \001(\010\022?\n\020sch" + "emaProperties\030\t \003(\0132%.proto.SinkSpec.Sch" + "emaPropertiesEntry\022C\n\022consumerProperties" + "\030\n \003(\0132\'.proto.SinkSpec.ConsumerProperti" + "esEntry\0327\n\025SchemaPropertiesEntry\022\013\n\003key\030" + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0329\n\027ConsumerProp" + "ertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + "\0028\001\"H\n\027PackageLocationMetaData\022\023\n\013packag" + "ePath\030\001 \001(\t\022\030\n\020originalFileName\030\002 \001(\t\"\272\003" + "\n\020FunctionMetaData\022/\n\017functionDetails\030\001 " + "\001(\0132\026.proto.FunctionDetails\0227\n\017packageLo" + "cation\030\002 \001(\0132\036.proto.PackageLocationMeta" + "Data\022\017\n\007version\030\003 \001(\004\022\022\n\ncreateTime\030\004 \001(" + "\004\022C\n\016instanceStates\030\005 \003(\0132+.proto.Functi" + "onMetaData.InstanceStatesEntry\022;\n\020functi" + "onAuthSpec\030\006 \001(\0132!.proto.FunctionAuthent" + "icationSpec\022H\n transformFunctionPackageL" + "ocation\030\007 \001(\0132\036.proto.PackageLocationMet" + "aData\032K\n\023InstanceStatesEntry\022\013\n\003key\030\001 \001(" + "\005\022#\n\005value\030\002 \001(\0162\024.proto.FunctionState:\002" + "8\001\"<\n\032FunctionAuthenticationSpec\022\014\n\004data" + "\030\001 \001(\014\022\020\n\010provider\030\002 \001(\t\"Q\n\010Instance\0221\n\020" + "functionMetaData\030\001 \001(\0132\027.proto.FunctionM" + "etaData\022\022\n\ninstanceId\030\002 \001(\005\"A\n\nAssignmen" + "t\022!\n\010instance\030\001 \001(\0132\017.proto.Instance\022\020\n\010" + "workerId\030\002 \001(\t*[\n\024ProcessingGuarantees\022\020" + "\n\014ATLEAST_ONCE\020\000\022\017\n\013ATMOST_ONCE\020\001\022\024\n\020EFF" + "ECTIVELY_ONCE\020\002\022\n\n\006MANUAL\020\003*<\n\020Subscript" + "ionType\022\n\n\006SHARED\020\000\022\014\n\010FAILOVER\020\001\022\016\n\nKEY" + "_SHARED\020\002*0\n\024SubscriptionPosition\022\n\n\006LAT" + "EST\020\000\022\014\n\010EARLIEST\020\001*D\n\017CompressionType\022\007" + "\n\003LZ4\020\000\022\010\n\004NONE\020\001\022\010\n\004ZLIB\020\002\022\010\n\004ZSTD\020\003\022\n\n" + "\006SNAPPY\020\004*)\n\rFunctionState\022\013\n\007RUNNING\020\000\022" + "\013\n\007STOPPED\020\001B-\n!org.apache.pulsar.functi" + "ons.protoB\010Functionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_proto_Resources_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_proto_Resources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_Resources_descriptor, new java.lang.String[] { "Cpu", "Ram", "Disk", }); internal_static_proto_RetryDetails_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proto_RetryDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_RetryDetails_descriptor, new java.lang.String[] { "MaxMessageRetries", "DeadLetterTopic", }); internal_static_proto_FunctionDetails_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_proto_FunctionDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_FunctionDetails_descriptor, new java.lang.String[] { "Tenant", "Namespace", "Name", "ClassName", "LogTopic", "ProcessingGuarantees", "UserConfig", "SecretsMap", "Runtime", "AutoAck", "Parallelism", "Source", "Sink", "Resources", "PackageUrl", "RetryDetails", "RuntimeFlags", "ComponentType", "CustomRuntimeOptions", "Builtin", "RetainOrdering", "RetainKeyOrdering", "SubscriptionPosition", }); internal_static_proto_ConsumerSpec_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_proto_ConsumerSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ConsumerSpec_descriptor, new java.lang.String[] { "SchemaType", "SerdeClassName", "IsRegexPattern", "ReceiverQueueSize", "SchemaProperties", "ConsumerProperties", "CryptoSpec", "PoolMessages", }); internal_static_proto_ConsumerSpec_ReceiverQueueSize_descriptor = internal_static_proto_ConsumerSpec_descriptor.getNestedTypes().get(0); internal_static_proto_ConsumerSpec_ReceiverQueueSize_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ConsumerSpec_ReceiverQueueSize_descriptor, new java.lang.String[] { "Value", }); internal_static_proto_ConsumerSpec_SchemaPropertiesEntry_descriptor = internal_static_proto_ConsumerSpec_descriptor.getNestedTypes().get(1); internal_static_proto_ConsumerSpec_SchemaPropertiesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ConsumerSpec_SchemaPropertiesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto_ConsumerSpec_ConsumerPropertiesEntry_descriptor = internal_static_proto_ConsumerSpec_descriptor.getNestedTypes().get(2); internal_static_proto_ConsumerSpec_ConsumerPropertiesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ConsumerSpec_ConsumerPropertiesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto_ProducerSpec_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_proto_ProducerSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_ProducerSpec_descriptor, new java.lang.String[] { "MaxPendingMessages", "MaxPendingMessagesAcrossPartitions", "UseThreadLocalProducers", "CryptoSpec", "BatchBuilder", "CompressionType", }); internal_static_proto_CryptoSpec_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_proto_CryptoSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_CryptoSpec_descriptor, new java.lang.String[] { "CryptoKeyReaderClassName", "CryptoKeyReaderConfig", "ProducerEncryptionKeyName", "ProducerCryptoFailureAction", "ConsumerCryptoFailureAction", }); internal_static_proto_SourceSpec_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_proto_SourceSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_SourceSpec_descriptor, new java.lang.String[] { "ClassName", "Configs", "TypeClassName", "SubscriptionType", "TopicsToSerDeClassName", "InputSpecs", "TimeoutMs", "TopicsPattern", "Builtin", "SubscriptionName", "CleanupSubscription", "SubscriptionPosition", "NegativeAckRedeliveryDelayMs", "SkipToLatest", }); internal_static_proto_SourceSpec_TopicsToSerDeClassNameEntry_descriptor = internal_static_proto_SourceSpec_descriptor.getNestedTypes().get(0); internal_static_proto_SourceSpec_TopicsToSerDeClassNameEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_SourceSpec_TopicsToSerDeClassNameEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto_SourceSpec_InputSpecsEntry_descriptor = internal_static_proto_SourceSpec_descriptor.getNestedTypes().get(1); internal_static_proto_SourceSpec_InputSpecsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_SourceSpec_InputSpecsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto_SinkSpec_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_proto_SinkSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_SinkSpec_descriptor, new java.lang.String[] { "ClassName", "Configs", "TypeClassName", "Topic", "ProducerSpec", "SerDeClassName", "Builtin", "SchemaType", "ForwardSourceMessageProperty", "SchemaProperties", "ConsumerProperties", }); internal_static_proto_SinkSpec_SchemaPropertiesEntry_descriptor = internal_static_proto_SinkSpec_descriptor.getNestedTypes().get(0); internal_static_proto_SinkSpec_SchemaPropertiesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_SinkSpec_SchemaPropertiesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto_SinkSpec_ConsumerPropertiesEntry_descriptor = internal_static_proto_SinkSpec_descriptor.getNestedTypes().get(1); internal_static_proto_SinkSpec_ConsumerPropertiesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_SinkSpec_ConsumerPropertiesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto_PackageLocationMetaData_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_proto_PackageLocationMetaData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_PackageLocationMetaData_descriptor, new java.lang.String[] { "PackagePath", "OriginalFileName", }); internal_static_proto_FunctionMetaData_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_proto_FunctionMetaData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_FunctionMetaData_descriptor, new java.lang.String[] { "FunctionDetails", "PackageLocation", "Version", "CreateTime", "InstanceStates", "FunctionAuthSpec", "TransformFunctionPackageLocation", }); internal_static_proto_FunctionMetaData_InstanceStatesEntry_descriptor = internal_static_proto_FunctionMetaData_descriptor.getNestedTypes().get(0); internal_static_proto_FunctionMetaData_InstanceStatesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_FunctionMetaData_InstanceStatesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto_FunctionAuthenticationSpec_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_proto_FunctionAuthenticationSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_FunctionAuthenticationSpec_descriptor, new java.lang.String[] { "Data", "Provider", }); internal_static_proto_Instance_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_proto_Instance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_Instance_descriptor, new java.lang.String[] { "FunctionMetaData", "InstanceId", }); internal_static_proto_Assignment_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_proto_Assignment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto_Assignment_descriptor, new java.lang.String[] { "Instance", "WorkerId", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy