Package com.google.dataflow.v1beta3
Class MetricStructuredName.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MetricStructuredName.Builder>
com.google.dataflow.v1beta3.MetricStructuredName.Builder
- All Implemented Interfaces:
MetricStructuredNameOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MetricStructuredName
public static final class MetricStructuredName.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MetricStructuredName.Builder>
implements MetricStructuredNameOrBuilder
Identifies a metric, by describing the source which generated the metric.Protobuf type
google.dataflow.v1beta3.MetricStructuredName-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Worker-defined metric name.Origin (namespace) of metric name.booleancontainsContext(String key) Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection.Deprecated.intZero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection.Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection.getContextOrDefault(String key, String defaultValue) Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection.getContextOrThrow(String key) Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.getName()Worker-defined metric name.com.google.protobuf.ByteStringWorker-defined metric name.Origin (namespace) of metric name.com.google.protobuf.ByteStringOrigin (namespace) of metric name.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(MetricStructuredName other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllContext(Map<String, String> values) Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection.putContext(String key, String value) Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection.removeContext(String key) Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection.Worker-defined metric name.setNameBytes(com.google.protobuf.ByteString value) Worker-defined metric name.Origin (namespace) of metric name.setOriginBytes(com.google.protobuf.ByteString value) Origin (namespace) of metric name.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<MetricStructuredName.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<MetricStructuredName.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MetricStructuredName.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MetricStructuredName.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MetricStructuredName.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetricStructuredName.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MetricStructuredName.Builder>
-
mergeFrom
public MetricStructuredName.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetricStructuredName.Builder>- Throws:
IOException
-
getOrigin
Origin (namespace) of metric name. May be blank for user-define metrics; will be "dataflow" for metrics defined by the Dataflow service or SDK.
string origin = 1;- Specified by:
getOriginin interfaceMetricStructuredNameOrBuilder- Returns:
- The origin.
-
getOriginBytes
public com.google.protobuf.ByteString getOriginBytes()Origin (namespace) of metric name. May be blank for user-define metrics; will be "dataflow" for metrics defined by the Dataflow service or SDK.
string origin = 1;- Specified by:
getOriginBytesin interfaceMetricStructuredNameOrBuilder- Returns:
- The bytes for origin.
-
setOrigin
Origin (namespace) of metric name. May be blank for user-define metrics; will be "dataflow" for metrics defined by the Dataflow service or SDK.
string origin = 1;- Parameters:
value- The origin to set.- Returns:
- This builder for chaining.
-
clearOrigin
Origin (namespace) of metric name. May be blank for user-define metrics; will be "dataflow" for metrics defined by the Dataflow service or SDK.
string origin = 1;- Returns:
- This builder for chaining.
-
setOriginBytes
Origin (namespace) of metric name. May be blank for user-define metrics; will be "dataflow" for metrics defined by the Dataflow service or SDK.
string origin = 1;- Parameters:
value- The bytes for origin to set.- Returns:
- This builder for chaining.
-
getName
Worker-defined metric name.
string name = 2;- Specified by:
getNamein interfaceMetricStructuredNameOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Worker-defined metric name.
string name = 2;- Specified by:
getNameBytesin interfaceMetricStructuredNameOrBuilder- Returns:
- The bytes for name.
-
setName
Worker-defined metric name.
string name = 2;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Worker-defined metric name.
string name = 2;- Returns:
- This builder for chaining.
-
setNameBytes
Worker-defined metric name.
string name = 2;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getContextCount
public int getContextCount()Description copied from interface:MetricStructuredNameOrBuilderZero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated with steps will have context['step'] = <step-name>. Counters associated with PCollections in the SDK will have context['pcollection'] = <pcollection-name>.
map<string, string> context = 3;- Specified by:
getContextCountin interfaceMetricStructuredNameOrBuilder
-
containsContext
Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated with steps will have context['step'] = <step-name>. Counters associated with PCollections in the SDK will have context['pcollection'] = <pcollection-name>.
map<string, string> context = 3;- Specified by:
containsContextin interfaceMetricStructuredNameOrBuilder
-
getContext
Deprecated.UsegetContextMap()instead.- Specified by:
getContextin interfaceMetricStructuredNameOrBuilder
-
getContextMap
Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated with steps will have context['step'] = <step-name>. Counters associated with PCollections in the SDK will have context['pcollection'] = <pcollection-name>.
map<string, string> context = 3;- Specified by:
getContextMapin interfaceMetricStructuredNameOrBuilder
-
getContextOrDefault
Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated with steps will have context['step'] = <step-name>. Counters associated with PCollections in the SDK will have context['pcollection'] = <pcollection-name>.
map<string, string> context = 3;- Specified by:
getContextOrDefaultin interfaceMetricStructuredNameOrBuilder
-
getContextOrThrow
Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated with steps will have context['step'] = <step-name>. Counters associated with PCollections in the SDK will have context['pcollection'] = <pcollection-name>.
map<string, string> context = 3;- Specified by:
getContextOrThrowin interfaceMetricStructuredNameOrBuilder
-
clearContext
-
removeContext
Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated with steps will have context['step'] = <step-name>. Counters associated with PCollections in the SDK will have context['pcollection'] = <pcollection-name>.
map<string, string> context = 3; -
getMutableContext
Deprecated.Use alternate mutation accessors instead. -
putContext
Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated with steps will have context['step'] = <step-name>. Counters associated with PCollections in the SDK will have context['pcollection'] = <pcollection-name>.
map<string, string> context = 3; -
putAllContext
Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. For example, built-in counters associated with steps will have context['step'] = <step-name>. Counters associated with PCollections in the SDK will have context['pcollection'] = <pcollection-name>.
map<string, string> context = 3;
-