public static final class Protos.Resource.ReservationInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protos.Resource.ReservationInfo.Builder> implements Protos.Resource.ReservationInfoOrBuilder
mesos.v1.Resource.ReservationInfo
Describes a dynamic reservation. A dynamic reservation is acquired by an operator via the '/reserve' HTTP endpoint or by a framework via the offer cycle by sending back an 'Offer::Operation::Reserve' message. NOTE: We currently do not allow frameworks with role "*" to make dynamic reservations.
addRepeatedField, clearField, clearOneof, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<Protos.Resource.ReservationInfo.Builder>
public Protos.Resource.ReservationInfo.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<Protos.Resource.ReservationInfo.Builder>
public Protos.Resource.ReservationInfo.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<Protos.Resource.ReservationInfo.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<Protos.Resource.ReservationInfo.Builder>
public Protos.Resource.ReservationInfo getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Protos.Resource.ReservationInfo build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Protos.Resource.ReservationInfo buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Protos.Resource.ReservationInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.Resource.ReservationInfo.Builder>
public Protos.Resource.ReservationInfo.Builder mergeFrom(Protos.Resource.ReservationInfo other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<Protos.Resource.ReservationInfo.Builder>
public Protos.Resource.ReservationInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.Resource.ReservationInfo.Builder>
IOException
public boolean hasPrincipal()
optional string principal = 1;
Indicates the principal, if any, of the framework or operator that reserved this resource. If reserved by a framework, the field should match the `FrameworkInfo.principal`. It is used in conjunction with the `UnreserveResources` ACL to determine whether the entity attempting to unreserve this resource is permitted to do so.
hasPrincipal
in interface Protos.Resource.ReservationInfoOrBuilder
public String getPrincipal()
optional string principal = 1;
Indicates the principal, if any, of the framework or operator that reserved this resource. If reserved by a framework, the field should match the `FrameworkInfo.principal`. It is used in conjunction with the `UnreserveResources` ACL to determine whether the entity attempting to unreserve this resource is permitted to do so.
getPrincipal
in interface Protos.Resource.ReservationInfoOrBuilder
public com.google.protobuf.ByteString getPrincipalBytes()
optional string principal = 1;
Indicates the principal, if any, of the framework or operator that reserved this resource. If reserved by a framework, the field should match the `FrameworkInfo.principal`. It is used in conjunction with the `UnreserveResources` ACL to determine whether the entity attempting to unreserve this resource is permitted to do so.
getPrincipalBytes
in interface Protos.Resource.ReservationInfoOrBuilder
public Protos.Resource.ReservationInfo.Builder setPrincipal(String value)
optional string principal = 1;
Indicates the principal, if any, of the framework or operator that reserved this resource. If reserved by a framework, the field should match the `FrameworkInfo.principal`. It is used in conjunction with the `UnreserveResources` ACL to determine whether the entity attempting to unreserve this resource is permitted to do so.
public Protos.Resource.ReservationInfo.Builder clearPrincipal()
optional string principal = 1;
Indicates the principal, if any, of the framework or operator that reserved this resource. If reserved by a framework, the field should match the `FrameworkInfo.principal`. It is used in conjunction with the `UnreserveResources` ACL to determine whether the entity attempting to unreserve this resource is permitted to do so.
public Protos.Resource.ReservationInfo.Builder setPrincipalBytes(com.google.protobuf.ByteString value)
optional string principal = 1;
Indicates the principal, if any, of the framework or operator that reserved this resource. If reserved by a framework, the field should match the `FrameworkInfo.principal`. It is used in conjunction with the `UnreserveResources` ACL to determine whether the entity attempting to unreserve this resource is permitted to do so.
public boolean hasLabels()
optional .mesos.v1.Labels labels = 2;
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given agent. Labels should not contain duplicate key-value pairs.
hasLabels
in interface Protos.Resource.ReservationInfoOrBuilder
public Protos.Labels getLabels()
optional .mesos.v1.Labels labels = 2;
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given agent. Labels should not contain duplicate key-value pairs.
getLabels
in interface Protos.Resource.ReservationInfoOrBuilder
public Protos.Resource.ReservationInfo.Builder setLabels(Protos.Labels value)
optional .mesos.v1.Labels labels = 2;
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given agent. Labels should not contain duplicate key-value pairs.
public Protos.Resource.ReservationInfo.Builder setLabels(Protos.Labels.Builder builderForValue)
optional .mesos.v1.Labels labels = 2;
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given agent. Labels should not contain duplicate key-value pairs.
public Protos.Resource.ReservationInfo.Builder mergeLabels(Protos.Labels value)
optional .mesos.v1.Labels labels = 2;
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given agent. Labels should not contain duplicate key-value pairs.
public Protos.Resource.ReservationInfo.Builder clearLabels()
optional .mesos.v1.Labels labels = 2;
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given agent. Labels should not contain duplicate key-value pairs.
public Protos.Labels.Builder getLabelsBuilder()
optional .mesos.v1.Labels labels = 2;
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given agent. Labels should not contain duplicate key-value pairs.
public Protos.LabelsOrBuilder getLabelsOrBuilder()
optional .mesos.v1.Labels labels = 2;
Labels are free-form key value pairs that can be used to associate arbitrary metadata with a reserved resource. For example, frameworks can use labels to identify the intended purpose for a portion of the resources the framework has reserved at a given agent. Labels should not contain duplicate key-value pairs.
getLabelsOrBuilder
in interface Protos.Resource.ReservationInfoOrBuilder
Copyright © 2017 The Apache Software Foundation. All Rights Reserved.