public static final class Protos.MachineID.Builder extends <any> implements Protos.MachineIDOrBuilder
Represents a single machine, which may hold one or more slaves. NOTE: In order to match a slave to a machine, both the `hostname` and `ip` must match the values advertised by the slave to the master. Hostname is not case-sensitive.Protobuf type
mesos.MachineID
Modifier and Type | Method and Description |
---|---|
Protos.MachineID.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.MachineID |
build() |
Protos.MachineID |
buildPartial() |
Protos.MachineID.Builder |
clear() |
Protos.MachineID.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.MachineID.Builder |
clearHostname()
optional string hostname = 1; |
Protos.MachineID.Builder |
clearIp()
optional string ip = 2; |
Protos.MachineID.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.MachineID.Builder |
clone() |
Protos.MachineID |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getHostname()
optional string hostname = 1; |
com.google.protobuf.ByteString |
getHostnameBytes()
optional string hostname = 1; |
java.lang.String |
getIp()
optional string ip = 2; |
com.google.protobuf.ByteString |
getIpBytes()
optional string ip = 2; |
boolean |
hasHostname()
optional string hostname = 1; |
boolean |
hasIp()
optional string ip = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.MachineID.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.MachineID.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.MachineID.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.MachineID.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.MachineID.Builder |
setHostname(java.lang.String value)
optional string hostname = 1; |
Protos.MachineID.Builder |
setHostnameBytes(com.google.protobuf.ByteString value)
optional string hostname = 1; |
Protos.MachineID.Builder |
setIp(java.lang.String value)
optional string ip = 2; |
Protos.MachineID.Builder |
setIpBytes(com.google.protobuf.ByteString value)
optional string ip = 2; |
Protos.MachineID.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.MachineID.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.MachineID.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.MachineID getDefaultInstanceForType()
public Protos.MachineID build()
public Protos.MachineID buildPartial()
public Protos.MachineID.Builder clone()
public Protos.MachineID.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.MachineID.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.MachineID.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.MachineID.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.MachineID.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.MachineID.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.MachineID.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public boolean hasHostname()
optional string hostname = 1;
hasHostname
in interface Protos.MachineIDOrBuilder
public java.lang.String getHostname()
optional string hostname = 1;
getHostname
in interface Protos.MachineIDOrBuilder
public com.google.protobuf.ByteString getHostnameBytes()
optional string hostname = 1;
getHostnameBytes
in interface Protos.MachineIDOrBuilder
public Protos.MachineID.Builder setHostname(java.lang.String value)
optional string hostname = 1;
public Protos.MachineID.Builder clearHostname()
optional string hostname = 1;
public Protos.MachineID.Builder setHostnameBytes(com.google.protobuf.ByteString value)
optional string hostname = 1;
public boolean hasIp()
optional string ip = 2;
hasIp
in interface Protos.MachineIDOrBuilder
public java.lang.String getIp()
optional string ip = 2;
getIp
in interface Protos.MachineIDOrBuilder
public com.google.protobuf.ByteString getIpBytes()
optional string ip = 2;
getIpBytes
in interface Protos.MachineIDOrBuilder
public Protos.MachineID.Builder setIp(java.lang.String value)
optional string ip = 2;
public Protos.MachineID.Builder clearIp()
optional string ip = 2;
public Protos.MachineID.Builder setIpBytes(com.google.protobuf.ByteString value)
optional string ip = 2;
public final Protos.MachineID.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.MachineID.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)