public static final class RunnerApi.FunctionSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RunnerApi.FunctionSpec.Builder> 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 | Method and Description |
|---|---|
RunnerApi.FunctionSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RunnerApi.FunctionSpec |
build() |
RunnerApi.FunctionSpec |
buildPartial() |
RunnerApi.FunctionSpec.Builder |
clear() |
RunnerApi.FunctionSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RunnerApi.FunctionSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RunnerApi.FunctionSpec.Builder |
clearPayload()
(Optional) The data specifying any parameters to the URN.
|
RunnerApi.FunctionSpec.Builder |
clearUrn()
(Required) A URN that describes the accompanying payload.
|
RunnerApi.FunctionSpec.Builder |
clone() |
RunnerApi.FunctionSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getPayload()
(Optional) The data specifying any parameters to the URN.
|
String |
getUrn()
(Required) A URN that describes the accompanying payload.
|
com.google.protobuf.ByteString |
getUrnBytes()
(Required) A URN that describes the accompanying payload.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RunnerApi.FunctionSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RunnerApi.FunctionSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
RunnerApi.FunctionSpec.Builder |
mergeFrom(RunnerApi.FunctionSpec other) |
RunnerApi.FunctionSpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RunnerApi.FunctionSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RunnerApi.FunctionSpec.Builder |
setPayload(com.google.protobuf.ByteString value)
(Optional) The data specifying any parameters to the URN.
|
RunnerApi.FunctionSpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RunnerApi.FunctionSpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RunnerApi.FunctionSpec.Builder |
setUrn(String value)
(Required) A URN that describes the accompanying payload.
|
RunnerApi.FunctionSpec.Builder |
setUrnBytes(com.google.protobuf.ByteString value)
(Required) A URN that describes the accompanying payload.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RunnerApi.FunctionSpec.Builder>public RunnerApi.FunctionSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RunnerApi.FunctionSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RunnerApi.FunctionSpec.Builder>public RunnerApi.FunctionSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RunnerApi.FunctionSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RunnerApi.FunctionSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RunnerApi.FunctionSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RunnerApi.FunctionSpec.Builder>public RunnerApi.FunctionSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RunnerApi.FunctionSpec.Builder>public RunnerApi.FunctionSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RunnerApi.FunctionSpec.Builder>public RunnerApi.FunctionSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RunnerApi.FunctionSpec.Builder>public RunnerApi.FunctionSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RunnerApi.FunctionSpec.Builder>public RunnerApi.FunctionSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RunnerApi.FunctionSpec.Builder>public RunnerApi.FunctionSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RunnerApi.FunctionSpec.Builder>public RunnerApi.FunctionSpec.Builder mergeFrom(RunnerApi.FunctionSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RunnerApi.FunctionSpec.Builder>public RunnerApi.FunctionSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RunnerApi.FunctionSpec.Builder>IOExceptionpublic 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 RunnerApi.FunctionSpec.Builder setUrn(String value)
(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;public RunnerApi.FunctionSpec.Builder clearUrn()
(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;public RunnerApi.FunctionSpec.Builder setUrnBytes(com.google.protobuf.ByteString value)
(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;public com.google.protobuf.ByteString getPayload()
(Optional) The data specifying any parameters to the URN. If the URN does not require any arguments, this may be omitted.
bytes payload = 3;getPayload in interface RunnerApi.FunctionSpecOrBuilderpublic RunnerApi.FunctionSpec.Builder setPayload(com.google.protobuf.ByteString value)
(Optional) The data specifying any parameters to the URN. If the URN does not require any arguments, this may be omitted.
bytes payload = 3;public RunnerApi.FunctionSpec.Builder clearPayload()
(Optional) The data specifying any parameters to the URN. If the URN does not require any arguments, this may be omitted.
bytes payload = 3;public final RunnerApi.FunctionSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RunnerApi.FunctionSpec.Builder>public final RunnerApi.FunctionSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RunnerApi.FunctionSpec.Builder>Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.