public static final class YarnProtos.ResourceRequestProto extends com.google.protobuf.GeneratedMessage implements YarnProtos.ResourceRequestProtoOrBuilder
hadoop.yarn.ResourceRequestProto
////////////////////////////////////////////////////////////////////// //// From AM_RM_Protocol ///////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
Modifier and Type | Class and Description |
---|---|
static class |
YarnProtos.ResourceRequestProto.Builder
Protobuf type
hadoop.yarn.ResourceRequestProto |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
CAPABILITY_FIELD_NUMBER |
static int |
NUM_CONTAINERS_FIELD_NUMBER |
static com.google.protobuf.Parser<YarnProtos.ResourceRequestProto> |
PARSER |
static int |
PRIORITY_FIELD_NUMBER |
static int |
RELAX_LOCALITY_FIELD_NUMBER |
static int |
RESOURCE_NAME_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
YarnProtos.ResourceProto |
getCapability()
optional .hadoop.yarn.ResourceProto capability = 3; |
YarnProtos.ResourceProtoOrBuilder |
getCapabilityOrBuilder()
optional .hadoop.yarn.ResourceProto capability = 3; |
static YarnProtos.ResourceRequestProto |
getDefaultInstance() |
YarnProtos.ResourceRequestProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getNumContainers()
optional int32 num_containers = 4; |
com.google.protobuf.Parser<YarnProtos.ResourceRequestProto> |
getParserForType() |
YarnProtos.PriorityProto |
getPriority()
optional .hadoop.yarn.PriorityProto priority = 1; |
YarnProtos.PriorityProtoOrBuilder |
getPriorityOrBuilder()
optional .hadoop.yarn.PriorityProto priority = 1; |
boolean |
getRelaxLocality()
optional bool relax_locality = 5 [default = true]; |
String |
getResourceName()
optional string resource_name = 2; |
com.google.protobuf.ByteString |
getResourceNameBytes()
optional string resource_name = 2; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCapability()
optional .hadoop.yarn.ResourceProto capability = 3; |
int |
hashCode() |
boolean |
hasNumContainers()
optional int32 num_containers = 4; |
boolean |
hasPriority()
optional .hadoop.yarn.PriorityProto priority = 1; |
boolean |
hasRelaxLocality()
optional bool relax_locality = 5 [default = true]; |
boolean |
hasResourceName()
optional string resource_name = 2; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static YarnProtos.ResourceRequestProto.Builder |
newBuilder() |
static YarnProtos.ResourceRequestProto.Builder |
newBuilder(YarnProtos.ResourceRequestProto prototype) |
YarnProtos.ResourceRequestProto.Builder |
newBuilderForType() |
protected YarnProtos.ResourceRequestProto.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static YarnProtos.ResourceRequestProto |
parseDelimitedFrom(InputStream input) |
static YarnProtos.ResourceRequestProto |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static YarnProtos.ResourceRequestProto |
parseFrom(byte[] data) |
static YarnProtos.ResourceRequestProto |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static YarnProtos.ResourceRequestProto |
parseFrom(com.google.protobuf.ByteString data) |
static YarnProtos.ResourceRequestProto |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static YarnProtos.ResourceRequestProto |
parseFrom(com.google.protobuf.CodedInputStream input) |
static YarnProtos.ResourceRequestProto |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static YarnProtos.ResourceRequestProto |
parseFrom(InputStream input) |
static YarnProtos.ResourceRequestProto |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
YarnProtos.ResourceRequestProto.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static com.google.protobuf.Parser<YarnProtos.ResourceRequestProto> PARSER
public static final int PRIORITY_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER
public static final int CAPABILITY_FIELD_NUMBER
public static final int NUM_CONTAINERS_FIELD_NUMBER
public static final int RELAX_LOCALITY_FIELD_NUMBER
public static YarnProtos.ResourceRequestProto getDefaultInstance()
public YarnProtos.ResourceRequestProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<YarnProtos.ResourceRequestProto> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasPriority()
optional .hadoop.yarn.PriorityProto priority = 1;
hasPriority
in interface YarnProtos.ResourceRequestProtoOrBuilder
public YarnProtos.PriorityProto getPriority()
optional .hadoop.yarn.PriorityProto priority = 1;
getPriority
in interface YarnProtos.ResourceRequestProtoOrBuilder
public YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder()
optional .hadoop.yarn.PriorityProto priority = 1;
getPriorityOrBuilder
in interface YarnProtos.ResourceRequestProtoOrBuilder
public boolean hasResourceName()
optional string resource_name = 2;
hasResourceName
in interface YarnProtos.ResourceRequestProtoOrBuilder
public String getResourceName()
optional string resource_name = 2;
getResourceName
in interface YarnProtos.ResourceRequestProtoOrBuilder
public com.google.protobuf.ByteString getResourceNameBytes()
optional string resource_name = 2;
getResourceNameBytes
in interface YarnProtos.ResourceRequestProtoOrBuilder
public boolean hasCapability()
optional .hadoop.yarn.ResourceProto capability = 3;
hasCapability
in interface YarnProtos.ResourceRequestProtoOrBuilder
public YarnProtos.ResourceProto getCapability()
optional .hadoop.yarn.ResourceProto capability = 3;
getCapability
in interface YarnProtos.ResourceRequestProtoOrBuilder
public YarnProtos.ResourceProtoOrBuilder getCapabilityOrBuilder()
optional .hadoop.yarn.ResourceProto capability = 3;
getCapabilityOrBuilder
in interface YarnProtos.ResourceRequestProtoOrBuilder
public boolean hasNumContainers()
optional int32 num_containers = 4;
hasNumContainers
in interface YarnProtos.ResourceRequestProtoOrBuilder
public int getNumContainers()
optional int32 num_containers = 4;
getNumContainers
in interface YarnProtos.ResourceRequestProtoOrBuilder
public boolean hasRelaxLocality()
optional bool relax_locality = 5 [default = true];
hasRelaxLocality
in interface YarnProtos.ResourceRequestProtoOrBuilder
public boolean getRelaxLocality()
optional bool relax_locality = 5 [default = true];
getRelaxLocality
in interface YarnProtos.ResourceRequestProtoOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static YarnProtos.ResourceRequestProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static YarnProtos.ResourceRequestProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static YarnProtos.ResourceRequestProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static YarnProtos.ResourceRequestProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static YarnProtos.ResourceRequestProto parseFrom(InputStream input) throws IOException
IOException
public static YarnProtos.ResourceRequestProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static YarnProtos.ResourceRequestProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static YarnProtos.ResourceRequestProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static YarnProtos.ResourceRequestProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static YarnProtos.ResourceRequestProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static YarnProtos.ResourceRequestProto.Builder newBuilder()
public YarnProtos.ResourceRequestProto.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static YarnProtos.ResourceRequestProto.Builder newBuilder(YarnProtos.ResourceRequestProto prototype)
public YarnProtos.ResourceRequestProto.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected YarnProtos.ResourceRequestProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2013 Apache Software Foundation. All rights reserved.