Package org.apache.spark.status.protobuf
Class StoreTypes.ExecutorResourceRequest.Builder
Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<StoreTypes.ExecutorResourceRequest.Builder>
org.apache.spark.status.protobuf.StoreTypes.ExecutorResourceRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,StoreTypes.ExecutorResourceRequestOrBuilder
- Enclosing class:
- StoreTypes.ExecutorResourceRequest
public static final class StoreTypes.ExecutorResourceRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<StoreTypes.ExecutorResourceRequest.Builder>
implements StoreTypes.ExecutorResourceRequestOrBuilder
Protobuf type
org.apache.spark.status.protobuf.ExecutorResourceRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
int64 amount = 2;
optional string discoveryScript = 3;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional string resource_name = 1;
optional string vendor = 4;
clone()
long
int64 amount = 2;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
optional string discoveryScript = 3;
com.google.protobuf.ByteString
optional string discoveryScript = 3;
optional string resource_name = 1;
com.google.protobuf.ByteString
optional string resource_name = 1;
optional string vendor = 4;
com.google.protobuf.ByteString
optional string vendor = 4;
boolean
optional string discoveryScript = 3;
boolean
optional string resource_name = 1;
boolean
optional string vendor = 4;
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) setAmount
(long value) int64 amount = 2;
setDiscoveryScript
(String value) optional string discoveryScript = 3;
setDiscoveryScriptBytes
(com.google.protobuf.ByteString value) optional string discoveryScript = 3;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResourceName
(String value) optional string resource_name = 1;
setResourceNameBytes
(com.google.protobuf.ByteString value) optional string resource_name = 1;
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) optional string vendor = 4;
setVendorBytes
(com.google.protobuf.ByteString value) optional string vendor = 4;
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.ExecutorResourceRequest.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.ExecutorResourceRequest.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.ExecutorResourceRequest.Builder>
-
setField
public StoreTypes.ExecutorResourceRequest.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.ExecutorResourceRequest.Builder>
-
clearField
public StoreTypes.ExecutorResourceRequest.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.ExecutorResourceRequest.Builder>
-
clearOneof
public StoreTypes.ExecutorResourceRequest.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.ExecutorResourceRequest.Builder>
-
setRepeatedField
public StoreTypes.ExecutorResourceRequest.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.ExecutorResourceRequest.Builder>
-
addRepeatedField
public StoreTypes.ExecutorResourceRequest.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.ExecutorResourceRequest.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<StoreTypes.ExecutorResourceRequest.Builder>
-
mergeFrom
public StoreTypes.ExecutorResourceRequest.Builder mergeFrom(StoreTypes.ExecutorResourceRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<StoreTypes.ExecutorResourceRequest.Builder>
-
mergeFrom
public StoreTypes.ExecutorResourceRequest.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.ExecutorResourceRequest.Builder>
- Throws:
IOException
-
hasResourceName
public boolean hasResourceName()optional string resource_name = 1;
- Specified by:
hasResourceName
in interfaceStoreTypes.ExecutorResourceRequestOrBuilder
- Returns:
- Whether the resourceName field is set.
-
getResourceName
optional string resource_name = 1;
- Specified by:
getResourceName
in interfaceStoreTypes.ExecutorResourceRequestOrBuilder
- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()optional string resource_name = 1;
- Specified by:
getResourceNameBytes
in interfaceStoreTypes.ExecutorResourceRequestOrBuilder
- Returns:
- The bytes for resourceName.
-
setResourceName
optional string resource_name = 1;
- Parameters:
value
- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
optional string resource_name = 1;
- Returns:
- This builder for chaining.
-
setResourceNameBytes
public StoreTypes.ExecutorResourceRequest.Builder setResourceNameBytes(com.google.protobuf.ByteString value) optional string resource_name = 1;
- Parameters:
value
- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
getAmount
public long getAmount()int64 amount = 2;
- Specified by:
getAmount
in interfaceStoreTypes.ExecutorResourceRequestOrBuilder
- Returns:
- The amount.
-
setAmount
int64 amount = 2;
- Parameters:
value
- The amount to set.- Returns:
- This builder for chaining.
-
clearAmount
int64 amount = 2;
- Returns:
- This builder for chaining.
-
hasDiscoveryScript
public boolean hasDiscoveryScript()optional string discoveryScript = 3;
- Specified by:
hasDiscoveryScript
in interfaceStoreTypes.ExecutorResourceRequestOrBuilder
- Returns:
- Whether the discoveryScript field is set.
-
getDiscoveryScript
optional string discoveryScript = 3;
- Specified by:
getDiscoveryScript
in interfaceStoreTypes.ExecutorResourceRequestOrBuilder
- Returns:
- The discoveryScript.
-
getDiscoveryScriptBytes
public com.google.protobuf.ByteString getDiscoveryScriptBytes()optional string discoveryScript = 3;
- Specified by:
getDiscoveryScriptBytes
in interfaceStoreTypes.ExecutorResourceRequestOrBuilder
- Returns:
- The bytes for discoveryScript.
-
setDiscoveryScript
optional string discoveryScript = 3;
- Parameters:
value
- The discoveryScript to set.- Returns:
- This builder for chaining.
-
clearDiscoveryScript
optional string discoveryScript = 3;
- Returns:
- This builder for chaining.
-
setDiscoveryScriptBytes
public StoreTypes.ExecutorResourceRequest.Builder setDiscoveryScriptBytes(com.google.protobuf.ByteString value) optional string discoveryScript = 3;
- Parameters:
value
- The bytes for discoveryScript to set.- Returns:
- This builder for chaining.
-
hasVendor
public boolean hasVendor()optional string vendor = 4;
- Specified by:
hasVendor
in interfaceStoreTypes.ExecutorResourceRequestOrBuilder
- Returns:
- Whether the vendor field is set.
-
getVendor
optional string vendor = 4;
- Specified by:
getVendor
in interfaceStoreTypes.ExecutorResourceRequestOrBuilder
- Returns:
- The vendor.
-
getVendorBytes
public com.google.protobuf.ByteString getVendorBytes()optional string vendor = 4;
- Specified by:
getVendorBytes
in interfaceStoreTypes.ExecutorResourceRequestOrBuilder
- Returns:
- The bytes for vendor.
-
setVendor
optional string vendor = 4;
- Parameters:
value
- The vendor to set.- Returns:
- This builder for chaining.
-
clearVendor
optional string vendor = 4;
- Returns:
- This builder for chaining.
-
setVendorBytes
public StoreTypes.ExecutorResourceRequest.Builder setVendorBytes(com.google.protobuf.ByteString value) optional string vendor = 4;
- Parameters:
value
- The bytes for vendor to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final StoreTypes.ExecutorResourceRequest.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.ExecutorResourceRequest.Builder>
-
mergeUnknownFields
public final StoreTypes.ExecutorResourceRequest.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.ExecutorResourceRequest.Builder>
-