Package org.apache.spark.status.protobuf
Class StoreTypes.ProcessSummary.Builder
Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<StoreTypes.ProcessSummary.Builder>
org.apache.spark.status.protobuf.StoreTypes.ProcessSummary.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,StoreTypes.ProcessSummaryOrBuilder
- Enclosing class:
- StoreTypes.ProcessSummary
public static final class StoreTypes.ProcessSummary.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<StoreTypes.ProcessSummary.Builder>
implements StoreTypes.ProcessSummaryOrBuilder
Protobuf type
org.apache.spark.status.protobuf.ProcessSummary
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
int64 add_time = 5;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) optional string host_port = 2;
clearId()
optional string id = 1;
bool is_active = 3;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional int64 remove_time = 6;
int32 total_cores = 4;
clone()
boolean
map<string, string> process_logs = 7;
long
int64 add_time = 5;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
optional string host_port = 2;
com.google.protobuf.ByteString
optional string host_port = 2;
getId()
optional string id = 1;
com.google.protobuf.ByteString
optional string id = 1;
boolean
bool is_active = 3;
Deprecated.Deprecated.int
map<string, string> process_logs = 7;
map<string, string> process_logs = 7;
getProcessLogsOrDefault
(String key, String defaultValue) map<string, string> process_logs = 7;
map<string, string> process_logs = 7;
long
optional int64 remove_time = 6;
int
int32 total_cores = 4;
boolean
optional string host_port = 2;
boolean
hasId()
optional string id = 1;
boolean
optional int64 remove_time = 6;
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) putAllProcessLogs
(Map<String, String> values) map<string, string> process_logs = 7;
putProcessLogs
(String key, String value) map<string, string> process_logs = 7;
removeProcessLogs
(String key) map<string, string> process_logs = 7;
setAddTime
(long value) int64 add_time = 5;
setHostPort
(String value) optional string host_port = 2;
setHostPortBytes
(com.google.protobuf.ByteString value) optional string host_port = 2;
optional string id = 1;
setIdBytes
(com.google.protobuf.ByteString value) optional string id = 1;
setIsActive
(boolean value) bool is_active = 3;
setRemoveTime
(long value) optional int64 remove_time = 6;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTotalCores
(int value) int32 total_cores = 4;
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.ProcessSummary.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.ProcessSummary.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.ProcessSummary.Builder>
-
setField
public StoreTypes.ProcessSummary.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.ProcessSummary.Builder>
-
clearField
public StoreTypes.ProcessSummary.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.ProcessSummary.Builder>
-
clearOneof
public StoreTypes.ProcessSummary.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.ProcessSummary.Builder>
-
setRepeatedField
public StoreTypes.ProcessSummary.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.ProcessSummary.Builder>
-
addRepeatedField
public StoreTypes.ProcessSummary.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.ProcessSummary.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<StoreTypes.ProcessSummary.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<StoreTypes.ProcessSummary.Builder>
-
mergeFrom
public StoreTypes.ProcessSummary.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.ProcessSummary.Builder>
- Throws:
IOException
-
hasId
public boolean hasId()optional string id = 1;
- Specified by:
hasId
in interfaceStoreTypes.ProcessSummaryOrBuilder
- Returns:
- Whether the id field is set.
-
getId
optional string id = 1;
- Specified by:
getId
in interfaceStoreTypes.ProcessSummaryOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()optional string id = 1;
- Specified by:
getIdBytes
in interfaceStoreTypes.ProcessSummaryOrBuilder
- Returns:
- The bytes for id.
-
setId
optional string id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
optional string id = 1;
- Returns:
- This builder for chaining.
-
setIdBytes
optional string id = 1;
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasHostPort
public boolean hasHostPort()optional string host_port = 2;
- Specified by:
hasHostPort
in interfaceStoreTypes.ProcessSummaryOrBuilder
- Returns:
- Whether the hostPort field is set.
-
getHostPort
optional string host_port = 2;
- Specified by:
getHostPort
in interfaceStoreTypes.ProcessSummaryOrBuilder
- Returns:
- The hostPort.
-
getHostPortBytes
public com.google.protobuf.ByteString getHostPortBytes()optional string host_port = 2;
- Specified by:
getHostPortBytes
in interfaceStoreTypes.ProcessSummaryOrBuilder
- Returns:
- The bytes for hostPort.
-
setHostPort
optional string host_port = 2;
- Parameters:
value
- The hostPort to set.- Returns:
- This builder for chaining.
-
clearHostPort
optional string host_port = 2;
- Returns:
- This builder for chaining.
-
setHostPortBytes
optional string host_port = 2;
- Parameters:
value
- The bytes for hostPort to set.- Returns:
- This builder for chaining.
-
getIsActive
public boolean getIsActive()bool is_active = 3;
- Specified by:
getIsActive
in interfaceStoreTypes.ProcessSummaryOrBuilder
- Returns:
- The isActive.
-
setIsActive
bool is_active = 3;
- Parameters:
value
- The isActive to set.- Returns:
- This builder for chaining.
-
clearIsActive
bool is_active = 3;
- Returns:
- This builder for chaining.
-
getTotalCores
public int getTotalCores()int32 total_cores = 4;
- Specified by:
getTotalCores
in interfaceStoreTypes.ProcessSummaryOrBuilder
- Returns:
- The totalCores.
-
setTotalCores
int32 total_cores = 4;
- Parameters:
value
- The totalCores to set.- Returns:
- This builder for chaining.
-
clearTotalCores
int32 total_cores = 4;
- Returns:
- This builder for chaining.
-
getAddTime
public long getAddTime()int64 add_time = 5;
- Specified by:
getAddTime
in interfaceStoreTypes.ProcessSummaryOrBuilder
- Returns:
- The addTime.
-
setAddTime
int64 add_time = 5;
- Parameters:
value
- The addTime to set.- Returns:
- This builder for chaining.
-
clearAddTime
int64 add_time = 5;
- Returns:
- This builder for chaining.
-
hasRemoveTime
public boolean hasRemoveTime()optional int64 remove_time = 6;
- Specified by:
hasRemoveTime
in interfaceStoreTypes.ProcessSummaryOrBuilder
- Returns:
- Whether the removeTime field is set.
-
getRemoveTime
public long getRemoveTime()optional int64 remove_time = 6;
- Specified by:
getRemoveTime
in interfaceStoreTypes.ProcessSummaryOrBuilder
- Returns:
- The removeTime.
-
setRemoveTime
optional int64 remove_time = 6;
- Parameters:
value
- The removeTime to set.- Returns:
- This builder for chaining.
-
clearRemoveTime
optional int64 remove_time = 6;
- Returns:
- This builder for chaining.
-
getProcessLogsCount
public int getProcessLogsCount()Description copied from interface:StoreTypes.ProcessSummaryOrBuilder
map<string, string> process_logs = 7;
- Specified by:
getProcessLogsCount
in interfaceStoreTypes.ProcessSummaryOrBuilder
-
containsProcessLogs
map<string, string> process_logs = 7;
- Specified by:
containsProcessLogs
in interfaceStoreTypes.ProcessSummaryOrBuilder
-
getProcessLogs
Deprecated.UsegetProcessLogsMap()
instead.- Specified by:
getProcessLogs
in interfaceStoreTypes.ProcessSummaryOrBuilder
-
getProcessLogsMap
map<string, string> process_logs = 7;
- Specified by:
getProcessLogsMap
in interfaceStoreTypes.ProcessSummaryOrBuilder
-
getProcessLogsOrDefault
map<string, string> process_logs = 7;
- Specified by:
getProcessLogsOrDefault
in interfaceStoreTypes.ProcessSummaryOrBuilder
-
getProcessLogsOrThrow
map<string, string> process_logs = 7;
- Specified by:
getProcessLogsOrThrow
in interfaceStoreTypes.ProcessSummaryOrBuilder
-
clearProcessLogs
-
removeProcessLogs
map<string, string> process_logs = 7;
-
getMutableProcessLogs
Deprecated.Use alternate mutation accessors instead. -
putProcessLogs
map<string, string> process_logs = 7;
-
putAllProcessLogs
map<string, string> process_logs = 7;
-
setUnknownFields
public final StoreTypes.ProcessSummary.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.ProcessSummary.Builder>
-
mergeUnknownFields
public final StoreTypes.ProcessSummary.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.ProcessSummary.Builder>
-