Class Function.SourceSpec
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.apache.pulsar.functions.proto.Function.SourceSpec
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Function.SourceSpecOrBuilder
- Enclosing class:
- Function
public static final class Function.SourceSpec
extends com.google.protobuf.GeneratedMessageV3
implements Function.SourceSpecOrBuilder
Protobuf type
proto.SourceSpec- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeproto.SourceSpecNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsInputSpecs(String key) booleanDeprecated.booleanIf specified, this will refer to an archive that is already present in the servercom.google.protobuf.ByteStringIf specified, this will refer to an archive that is already present in the serverstring className = 1;com.google.protobuf.ByteStringstring className = 1;booleanbool cleanupSubscription = 11;map in json formatcom.google.protobuf.ByteStringmap in json formatstatic Function.SourceSpecstatic final com.google.protobuf.Descriptors.DescriptorDeprecated.intgetInputSpecsOrDefault(String key, Function.ConsumerSpec defaultValue) longuint64 negativeAckRedeliveryDelayMs = 13;com.google.protobuf.Parser<Function.SourceSpec>intbooleanbool skipToLatest = 14;string subscriptionName = 9;com.google.protobuf.ByteStringstring subscriptionName = 9;.proto.SubscriptionPosition subscriptionPosition = 12;int.proto.SubscriptionPosition subscriptionPosition = 12;configs used only when source feeds into functionsintconfigs used only when source feeds into functionslonguint64 timeoutMs = 6;Deprecated.proto.SourceSpec.topicsPattern is deprecated.com.google.protobuf.ByteStringDeprecated.proto.SourceSpec.topicsPattern is deprecated.Deprecated.intDeprecated.Deprecated.getTopicsToSerDeClassNameOrDefault(String key, String defaultValue) Deprecated.Deprecated.string typeClassName = 5;com.google.protobuf.ByteStringstring typeClassName = 5;inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic Function.SourceSpec.Builderstatic Function.SourceSpec.BuildernewBuilder(Function.SourceSpec prototype) protected Function.SourceSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Function.SourceSpecparseDelimitedFrom(InputStream input) static Function.SourceSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Function.SourceSpecparseFrom(byte[] data) static Function.SourceSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Function.SourceSpecparseFrom(com.google.protobuf.ByteString data) static Function.SourceSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Function.SourceSpecparseFrom(com.google.protobuf.CodedInputStream input) static Function.SourceSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Function.SourceSpecparseFrom(InputStream input) static Function.SourceSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Function.SourceSpecparseFrom(ByteBuffer data) static Function.SourceSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Function.SourceSpec>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CLASSNAME_FIELD_NUMBER
public static final int CLASSNAME_FIELD_NUMBER- See Also:
-
CONFIGS_FIELD_NUMBER
public static final int CONFIGS_FIELD_NUMBER- See Also:
-
TYPECLASSNAME_FIELD_NUMBER
public static final int TYPECLASSNAME_FIELD_NUMBER- See Also:
-
SUBSCRIPTIONTYPE_FIELD_NUMBER
public static final int SUBSCRIPTIONTYPE_FIELD_NUMBER- See Also:
-
TOPICSTOSERDECLASSNAME_FIELD_NUMBER
public static final int TOPICSTOSERDECLASSNAME_FIELD_NUMBER- See Also:
-
INPUTSPECS_FIELD_NUMBER
public static final int INPUTSPECS_FIELD_NUMBER- See Also:
-
TIMEOUTMS_FIELD_NUMBER
public static final int TIMEOUTMS_FIELD_NUMBER- See Also:
-
TOPICSPATTERN_FIELD_NUMBER
public static final int TOPICSPATTERN_FIELD_NUMBER- See Also:
-
BUILTIN_FIELD_NUMBER
public static final int BUILTIN_FIELD_NUMBER- See Also:
-
SUBSCRIPTIONNAME_FIELD_NUMBER
public static final int SUBSCRIPTIONNAME_FIELD_NUMBER- See Also:
-
CLEANUPSUBSCRIPTION_FIELD_NUMBER
public static final int CLEANUPSUBSCRIPTION_FIELD_NUMBER- See Also:
-
SUBSCRIPTIONPOSITION_FIELD_NUMBER
public static final int SUBSCRIPTIONPOSITION_FIELD_NUMBER- See Also:
-
NEGATIVEACKREDELIVERYDELAYMS_FIELD_NUMBER
public static final int NEGATIVEACKREDELIVERYDELAYMS_FIELD_NUMBER- See Also:
-
SKIPTOLATEST_FIELD_NUMBER
public static final int SKIPTOLATEST_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getClassName
string className = 1;- Specified by:
getClassNamein interfaceFunction.SourceSpecOrBuilder- Returns:
- The className.
-
getClassNameBytes
public com.google.protobuf.ByteString getClassNameBytes()string className = 1;- Specified by:
getClassNameBytesin interfaceFunction.SourceSpecOrBuilder- Returns:
- The bytes for className.
-
getConfigs
map in json format
string configs = 2;- Specified by:
getConfigsin interfaceFunction.SourceSpecOrBuilder- Returns:
- The configs.
-
getConfigsBytes
public com.google.protobuf.ByteString getConfigsBytes()map in json format
string configs = 2;- Specified by:
getConfigsBytesin interfaceFunction.SourceSpecOrBuilder- Returns:
- The bytes for configs.
-
getTypeClassName
string typeClassName = 5;- Specified by:
getTypeClassNamein interfaceFunction.SourceSpecOrBuilder- Returns:
- The typeClassName.
-
getTypeClassNameBytes
public com.google.protobuf.ByteString getTypeClassNameBytes()string typeClassName = 5;- Specified by:
getTypeClassNameBytesin interfaceFunction.SourceSpecOrBuilder- Returns:
- The bytes for typeClassName.
-
getSubscriptionTypeValue
public int getSubscriptionTypeValue()configs used only when source feeds into functions
.proto.SubscriptionType subscriptionType = 3;- Specified by:
getSubscriptionTypeValuein interfaceFunction.SourceSpecOrBuilder- Returns:
- The enum numeric value on the wire for subscriptionType.
-
getSubscriptionType
configs used only when source feeds into functions
.proto.SubscriptionType subscriptionType = 3;- Specified by:
getSubscriptionTypein interfaceFunction.SourceSpecOrBuilder- Returns:
- The subscriptionType.
-
getTopicsToSerDeClassNameCount
Deprecated.Description copied from interface:Function.SourceSpecOrBuilder@deprecated -- use topicsToSchema
map<string, string> topicsToSerDeClassName = 4 [deprecated = true];- Specified by:
getTopicsToSerDeClassNameCountin interfaceFunction.SourceSpecOrBuilder
-
containsTopicsToSerDeClassName
Deprecated.@deprecated -- use topicsToSchema
map<string, string> topicsToSerDeClassName = 4 [deprecated = true];- Specified by:
containsTopicsToSerDeClassNamein interfaceFunction.SourceSpecOrBuilder
-
getTopicsToSerDeClassName
Deprecated.UsegetTopicsToSerDeClassNameMap()instead.- Specified by:
getTopicsToSerDeClassNamein interfaceFunction.SourceSpecOrBuilder
-
getTopicsToSerDeClassNameMap
Deprecated.@deprecated -- use topicsToSchema
map<string, string> topicsToSerDeClassName = 4 [deprecated = true];- Specified by:
getTopicsToSerDeClassNameMapin interfaceFunction.SourceSpecOrBuilder
-
getTopicsToSerDeClassNameOrDefault
Deprecated.@deprecated -- use topicsToSchema
map<string, string> topicsToSerDeClassName = 4 [deprecated = true];- Specified by:
getTopicsToSerDeClassNameOrDefaultin interfaceFunction.SourceSpecOrBuilder
-
getTopicsToSerDeClassNameOrThrow
Deprecated.@deprecated -- use topicsToSchema
map<string, string> topicsToSerDeClassName = 4 [deprecated = true];- Specified by:
getTopicsToSerDeClassNameOrThrowin interfaceFunction.SourceSpecOrBuilder
-
getInputSpecsCount
public int getInputSpecsCount()Description copied from interface:Function.SourceSpecOrBuildermap<string, .proto.ConsumerSpec> inputSpecs = 10;- Specified by:
getInputSpecsCountin interfaceFunction.SourceSpecOrBuilder
-
containsInputSpecs
map<string, .proto.ConsumerSpec> inputSpecs = 10;- Specified by:
containsInputSpecsin interfaceFunction.SourceSpecOrBuilder
-
getInputSpecs
Deprecated.UsegetInputSpecsMap()instead.- Specified by:
getInputSpecsin interfaceFunction.SourceSpecOrBuilder
-
getInputSpecsMap
map<string, .proto.ConsumerSpec> inputSpecs = 10;- Specified by:
getInputSpecsMapin interfaceFunction.SourceSpecOrBuilder
-
getInputSpecsOrDefault
map<string, .proto.ConsumerSpec> inputSpecs = 10;- Specified by:
getInputSpecsOrDefaultin interfaceFunction.SourceSpecOrBuilder
-
getInputSpecsOrThrow
map<string, .proto.ConsumerSpec> inputSpecs = 10;- Specified by:
getInputSpecsOrThrowin interfaceFunction.SourceSpecOrBuilder
-
getTimeoutMs
public long getTimeoutMs()uint64 timeoutMs = 6;- Specified by:
getTimeoutMsin interfaceFunction.SourceSpecOrBuilder- Returns:
- The timeoutMs.
-
getTopicsPattern
Deprecated.proto.SourceSpec.topicsPattern is deprecated. See Function.proto;l=167string topicsPattern = 7 [deprecated = true];- Specified by:
getTopicsPatternin interfaceFunction.SourceSpecOrBuilder- Returns:
- The topicsPattern.
-
getTopicsPatternBytes
Deprecated.proto.SourceSpec.topicsPattern is deprecated. See Function.proto;l=167string topicsPattern = 7 [deprecated = true];- Specified by:
getTopicsPatternBytesin interfaceFunction.SourceSpecOrBuilder- Returns:
- The bytes for topicsPattern.
-
getBuiltin
If specified, this will refer to an archive that is already present in the server
string builtin = 8;- Specified by:
getBuiltinin interfaceFunction.SourceSpecOrBuilder- Returns:
- The builtin.
-
getBuiltinBytes
public com.google.protobuf.ByteString getBuiltinBytes()If specified, this will refer to an archive that is already present in the server
string builtin = 8;- Specified by:
getBuiltinBytesin interfaceFunction.SourceSpecOrBuilder- Returns:
- The bytes for builtin.
-
getSubscriptionName
string subscriptionName = 9;- Specified by:
getSubscriptionNamein interfaceFunction.SourceSpecOrBuilder- Returns:
- The subscriptionName.
-
getSubscriptionNameBytes
public com.google.protobuf.ByteString getSubscriptionNameBytes()string subscriptionName = 9;- Specified by:
getSubscriptionNameBytesin interfaceFunction.SourceSpecOrBuilder- Returns:
- The bytes for subscriptionName.
-
getCleanupSubscription
public boolean getCleanupSubscription()bool cleanupSubscription = 11;- Specified by:
getCleanupSubscriptionin interfaceFunction.SourceSpecOrBuilder- Returns:
- The cleanupSubscription.
-
getSubscriptionPositionValue
public int getSubscriptionPositionValue().proto.SubscriptionPosition subscriptionPosition = 12;- Specified by:
getSubscriptionPositionValuein interfaceFunction.SourceSpecOrBuilder- Returns:
- The enum numeric value on the wire for subscriptionPosition.
-
getSubscriptionPosition
.proto.SubscriptionPosition subscriptionPosition = 12;- Specified by:
getSubscriptionPositionin interfaceFunction.SourceSpecOrBuilder- Returns:
- The subscriptionPosition.
-
getNegativeAckRedeliveryDelayMs
public long getNegativeAckRedeliveryDelayMs()uint64 negativeAckRedeliveryDelayMs = 13;- Specified by:
getNegativeAckRedeliveryDelayMsin interfaceFunction.SourceSpecOrBuilder- Returns:
- The negativeAckRedeliveryDelayMs.
-
getSkipToLatest
public boolean getSkipToLatest()bool skipToLatest = 14;- Specified by:
getSkipToLatestin interfaceFunction.SourceSpecOrBuilder- Returns:
- The skipToLatest.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Function.SourceSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Function.SourceSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Function.SourceSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Function.SourceSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Function.SourceSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Function.SourceSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Function.SourceSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Function.SourceSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Function.SourceSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Function.SourceSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Function.SourceSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-