public static final class RunnerApi.FunctionSpec extends com.google.protobuf.GeneratedMessageV3 implements RunnerApi.FunctionSpecOrBuilder
A URN along with a parameter object whose schema is determined by the
URN.
This structure is reused in two distinct, but compatible, ways:
1. This can be a specification of the function over PCollections
that a PTransform computes.
2. This can be a specification of a user-defined function, possibly
SDK-specific. (external to this message must be adequate context
to indicate the environment in which the UDF can be understood).
Though not explicit in this proto, there are two possibilities
for the relationship of a runner to this specification that
one should bear in mind:
1. The runner understands the URN. For example, it might be
a well-known URN like "urn:beam:transform:Top" or
"urn:beam:windowfn:FixedWindows" with
an agreed-upon payload (e.g. a number or duration,
respectively).
2. The runner does not understand the URN. It might be an
SDK specific URN such as "urn:beam:dofn:javasdk:1.0"
that indicates to the SDK what the payload is,
such as a serialized Java DoFn from a particular
version of the Beam Java SDK. The payload will often
then be an opaque message such as bytes in a
language-specific serialization format.
Protobuf type org.apache.beam.runner_api.v1.FunctionSpec| Modifier and Type | Class and Description |
|---|---|
static class |
RunnerApi.FunctionSpec.Builder
A URN along with a parameter object whose schema is determined by the
URN.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
PARAMETER_FIELD_NUMBER |
static int |
URN_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static RunnerApi.FunctionSpec |
getDefaultInstance() |
RunnerApi.FunctionSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Any |
getParameter()
(Optional) The data specifying any parameters to the URN.
|
com.google.protobuf.AnyOrBuilder |
getParameterOrBuilder()
(Optional) The data specifying any parameters to the URN.
|
com.google.protobuf.Parser<RunnerApi.FunctionSpec> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getUrn()
(Required) A URN that describes the accompanying payload.
|
com.google.protobuf.ByteString |
getUrnBytes()
(Required) A URN that describes the accompanying payload.
|
int |
hashCode() |
boolean |
hasParameter()
(Optional) The data specifying any parameters to the URN.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RunnerApi.FunctionSpec.Builder |
newBuilder() |
static RunnerApi.FunctionSpec.Builder |
newBuilder(RunnerApi.FunctionSpec prototype) |
RunnerApi.FunctionSpec.Builder |
newBuilderForType() |
protected RunnerApi.FunctionSpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static RunnerApi.FunctionSpec |
parseDelimitedFrom(InputStream input) |
static RunnerApi.FunctionSpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RunnerApi.FunctionSpec |
parseFrom(byte[] data) |
static RunnerApi.FunctionSpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RunnerApi.FunctionSpec |
parseFrom(com.google.protobuf.ByteString data) |
static RunnerApi.FunctionSpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RunnerApi.FunctionSpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RunnerApi.FunctionSpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RunnerApi.FunctionSpec |
parseFrom(InputStream input) |
static RunnerApi.FunctionSpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RunnerApi.FunctionSpec> |
parser() |
RunnerApi.FunctionSpec.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int URN_FIELD_NUMBER
public static final int PARAMETER_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getUrn()
(Required) A URN that describes the accompanying payload. For any URN that is not recognized (by whomever is inspecting it) the parameter payload should be treated as opaque and passed as-is.
string urn = 1;getUrn in interface RunnerApi.FunctionSpecOrBuilderpublic com.google.protobuf.ByteString getUrnBytes()
(Required) A URN that describes the accompanying payload. For any URN that is not recognized (by whomever is inspecting it) the parameter payload should be treated as opaque and passed as-is.
string urn = 1;getUrnBytes in interface RunnerApi.FunctionSpecOrBuilderpublic boolean hasParameter()
(Optional) The data specifying any parameters to the URN. If the URN does not require any arguments, this may be omitted.
.google.protobuf.Any parameter = 2;hasParameter in interface RunnerApi.FunctionSpecOrBuilderpublic com.google.protobuf.Any getParameter()
(Optional) The data specifying any parameters to the URN. If the URN does not require any arguments, this may be omitted.
.google.protobuf.Any parameter = 2;getParameter in interface RunnerApi.FunctionSpecOrBuilderpublic com.google.protobuf.AnyOrBuilder getParameterOrBuilder()
(Optional) The data specifying any parameters to the URN. If the URN does not require any arguments, this may be omitted.
.google.protobuf.Any parameter = 2;getParameterOrBuilder in interface RunnerApi.FunctionSpecOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RunnerApi.FunctionSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RunnerApi.FunctionSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RunnerApi.FunctionSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RunnerApi.FunctionSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RunnerApi.FunctionSpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static RunnerApi.FunctionSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RunnerApi.FunctionSpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RunnerApi.FunctionSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RunnerApi.FunctionSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RunnerApi.FunctionSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RunnerApi.FunctionSpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RunnerApi.FunctionSpec.Builder newBuilder()
public static RunnerApi.FunctionSpec.Builder newBuilder(RunnerApi.FunctionSpec prototype)
public RunnerApi.FunctionSpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RunnerApi.FunctionSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RunnerApi.FunctionSpec getDefaultInstance()
public static com.google.protobuf.Parser<RunnerApi.FunctionSpec> parser()
public com.google.protobuf.Parser<RunnerApi.FunctionSpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RunnerApi.FunctionSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2016–2017 The Apache Software Foundation. All rights reserved.