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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<MetricStructuredName.Builder> implements MetricStructuredNameOrBuilder
Identifies a metric, by describing the source which generated the metric.
Protobuf typegoogle.dataflow.v1beta3.MetricStructuredName
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MetricStructuredName.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MetricStructuredNamebuild()MetricStructuredNamebuildPartial()MetricStructuredName.Builderclear()MetricStructuredName.BuilderclearContext()MetricStructuredName.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)MetricStructuredName.BuilderclearName()Worker-defined metric name.MetricStructuredName.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)MetricStructuredName.BuilderclearOrigin()Origin (namespace) of metric name.MetricStructuredName.Builderclone()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.Map<String,String>getContext()Deprecated.intgetContextCount()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.Map<String,String>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.StringgetContextOrDefault(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.StringgetContextOrThrow(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.MetricStructuredNamegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getMutableContext()Deprecated.StringgetName()Worker-defined metric name.com.google.protobuf.ByteStringgetNameBytes()Worker-defined metric name.StringgetOrigin()Origin (namespace) of metric name.com.google.protobuf.ByteStringgetOriginBytes()Origin (namespace) of metric name.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()MetricStructuredName.BuildermergeFrom(MetricStructuredName other)MetricStructuredName.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MetricStructuredName.BuildermergeFrom(com.google.protobuf.Message other)MetricStructuredName.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MetricStructuredName.BuilderputAllContext(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.MetricStructuredName.BuilderputContext(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.MetricStructuredName.BuilderremoveContext(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.MetricStructuredName.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MetricStructuredName.BuildersetName(String value)Worker-defined metric name.MetricStructuredName.BuildersetNameBytes(com.google.protobuf.ByteString value)Worker-defined metric name.MetricStructuredName.BuildersetOrigin(String value)Origin (namespace) of metric name.MetricStructuredName.BuildersetOriginBytes(com.google.protobuf.ByteString value)Origin (namespace) of metric name.MetricStructuredName.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)MetricStructuredName.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<MetricStructuredName.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
clear
public MetricStructuredName.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
getDefaultInstanceForType
public MetricStructuredName getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public MetricStructuredName build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MetricStructuredName buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MetricStructuredName.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
setField
public MetricStructuredName.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
clearField
public MetricStructuredName.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
clearOneof
public MetricStructuredName.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
setRepeatedField
public MetricStructuredName.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
addRepeatedField
public MetricStructuredName.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
mergeFrom
public MetricStructuredName.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetricStructuredName.Builder>
-
mergeFrom
public MetricStructuredName.Builder mergeFrom(MetricStructuredName other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String 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
public MetricStructuredName.Builder setOrigin(String value)
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
public MetricStructuredName.Builder 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
public MetricStructuredName.Builder setOriginBytes(com.google.protobuf.ByteString value)
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
public String 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
public MetricStructuredName.Builder setName(String value)
Worker-defined metric name.
string name = 2;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public MetricStructuredName.Builder clearName()
Worker-defined metric name.
string name = 2;- Returns:
- This builder for chaining.
-
setNameBytes
public MetricStructuredName.Builder setNameBytes(com.google.protobuf.ByteString value)
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
public boolean containsContext(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. 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 public Map<String,String> getContext()
Deprecated.UsegetContextMap()instead.- Specified by:
getContextin interfaceMetricStructuredNameOrBuilder
-
getContextMap
public Map<String,String> 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
public String 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. 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
public String 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. 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
public MetricStructuredName.Builder clearContext()
-
removeContext
public MetricStructuredName.Builder 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. 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 public Map<String,String> getMutableContext()
Deprecated.Use alternate mutation accessors instead.
-
putContext
public MetricStructuredName.Builder 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. 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
public MetricStructuredName.Builder 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. 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;
-
setUnknownFields
public final MetricStructuredName.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
mergeUnknownFields
public final MetricStructuredName.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
-