public static final class Protos.MachineID.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protos.MachineID.Builder> implements Protos.MachineIDOrBuilder
mesos.v1.MachineID
Represents a single machine, which may hold one or more agents. NOTE: In order to match an agent to a machine, both the `hostname` and `ip` must match the values advertised by the agent to the master. Hostname is not case-sensitive.
Modifier and Type | Method and Description |
---|---|
Protos.MachineID |
build() |
Protos.MachineID |
buildPartial() |
Protos.MachineID.Builder |
clear() |
Protos.MachineID.Builder |
clearHostname()
optional string hostname = 1; |
Protos.MachineID.Builder |
clearIp()
optional string ip = 2; |
Protos.MachineID.Builder |
clone() |
Protos.MachineID |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getHostname()
optional string hostname = 1; |
com.google.protobuf.ByteString |
getHostnameBytes()
optional string hostname = 1; |
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.GeneratedMessage.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 |
mergeFrom(Protos.MachineID other) |
Protos.MachineID.Builder |
setHostname(String value)
optional string hostname = 1; |
Protos.MachineID.Builder |
setHostnameBytes(com.google.protobuf.ByteString value)
optional string hostname = 1; |
Protos.MachineID.Builder |
setIp(String value)
optional string ip = 2; |
Protos.MachineID.Builder |
setIpBytes(com.google.protobuf.ByteString value)
optional string ip = 2; |
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.MachineID.Builder>
public Protos.MachineID.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.MachineID.Builder>
public Protos.MachineID.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.MachineID.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.MachineID.Builder>
public Protos.MachineID getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Protos.MachineID build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Protos.MachineID buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Protos.MachineID.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.MachineID.Builder>
public Protos.MachineID.Builder mergeFrom(Protos.MachineID other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<Protos.MachineID.Builder>
public Protos.MachineID.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.MachineID.Builder>
IOException
public boolean hasHostname()
optional string hostname = 1;
hasHostname
in interface Protos.MachineIDOrBuilder
public 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(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 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(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;
Copyright © 2017 The Apache Software Foundation. All Rights Reserved.