This project has retired. For details please refer to its Attic page.
Protos.Role
JavaScript is disabled on your browser.
Skip navigation links
org.apache.mesos

Class Protos.Role

  • All Implemented Interfaces:
    Protos.RoleOrBuilder
    Enclosing class:
    Protos


    public static final class Protos.Role
    extends com.google.protobuf.GeneratedMessageV3
    implements Protos.RoleOrBuilder 
     Describes a Role. Roles can be used to specify that certain resources are
     reserved for the use of one or more frameworks.
     
    Protobuf type mesos.Role
    • Field Detail

      • FRAMEWORKS_FIELD_NUMBER

        public static final int FRAMEWORKS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PARSER

        @Deprecated
        public static final <any> PARSER
        Deprecated.
    • Method Detail

      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      • getResourcesList

        public java.util.List<Protos.Resource> getResourcesList()
         TODO(bmahler): Deprecate `resources` and introduce quota,
         consumed quota, allocated, offered, and reserved resource
         quantity fields. This is blocked by MESOS-9497 since the
         computation of these quantities is currently expensive.
         
        repeated .mesos.Resource resources = 4;
        Specified by:
        getResourcesList in interface Protos.RoleOrBuilder
      • getResourcesOrBuilderList

        public java.util.List<? extends Protos.ResourceOrBuilder> getResourcesOrBuilderList()
         TODO(bmahler): Deprecate `resources` and introduce quota,
         consumed quota, allocated, offered, and reserved resource
         quantity fields. This is blocked by MESOS-9497 since the
         computation of these quantities is currently expensive.
         
        repeated .mesos.Resource resources = 4;
        Specified by:
        getResourcesOrBuilderList in interface Protos.RoleOrBuilder
      • getResourcesCount

        public int getResourcesCount()
         TODO(bmahler): Deprecate `resources` and introduce quota,
         consumed quota, allocated, offered, and reserved resource
         quantity fields. This is blocked by MESOS-9497 since the
         computation of these quantities is currently expensive.
         
        repeated .mesos.Resource resources = 4;
        Specified by:
        getResourcesCount in interface Protos.RoleOrBuilder
      • getResources

        public Protos.Resource getResources(int index)
         TODO(bmahler): Deprecate `resources` and introduce quota,
         consumed quota, allocated, offered, and reserved resource
         quantity fields. This is blocked by MESOS-9497 since the
         computation of these quantities is currently expensive.
         
        repeated .mesos.Resource resources = 4;
        Specified by:
        getResources in interface Protos.RoleOrBuilder
      • getResourcesOrBuilder

        public Protos.ResourceOrBuilder getResourcesOrBuilder(int index)
         TODO(bmahler): Deprecate `resources` and introduce quota,
         consumed quota, allocated, offered, and reserved resource
         quantity fields. This is blocked by MESOS-9497 since the
         computation of these quantities is currently expensive.
         
        repeated .mesos.Resource resources = 4;
        Specified by:
        getResourcesOrBuilder in interface Protos.RoleOrBuilder
      • isInitialized

        public final boolean isInitialized()
      • writeTo

        public void writeTo(com.google.protobuf.CodedOutputStream output)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
      • equals

        public boolean equals(java.lang.Object obj)
      • hashCode

        public int hashCode()
      • parseFrom

        public static Protos.Role parseFrom(java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.Role parseFrom(java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.Role parseFrom(com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.Role parseFrom(com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.Role parseFrom(byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.Role parseFrom(java.io.InputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Protos.Role parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Protos.Role parseDelimitedFrom(java.io.InputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Protos.Role parseFrom(com.google.protobuf.CodedInputStream input)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Protos.Role parseFrom(com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        protected Protos.Role.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      • getDefaultInstance

        public static Protos.Role getDefaultInstance()
      • parser

        public static <any> parser()
      • getParserForType

        public <any> getParserForType()
      • getDefaultInstanceForType

        public Protos.Role getDefaultInstanceForType()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /