Class Function.ConsumerSpec
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.apache.pulsar.functions.proto.Function.ConsumerSpec
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable,Function.ConsumerSpecOrBuilder
- Enclosing class:
- Function
public static final class Function.ConsumerSpec extends com.google.protobuf.GeneratedMessageV3 implements Function.ConsumerSpecOrBuilder
Protobuf typeproto.ConsumerSpec- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFunction.ConsumerSpec.BuilderProtobuf typeproto.ConsumerSpecstatic classFunction.ConsumerSpec.ReceiverQueueSizeProtobuf typeproto.ConsumerSpec.ReceiverQueueSizestatic interfaceFunction.ConsumerSpec.ReceiverQueueSizeOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSUMERPROPERTIES_FIELD_NUMBERstatic intCRYPTOSPEC_FIELD_NUMBERstatic intISREGEXPATTERN_FIELD_NUMBERstatic intPOOLMESSAGES_FIELD_NUMBERstatic intRECEIVERQUEUESIZE_FIELD_NUMBERstatic intSCHEMAPROPERTIES_FIELD_NUMBERstatic intSCHEMATYPE_FIELD_NUMBERstatic intSERDECLASSNAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsConsumerProperties(java.lang.String key)map<string, string> consumerProperties = 6;booleancontainsSchemaProperties(java.lang.String key)map<string, string> schemaProperties = 5;booleanequals(java.lang.Object obj)java.util.Map<java.lang.String,java.lang.String>getConsumerProperties()Deprecated.intgetConsumerPropertiesCount()map<string, string> consumerProperties = 6;java.util.Map<java.lang.String,java.lang.String>getConsumerPropertiesMap()map<string, string> consumerProperties = 6;java.lang.StringgetConsumerPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue)map<string, string> consumerProperties = 6;java.lang.StringgetConsumerPropertiesOrThrow(java.lang.String key)map<string, string> consumerProperties = 6;Function.CryptoSpecgetCryptoSpec().proto.CryptoSpec cryptoSpec = 7;Function.CryptoSpecOrBuildergetCryptoSpecOrBuilder().proto.CryptoSpec cryptoSpec = 7;static Function.ConsumerSpecgetDefaultInstance()Function.ConsumerSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetIsRegexPattern()bool isRegexPattern = 3;com.google.protobuf.Parser<Function.ConsumerSpec>getParserForType()booleangetPoolMessages()bool poolMessages = 8;Function.ConsumerSpec.ReceiverQueueSizegetReceiverQueueSize().proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4;Function.ConsumerSpec.ReceiverQueueSizeOrBuildergetReceiverQueueSizeOrBuilder().proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4;java.util.Map<java.lang.String,java.lang.String>getSchemaProperties()Deprecated.intgetSchemaPropertiesCount()map<string, string> schemaProperties = 5;java.util.Map<java.lang.String,java.lang.String>getSchemaPropertiesMap()map<string, string> schemaProperties = 5;java.lang.StringgetSchemaPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue)map<string, string> schemaProperties = 5;java.lang.StringgetSchemaPropertiesOrThrow(java.lang.String key)map<string, string> schemaProperties = 5;java.lang.StringgetSchemaType()string schemaType = 1;com.google.protobuf.ByteStringgetSchemaTypeBytes()string schemaType = 1;java.lang.StringgetSerdeClassName()string serdeClassName = 2;com.google.protobuf.ByteStringgetSerdeClassNameBytes()string serdeClassName = 2;intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasCryptoSpec().proto.CryptoSpec cryptoSpec = 7;inthashCode()booleanhasReceiverQueueSize().proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Function.ConsumerSpec.BuildernewBuilder()static Function.ConsumerSpec.BuildernewBuilder(Function.ConsumerSpec prototype)Function.ConsumerSpec.BuildernewBuilderForType()protected Function.ConsumerSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Function.ConsumerSpecparseDelimitedFrom(java.io.InputStream input)static Function.ConsumerSpecparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Function.ConsumerSpecparseFrom(byte[] data)static Function.ConsumerSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Function.ConsumerSpecparseFrom(com.google.protobuf.ByteString data)static Function.ConsumerSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Function.ConsumerSpecparseFrom(com.google.protobuf.CodedInputStream input)static Function.ConsumerSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Function.ConsumerSpecparseFrom(java.io.InputStream input)static Function.ConsumerSpecparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Function.ConsumerSpecparseFrom(java.nio.ByteBuffer data)static Function.ConsumerSpecparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Function.ConsumerSpec>parser()Function.ConsumerSpec.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SCHEMATYPE_FIELD_NUMBER
public static final int SCHEMATYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERDECLASSNAME_FIELD_NUMBER
public static final int SERDECLASSNAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ISREGEXPATTERN_FIELD_NUMBER
public static final int ISREGEXPATTERN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RECEIVERQUEUESIZE_FIELD_NUMBER
public static final int RECEIVERQUEUESIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCHEMAPROPERTIES_FIELD_NUMBER
public static final int SCHEMAPROPERTIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONSUMERPROPERTIES_FIELD_NUMBER
public static final int CONSUMERPROPERTIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CRYPTOSPEC_FIELD_NUMBER
public static final int CRYPTOSPEC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POOLMESSAGES_FIELD_NUMBER
public static final int POOLMESSAGES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSchemaType
public java.lang.String getSchemaType()
string schemaType = 1;- Specified by:
getSchemaTypein interfaceFunction.ConsumerSpecOrBuilder- Returns:
- The schemaType.
-
getSchemaTypeBytes
public com.google.protobuf.ByteString getSchemaTypeBytes()
string schemaType = 1;- Specified by:
getSchemaTypeBytesin interfaceFunction.ConsumerSpecOrBuilder- Returns:
- The bytes for schemaType.
-
getSerdeClassName
public java.lang.String getSerdeClassName()
string serdeClassName = 2;- Specified by:
getSerdeClassNamein interfaceFunction.ConsumerSpecOrBuilder- Returns:
- The serdeClassName.
-
getSerdeClassNameBytes
public com.google.protobuf.ByteString getSerdeClassNameBytes()
string serdeClassName = 2;- Specified by:
getSerdeClassNameBytesin interfaceFunction.ConsumerSpecOrBuilder- Returns:
- The bytes for serdeClassName.
-
getIsRegexPattern
public boolean getIsRegexPattern()
bool isRegexPattern = 3;- Specified by:
getIsRegexPatternin interfaceFunction.ConsumerSpecOrBuilder- Returns:
- The isRegexPattern.
-
hasReceiverQueueSize
public boolean hasReceiverQueueSize()
.proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4;- Specified by:
hasReceiverQueueSizein interfaceFunction.ConsumerSpecOrBuilder- Returns:
- Whether the receiverQueueSize field is set.
-
getReceiverQueueSize
public Function.ConsumerSpec.ReceiverQueueSize getReceiverQueueSize()
.proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4;- Specified by:
getReceiverQueueSizein interfaceFunction.ConsumerSpecOrBuilder- Returns:
- The receiverQueueSize.
-
getReceiverQueueSizeOrBuilder
public Function.ConsumerSpec.ReceiverQueueSizeOrBuilder getReceiverQueueSizeOrBuilder()
.proto.ConsumerSpec.ReceiverQueueSize receiverQueueSize = 4;- Specified by:
getReceiverQueueSizeOrBuilderin interfaceFunction.ConsumerSpecOrBuilder
-
getSchemaPropertiesCount
public int getSchemaPropertiesCount()
Description copied from interface:Function.ConsumerSpecOrBuildermap<string, string> schemaProperties = 5;- Specified by:
getSchemaPropertiesCountin interfaceFunction.ConsumerSpecOrBuilder
-
containsSchemaProperties
public boolean containsSchemaProperties(java.lang.String key)
map<string, string> schemaProperties = 5;- Specified by:
containsSchemaPropertiesin interfaceFunction.ConsumerSpecOrBuilder
-
getSchemaProperties
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getSchemaProperties()
Deprecated.UsegetSchemaPropertiesMap()instead.- Specified by:
getSchemaPropertiesin interfaceFunction.ConsumerSpecOrBuilder
-
getSchemaPropertiesMap
public java.util.Map<java.lang.String,java.lang.String> getSchemaPropertiesMap()
map<string, string> schemaProperties = 5;- Specified by:
getSchemaPropertiesMapin interfaceFunction.ConsumerSpecOrBuilder
-
getSchemaPropertiesOrDefault
public java.lang.String getSchemaPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue)map<string, string> schemaProperties = 5;- Specified by:
getSchemaPropertiesOrDefaultin interfaceFunction.ConsumerSpecOrBuilder
-
getSchemaPropertiesOrThrow
public java.lang.String getSchemaPropertiesOrThrow(java.lang.String key)
map<string, string> schemaProperties = 5;- Specified by:
getSchemaPropertiesOrThrowin interfaceFunction.ConsumerSpecOrBuilder
-
getConsumerPropertiesCount
public int getConsumerPropertiesCount()
Description copied from interface:Function.ConsumerSpecOrBuildermap<string, string> consumerProperties = 6;- Specified by:
getConsumerPropertiesCountin interfaceFunction.ConsumerSpecOrBuilder
-
containsConsumerProperties
public boolean containsConsumerProperties(java.lang.String key)
map<string, string> consumerProperties = 6;- Specified by:
containsConsumerPropertiesin interfaceFunction.ConsumerSpecOrBuilder
-
getConsumerProperties
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getConsumerProperties()
Deprecated.UsegetConsumerPropertiesMap()instead.- Specified by:
getConsumerPropertiesin interfaceFunction.ConsumerSpecOrBuilder
-
getConsumerPropertiesMap
public java.util.Map<java.lang.String,java.lang.String> getConsumerPropertiesMap()
map<string, string> consumerProperties = 6;- Specified by:
getConsumerPropertiesMapin interfaceFunction.ConsumerSpecOrBuilder
-
getConsumerPropertiesOrDefault
public java.lang.String getConsumerPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue)map<string, string> consumerProperties = 6;- Specified by:
getConsumerPropertiesOrDefaultin interfaceFunction.ConsumerSpecOrBuilder
-
getConsumerPropertiesOrThrow
public java.lang.String getConsumerPropertiesOrThrow(java.lang.String key)
map<string, string> consumerProperties = 6;- Specified by:
getConsumerPropertiesOrThrowin interfaceFunction.ConsumerSpecOrBuilder
-
hasCryptoSpec
public boolean hasCryptoSpec()
.proto.CryptoSpec cryptoSpec = 7;- Specified by:
hasCryptoSpecin interfaceFunction.ConsumerSpecOrBuilder- Returns:
- Whether the cryptoSpec field is set.
-
getCryptoSpec
public Function.CryptoSpec getCryptoSpec()
.proto.CryptoSpec cryptoSpec = 7;- Specified by:
getCryptoSpecin interfaceFunction.ConsumerSpecOrBuilder- Returns:
- The cryptoSpec.
-
getCryptoSpecOrBuilder
public Function.CryptoSpecOrBuilder getCryptoSpecOrBuilder()
.proto.CryptoSpec cryptoSpec = 7;- Specified by:
getCryptoSpecOrBuilderin interfaceFunction.ConsumerSpecOrBuilder
-
getPoolMessages
public boolean getPoolMessages()
bool poolMessages = 8;- Specified by:
getPoolMessagesin interfaceFunction.ConsumerSpecOrBuilder- Returns:
- The poolMessages.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- 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.ConsumerSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Function.ConsumerSpec parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Function.ConsumerSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Function.ConsumerSpec 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.ConsumerSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Function.ConsumerSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Function.ConsumerSpec parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Function.ConsumerSpec parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Function.ConsumerSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Function.ConsumerSpec parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Function.ConsumerSpec parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Function.ConsumerSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Function.ConsumerSpec.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Function.ConsumerSpec.Builder newBuilder()
-
newBuilder
public static Function.ConsumerSpec.Builder newBuilder(Function.ConsumerSpec prototype)
-
toBuilder
public Function.ConsumerSpec.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Function.ConsumerSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Function.ConsumerSpec getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Function.ConsumerSpec> parser()
-
getParserForType
public com.google.protobuf.Parser<Function.ConsumerSpec> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Function.ConsumerSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-