Package org.apache.spark.status.protobuf
Class StoreTypes.ResourceProfileInfo.Builder
Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<StoreTypes.ResourceProfileInfo.Builder>
org.apache.spark.status.protobuf.StoreTypes.ResourceProfileInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,StoreTypes.ResourceProfileInfoOrBuilder
- Enclosing class:
- StoreTypes.ResourceProfileInfo
public static final class StoreTypes.ResourceProfileInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<StoreTypes.ResourceProfileInfo.Builder>
implements StoreTypes.ResourceProfileInfoOrBuilder
Protobuf type
org.apache.spark.status.protobuf.ResourceProfileInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()
int32 id = 1;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()
boolean
map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
boolean
map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Deprecated.int
map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
getExecutorResourcesOrDefault
(String key, StoreTypes.ExecutorResourceRequest defaultValue) map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
int
getId()
int32 id = 1;
Deprecated.Deprecated.Deprecated.int
map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
getTaskResourcesOrDefault
(String key, StoreTypes.TaskResourceRequest defaultValue) map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
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) map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
putTaskResources
(String key, StoreTypes.TaskResourceRequest value) map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
setId
(int value) int32 id = 1;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.ResourceProfileInfo.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.ResourceProfileInfo.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.ResourceProfileInfo.Builder>
-
setField
public StoreTypes.ResourceProfileInfo.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.ResourceProfileInfo.Builder>
-
clearField
public StoreTypes.ResourceProfileInfo.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.ResourceProfileInfo.Builder>
-
clearOneof
public StoreTypes.ResourceProfileInfo.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.ResourceProfileInfo.Builder>
-
setRepeatedField
public StoreTypes.ResourceProfileInfo.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.ResourceProfileInfo.Builder>
-
addRepeatedField
public StoreTypes.ResourceProfileInfo.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.ResourceProfileInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<StoreTypes.ResourceProfileInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<StoreTypes.ResourceProfileInfo.Builder>
-
mergeFrom
public StoreTypes.ResourceProfileInfo.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.ResourceProfileInfo.Builder>
- Throws:
IOException
-
getId
public int getId()int32 id = 1;
- Specified by:
getId
in interfaceStoreTypes.ResourceProfileInfoOrBuilder
- Returns:
- The id.
-
setId
int32 id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
int32 id = 1;
- Returns:
- This builder for chaining.
-
getExecutorResourcesCount
public int getExecutorResourcesCount()Description copied from interface:StoreTypes.ResourceProfileInfoOrBuilder
map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
- Specified by:
getExecutorResourcesCount
in interfaceStoreTypes.ResourceProfileInfoOrBuilder
-
containsExecutorResources
map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
- Specified by:
containsExecutorResources
in interfaceStoreTypes.ResourceProfileInfoOrBuilder
-
getExecutorResources
Deprecated.UsegetExecutorResourcesMap()
instead.- Specified by:
getExecutorResources
in interfaceStoreTypes.ResourceProfileInfoOrBuilder
-
getExecutorResourcesMap
map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
- Specified by:
getExecutorResourcesMap
in interfaceStoreTypes.ResourceProfileInfoOrBuilder
-
getExecutorResourcesOrDefault
public StoreTypes.ExecutorResourceRequest getExecutorResourcesOrDefault(String key, StoreTypes.ExecutorResourceRequest defaultValue) map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
- Specified by:
getExecutorResourcesOrDefault
in interfaceStoreTypes.ResourceProfileInfoOrBuilder
-
getExecutorResourcesOrThrow
map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
- Specified by:
getExecutorResourcesOrThrow
in interfaceStoreTypes.ResourceProfileInfoOrBuilder
-
clearExecutorResources
-
removeExecutorResources
map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
-
getMutableExecutorResources
Deprecated.Use alternate mutation accessors instead. -
putExecutorResources
public StoreTypes.ResourceProfileInfo.Builder putExecutorResources(String key, StoreTypes.ExecutorResourceRequest value) map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
-
putAllExecutorResources
public StoreTypes.ResourceProfileInfo.Builder putAllExecutorResources(Map<String, StoreTypes.ExecutorResourceRequest> values) map<string, .org.apache.spark.status.protobuf.ExecutorResourceRequest> executor_resources = 2;
-
getTaskResourcesCount
public int getTaskResourcesCount()Description copied from interface:StoreTypes.ResourceProfileInfoOrBuilder
map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
- Specified by:
getTaskResourcesCount
in interfaceStoreTypes.ResourceProfileInfoOrBuilder
-
containsTaskResources
map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
- Specified by:
containsTaskResources
in interfaceStoreTypes.ResourceProfileInfoOrBuilder
-
getTaskResources
Deprecated.UsegetTaskResourcesMap()
instead.- Specified by:
getTaskResources
in interfaceStoreTypes.ResourceProfileInfoOrBuilder
-
getTaskResourcesMap
map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
- Specified by:
getTaskResourcesMap
in interfaceStoreTypes.ResourceProfileInfoOrBuilder
-
getTaskResourcesOrDefault
public StoreTypes.TaskResourceRequest getTaskResourcesOrDefault(String key, StoreTypes.TaskResourceRequest defaultValue) map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
- Specified by:
getTaskResourcesOrDefault
in interfaceStoreTypes.ResourceProfileInfoOrBuilder
-
getTaskResourcesOrThrow
map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
- Specified by:
getTaskResourcesOrThrow
in interfaceStoreTypes.ResourceProfileInfoOrBuilder
-
clearTaskResources
-
removeTaskResources
map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
-
getMutableTaskResources
Deprecated.Use alternate mutation accessors instead. -
putTaskResources
public StoreTypes.ResourceProfileInfo.Builder putTaskResources(String key, StoreTypes.TaskResourceRequest value) map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
-
putAllTaskResources
public StoreTypes.ResourceProfileInfo.Builder putAllTaskResources(Map<String, StoreTypes.TaskResourceRequest> values) map<string, .org.apache.spark.status.protobuf.TaskResourceRequest> task_resources = 3;
-
setUnknownFields
public final StoreTypes.ResourceProfileInfo.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.ResourceProfileInfo.Builder>
-
mergeUnknownFields
public final StoreTypes.ResourceProfileInfo.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.ResourceProfileInfo.Builder>
-