public static final class Protos.Request.Builder extends <any> implements Protos.RequestOrBuilder
Describes a request for resources that can be used by a framework to proactively influence the allocator. If 'slave_id' is provided then this request is assumed to only apply to resources on that slave.Protobuf type
mesos.Request
Modifier and Type | Method and Description |
---|---|
Protos.Request.Builder |
addAllResources(java.lang.Iterable<? extends Protos.Resource> values)
repeated .mesos.Resource resources = 2; |
Protos.Request.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Request.Builder |
addResources(int index,
Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 2; |
Protos.Request.Builder |
addResources(int index,
Protos.Resource value)
repeated .mesos.Resource resources = 2; |
Protos.Request.Builder |
addResources(Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 2; |
Protos.Request.Builder |
addResources(Protos.Resource value)
repeated .mesos.Resource resources = 2; |
Protos.Resource.Builder |
addResourcesBuilder()
repeated .mesos.Resource resources = 2; |
Protos.Resource.Builder |
addResourcesBuilder(int index)
repeated .mesos.Resource resources = 2; |
Protos.Request |
build() |
Protos.Request |
buildPartial() |
Protos.Request.Builder |
clear() |
Protos.Request.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Request.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Request.Builder |
clearResources()
repeated .mesos.Resource resources = 2; |
Protos.Request.Builder |
clearSlaveId()
optional .mesos.SlaveID slave_id = 1; |
Protos.Request.Builder |
clone() |
Protos.Request |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Protos.Resource |
getResources(int index)
repeated .mesos.Resource resources = 2; |
Protos.Resource.Builder |
getResourcesBuilder(int index)
repeated .mesos.Resource resources = 2; |
java.util.List<Protos.Resource.Builder> |
getResourcesBuilderList()
repeated .mesos.Resource resources = 2; |
int |
getResourcesCount()
repeated .mesos.Resource resources = 2; |
java.util.List<Protos.Resource> |
getResourcesList()
repeated .mesos.Resource resources = 2; |
Protos.ResourceOrBuilder |
getResourcesOrBuilder(int index)
repeated .mesos.Resource resources = 2; |
java.util.List<? extends Protos.ResourceOrBuilder> |
getResourcesOrBuilderList()
repeated .mesos.Resource resources = 2; |
Protos.SlaveID |
getSlaveId()
optional .mesos.SlaveID slave_id = 1; |
Protos.SlaveID.Builder |
getSlaveIdBuilder()
optional .mesos.SlaveID slave_id = 1; |
Protos.SlaveIDOrBuilder |
getSlaveIdOrBuilder()
optional .mesos.SlaveID slave_id = 1; |
boolean |
hasSlaveId()
optional .mesos.SlaveID slave_id = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Request.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Request.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Request.Builder |
mergeSlaveId(Protos.SlaveID value)
optional .mesos.SlaveID slave_id = 1; |
Protos.Request.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Request.Builder |
removeResources(int index)
repeated .mesos.Resource resources = 2; |
Protos.Request.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Request.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Request.Builder |
setResources(int index,
Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 2; |
Protos.Request.Builder |
setResources(int index,
Protos.Resource value)
repeated .mesos.Resource resources = 2; |
Protos.Request.Builder |
setSlaveId(Protos.SlaveID.Builder builderForValue)
optional .mesos.SlaveID slave_id = 1; |
Protos.Request.Builder |
setSlaveId(Protos.SlaveID value)
optional .mesos.SlaveID slave_id = 1; |
Protos.Request.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.Request.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Request getDefaultInstanceForType()
public Protos.Request build()
public Protos.Request buildPartial()
public Protos.Request.Builder clone()
public Protos.Request.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Request.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Request.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Request.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Request.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Request.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Request.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public boolean hasSlaveId()
optional .mesos.SlaveID slave_id = 1;
hasSlaveId
in interface Protos.RequestOrBuilder
public Protos.SlaveID getSlaveId()
optional .mesos.SlaveID slave_id = 1;
getSlaveId
in interface Protos.RequestOrBuilder
public Protos.Request.Builder setSlaveId(Protos.SlaveID value)
optional .mesos.SlaveID slave_id = 1;
public Protos.Request.Builder setSlaveId(Protos.SlaveID.Builder builderForValue)
optional .mesos.SlaveID slave_id = 1;
public Protos.Request.Builder mergeSlaveId(Protos.SlaveID value)
optional .mesos.SlaveID slave_id = 1;
public Protos.Request.Builder clearSlaveId()
optional .mesos.SlaveID slave_id = 1;
public Protos.SlaveID.Builder getSlaveIdBuilder()
optional .mesos.SlaveID slave_id = 1;
public Protos.SlaveIDOrBuilder getSlaveIdOrBuilder()
optional .mesos.SlaveID slave_id = 1;
getSlaveIdOrBuilder
in interface Protos.RequestOrBuilder
public java.util.List<Protos.Resource> getResourcesList()
repeated .mesos.Resource resources = 2;
getResourcesList
in interface Protos.RequestOrBuilder
public int getResourcesCount()
repeated .mesos.Resource resources = 2;
getResourcesCount
in interface Protos.RequestOrBuilder
public Protos.Resource getResources(int index)
repeated .mesos.Resource resources = 2;
getResources
in interface Protos.RequestOrBuilder
public Protos.Request.Builder setResources(int index, Protos.Resource value)
repeated .mesos.Resource resources = 2;
public Protos.Request.Builder setResources(int index, Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 2;
public Protos.Request.Builder addResources(Protos.Resource value)
repeated .mesos.Resource resources = 2;
public Protos.Request.Builder addResources(int index, Protos.Resource value)
repeated .mesos.Resource resources = 2;
public Protos.Request.Builder addResources(Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 2;
public Protos.Request.Builder addResources(int index, Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 2;
public Protos.Request.Builder addAllResources(java.lang.Iterable<? extends Protos.Resource> values)
repeated .mesos.Resource resources = 2;
public Protos.Request.Builder clearResources()
repeated .mesos.Resource resources = 2;
public Protos.Request.Builder removeResources(int index)
repeated .mesos.Resource resources = 2;
public Protos.Resource.Builder getResourcesBuilder(int index)
repeated .mesos.Resource resources = 2;
public Protos.ResourceOrBuilder getResourcesOrBuilder(int index)
repeated .mesos.Resource resources = 2;
getResourcesOrBuilder
in interface Protos.RequestOrBuilder
public java.util.List<? extends Protos.ResourceOrBuilder> getResourcesOrBuilderList()
repeated .mesos.Resource resources = 2;
getResourcesOrBuilderList
in interface Protos.RequestOrBuilder
public Protos.Resource.Builder addResourcesBuilder()
repeated .mesos.Resource resources = 2;
public Protos.Resource.Builder addResourcesBuilder(int index)
repeated .mesos.Resource resources = 2;
public java.util.List<Protos.Resource.Builder> getResourcesBuilderList()
repeated .mesos.Resource resources = 2;
public final Protos.Request.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Request.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)