Package org.apache.spark.status.protobuf
Class StoreTypes.SourceProgress.Builder
Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<StoreTypes.SourceProgress.Builder>
org.apache.spark.status.protobuf.StoreTypes.SourceProgress.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,StoreTypes.SourceProgressOrBuilder
- Enclosing class:
- StoreTypes.SourceProgress
public static final class StoreTypes.SourceProgress.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<StoreTypes.SourceProgress.Builder>
implements StoreTypes.SourceProgressOrBuilder
Protobuf type
org.apache.spark.status.protobuf.SourceProgress
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
optional string description = 1;
optional string end_offset = 3;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) double input_rows_per_second = 6;
optional string latest_offset = 4;
int64 num_input_rows = 5;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) double processed_rows_per_second = 7;
optional string start_offset = 2;
clone()
boolean
containsMetrics
(String key) map<string, string> metrics = 8;
optional string description = 1;
com.google.protobuf.ByteString
optional string description = 1;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
optional string end_offset = 3;
com.google.protobuf.ByteString
optional string end_offset = 3;
double
double input_rows_per_second = 6;
optional string latest_offset = 4;
com.google.protobuf.ByteString
optional string latest_offset = 4;
Deprecated.int
map<string, string> metrics = 8;
map<string, string> metrics = 8;
getMetricsOrDefault
(String key, String defaultValue) map<string, string> metrics = 8;
getMetricsOrThrow
(String key) map<string, string> metrics = 8;
Deprecated.long
int64 num_input_rows = 5;
double
double processed_rows_per_second = 7;
optional string start_offset = 2;
com.google.protobuf.ByteString
optional string start_offset = 2;
boolean
optional string description = 1;
boolean
optional string end_offset = 3;
boolean
optional string latest_offset = 4;
boolean
optional string start_offset = 2;
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) putAllMetrics
(Map<String, String> values) map<string, string> metrics = 8;
putMetrics
(String key, String value) map<string, string> metrics = 8;
removeMetrics
(String key) map<string, string> metrics = 8;
setDescription
(String value) optional string description = 1;
setDescriptionBytes
(com.google.protobuf.ByteString value) optional string description = 1;
setEndOffset
(String value) optional string end_offset = 3;
setEndOffsetBytes
(com.google.protobuf.ByteString value) optional string end_offset = 3;
setInputRowsPerSecond
(double value) double input_rows_per_second = 6;
setLatestOffset
(String value) optional string latest_offset = 4;
setLatestOffsetBytes
(com.google.protobuf.ByteString value) optional string latest_offset = 4;
setNumInputRows
(long value) int64 num_input_rows = 5;
setProcessedRowsPerSecond
(double value) double processed_rows_per_second = 7;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartOffset
(String value) optional string start_offset = 2;
setStartOffsetBytes
(com.google.protobuf.ByteString value) optional string start_offset = 2;
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForField
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
mergeFrom
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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() -
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<StoreTypes.SourceProgress.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<StoreTypes.SourceProgress.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.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<StoreTypes.SourceProgress.Builder>
-
setField
public StoreTypes.SourceProgress.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<StoreTypes.SourceProgress.Builder>
-
clearField
public StoreTypes.SourceProgress.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<StoreTypes.SourceProgress.Builder>
-
clearOneof
public StoreTypes.SourceProgress.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<StoreTypes.SourceProgress.Builder>
-
setRepeatedField
public StoreTypes.SourceProgress.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<StoreTypes.SourceProgress.Builder>
-
addRepeatedField
public StoreTypes.SourceProgress.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<StoreTypes.SourceProgress.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<StoreTypes.SourceProgress.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<StoreTypes.SourceProgress.Builder>
-
mergeFrom
public StoreTypes.SourceProgress.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<StoreTypes.SourceProgress.Builder>
- Throws:
IOException
-
hasDescription
public boolean hasDescription()optional string description = 1;
- Specified by:
hasDescription
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
optional string description = 1;
- Specified by:
getDescription
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()optional string description = 1;
- Specified by:
getDescriptionBytes
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- The bytes for description.
-
setDescription
optional string description = 1;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
optional string description = 1;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
optional string description = 1;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasStartOffset
public boolean hasStartOffset()optional string start_offset = 2;
- Specified by:
hasStartOffset
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- Whether the startOffset field is set.
-
getStartOffset
optional string start_offset = 2;
- Specified by:
getStartOffset
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- The startOffset.
-
getStartOffsetBytes
public com.google.protobuf.ByteString getStartOffsetBytes()optional string start_offset = 2;
- Specified by:
getStartOffsetBytes
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- The bytes for startOffset.
-
setStartOffset
optional string start_offset = 2;
- Parameters:
value
- The startOffset to set.- Returns:
- This builder for chaining.
-
clearStartOffset
optional string start_offset = 2;
- Returns:
- This builder for chaining.
-
setStartOffsetBytes
optional string start_offset = 2;
- Parameters:
value
- The bytes for startOffset to set.- Returns:
- This builder for chaining.
-
hasEndOffset
public boolean hasEndOffset()optional string end_offset = 3;
- Specified by:
hasEndOffset
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- Whether the endOffset field is set.
-
getEndOffset
optional string end_offset = 3;
- Specified by:
getEndOffset
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- The endOffset.
-
getEndOffsetBytes
public com.google.protobuf.ByteString getEndOffsetBytes()optional string end_offset = 3;
- Specified by:
getEndOffsetBytes
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- The bytes for endOffset.
-
setEndOffset
optional string end_offset = 3;
- Parameters:
value
- The endOffset to set.- Returns:
- This builder for chaining.
-
clearEndOffset
optional string end_offset = 3;
- Returns:
- This builder for chaining.
-
setEndOffsetBytes
optional string end_offset = 3;
- Parameters:
value
- The bytes for endOffset to set.- Returns:
- This builder for chaining.
-
hasLatestOffset
public boolean hasLatestOffset()optional string latest_offset = 4;
- Specified by:
hasLatestOffset
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- Whether the latestOffset field is set.
-
getLatestOffset
optional string latest_offset = 4;
- Specified by:
getLatestOffset
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- The latestOffset.
-
getLatestOffsetBytes
public com.google.protobuf.ByteString getLatestOffsetBytes()optional string latest_offset = 4;
- Specified by:
getLatestOffsetBytes
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- The bytes for latestOffset.
-
setLatestOffset
optional string latest_offset = 4;
- Parameters:
value
- The latestOffset to set.- Returns:
- This builder for chaining.
-
clearLatestOffset
optional string latest_offset = 4;
- Returns:
- This builder for chaining.
-
setLatestOffsetBytes
optional string latest_offset = 4;
- Parameters:
value
- The bytes for latestOffset to set.- Returns:
- This builder for chaining.
-
getNumInputRows
public long getNumInputRows()int64 num_input_rows = 5;
- Specified by:
getNumInputRows
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- The numInputRows.
-
setNumInputRows
int64 num_input_rows = 5;
- Parameters:
value
- The numInputRows to set.- Returns:
- This builder for chaining.
-
clearNumInputRows
int64 num_input_rows = 5;
- Returns:
- This builder for chaining.
-
getInputRowsPerSecond
public double getInputRowsPerSecond()double input_rows_per_second = 6;
- Specified by:
getInputRowsPerSecond
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- The inputRowsPerSecond.
-
setInputRowsPerSecond
double input_rows_per_second = 6;
- Parameters:
value
- The inputRowsPerSecond to set.- Returns:
- This builder for chaining.
-
clearInputRowsPerSecond
double input_rows_per_second = 6;
- Returns:
- This builder for chaining.
-
getProcessedRowsPerSecond
public double getProcessedRowsPerSecond()double processed_rows_per_second = 7;
- Specified by:
getProcessedRowsPerSecond
in interfaceStoreTypes.SourceProgressOrBuilder
- Returns:
- The processedRowsPerSecond.
-
setProcessedRowsPerSecond
double processed_rows_per_second = 7;
- Parameters:
value
- The processedRowsPerSecond to set.- Returns:
- This builder for chaining.
-
clearProcessedRowsPerSecond
double processed_rows_per_second = 7;
- Returns:
- This builder for chaining.
-
getMetricsCount
public int getMetricsCount()Description copied from interface:StoreTypes.SourceProgressOrBuilder
map<string, string> metrics = 8;
- Specified by:
getMetricsCount
in interfaceStoreTypes.SourceProgressOrBuilder
-
containsMetrics
map<string, string> metrics = 8;
- Specified by:
containsMetrics
in interfaceStoreTypes.SourceProgressOrBuilder
-
getMetrics
Deprecated.UsegetMetricsMap()
instead.- Specified by:
getMetrics
in interfaceStoreTypes.SourceProgressOrBuilder
-
getMetricsMap
map<string, string> metrics = 8;
- Specified by:
getMetricsMap
in interfaceStoreTypes.SourceProgressOrBuilder
-
getMetricsOrDefault
map<string, string> metrics = 8;
- Specified by:
getMetricsOrDefault
in interfaceStoreTypes.SourceProgressOrBuilder
-
getMetricsOrThrow
map<string, string> metrics = 8;
- Specified by:
getMetricsOrThrow
in interfaceStoreTypes.SourceProgressOrBuilder
-
clearMetrics
-
removeMetrics
map<string, string> metrics = 8;
-
getMutableMetrics
Deprecated.Use alternate mutation accessors instead. -
putMetrics
map<string, string> metrics = 8;
-
putAllMetrics
map<string, string> metrics = 8;
-
setUnknownFields
public final StoreTypes.SourceProgress.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<StoreTypes.SourceProgress.Builder>
-
mergeUnknownFields
public final StoreTypes.SourceProgress.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<StoreTypes.SourceProgress.Builder>
-