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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MetricStructuredName
build()
MetricStructuredName
buildPartial()
MetricStructuredName.Builder
clear()
MetricStructuredName.Builder
clearContext()
MetricStructuredName.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
MetricStructuredName.Builder
clearName()
Worker-defined metric name.MetricStructuredName.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
MetricStructuredName.Builder
clearOrigin()
Origin (namespace) of metric name.MetricStructuredName.Builder
clone()
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.Map<String,String>
getContext()
Deprecated.int
getContextCount()
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.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.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.MetricStructuredName
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getMutableContext()
Deprecated.String
getName()
Worker-defined metric name.com.google.protobuf.ByteString
getNameBytes()
Worker-defined metric name.String
getOrigin()
Origin (namespace) of metric name.com.google.protobuf.ByteString
getOriginBytes()
Origin (namespace) of metric name.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
MetricStructuredName.Builder
mergeFrom(MetricStructuredName other)
MetricStructuredName.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MetricStructuredName.Builder
mergeFrom(com.google.protobuf.Message other)
MetricStructuredName.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
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.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.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.MetricStructuredName.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MetricStructuredName.Builder
setName(String value)
Worker-defined metric name.MetricStructuredName.Builder
setNameBytes(com.google.protobuf.ByteString value)
Worker-defined metric name.MetricStructuredName.Builder
setOrigin(String value)
Origin (namespace) of metric name.MetricStructuredName.Builder
setOriginBytes(com.google.protobuf.ByteString value)
Origin (namespace) of metric name.MetricStructuredName.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
MetricStructuredName.Builder
setUnknownFields(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
clear
public MetricStructuredName.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
getDefaultInstanceForType
public MetricStructuredName getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MetricStructuredName build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MetricStructuredName buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MetricStructuredName.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
setField
public MetricStructuredName.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
clearField
public MetricStructuredName.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
clearOneof
public MetricStructuredName.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
setRepeatedField
public MetricStructuredName.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
addRepeatedField
public MetricStructuredName.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
mergeFrom
public MetricStructuredName.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MetricStructuredName.Builder>
-
mergeFrom
public MetricStructuredName.Builder mergeFrom(MetricStructuredName other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getOrigin
in 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:
getOriginBytes
in 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:
getName
in interfaceMetricStructuredNameOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Worker-defined metric name.
string name = 2;
- Specified by:
getNameBytes
in 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:MetricStructuredNameOrBuilder
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:
getContextCount
in 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:
containsContext
in interfaceMetricStructuredNameOrBuilder
-
getContext
@Deprecated public Map<String,String> getContext()
Deprecated.UsegetContextMap()
instead.- Specified by:
getContext
in 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:
getContextMap
in 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:
getContextOrDefault
in 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:
getContextOrThrow
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
mergeUnknownFields
public final MetricStructuredName.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MetricStructuredName.Builder>
-
-