public static final class Protos.Address.Builder extends <any> implements Protos.AddressOrBuilder
A network address. TODO(bmahler): Use this more widely.Protobuf type
mesos.Address
Modifier and Type | Method and Description |
---|---|
Protos.Address.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Address |
build() |
Protos.Address |
buildPartial() |
Protos.Address.Builder |
clear() |
Protos.Address.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Address.Builder |
clearHostname()
May contain a hostname, IP address, or both.
|
Protos.Address.Builder |
clearIp()
optional string ip = 2; |
Protos.Address.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Address.Builder |
clearPort()
required int32 port = 3; |
Protos.Address.Builder |
clone() |
Protos.Address |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getHostname()
May contain a hostname, IP address, or both.
|
com.google.protobuf.ByteString |
getHostnameBytes()
May contain a hostname, IP address, or both.
|
java.lang.String |
getIp()
optional string ip = 2; |
com.google.protobuf.ByteString |
getIpBytes()
optional string ip = 2; |
int |
getPort()
required int32 port = 3; |
boolean |
hasHostname()
May contain a hostname, IP address, or both.
|
boolean |
hasIp()
optional string ip = 2; |
boolean |
hasPort()
required int32 port = 3; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Address.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Address.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Address.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Address.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Address.Builder |
setHostname(java.lang.String value)
May contain a hostname, IP address, or both.
|
Protos.Address.Builder |
setHostnameBytes(com.google.protobuf.ByteString value)
May contain a hostname, IP address, or both.
|
Protos.Address.Builder |
setIp(java.lang.String value)
optional string ip = 2; |
Protos.Address.Builder |
setIpBytes(com.google.protobuf.ByteString value)
optional string ip = 2; |
Protos.Address.Builder |
setPort(int value)
required int32 port = 3; |
Protos.Address.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Address.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.Address.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Address getDefaultInstanceForType()
public Protos.Address build()
public Protos.Address buildPartial()
public Protos.Address.Builder clone()
public Protos.Address.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Address.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Address.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Address.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Address.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Address.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Address.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public boolean hasHostname()
May contain a hostname, IP address, or both.
optional string hostname = 1;
hasHostname
in interface Protos.AddressOrBuilder
public java.lang.String getHostname()
May contain a hostname, IP address, or both.
optional string hostname = 1;
getHostname
in interface Protos.AddressOrBuilder
public com.google.protobuf.ByteString getHostnameBytes()
May contain a hostname, IP address, or both.
optional string hostname = 1;
getHostnameBytes
in interface Protos.AddressOrBuilder
public Protos.Address.Builder setHostname(java.lang.String value)
May contain a hostname, IP address, or both.
optional string hostname = 1;
public Protos.Address.Builder clearHostname()
May contain a hostname, IP address, or both.
optional string hostname = 1;
public Protos.Address.Builder setHostnameBytes(com.google.protobuf.ByteString value)
May contain a hostname, IP address, or both.
optional string hostname = 1;
public boolean hasIp()
optional string ip = 2;
hasIp
in interface Protos.AddressOrBuilder
public java.lang.String getIp()
optional string ip = 2;
getIp
in interface Protos.AddressOrBuilder
public com.google.protobuf.ByteString getIpBytes()
optional string ip = 2;
getIpBytes
in interface Protos.AddressOrBuilder
public Protos.Address.Builder setIp(java.lang.String value)
optional string ip = 2;
public Protos.Address.Builder clearIp()
optional string ip = 2;
public Protos.Address.Builder setIpBytes(com.google.protobuf.ByteString value)
optional string ip = 2;
public boolean hasPort()
required int32 port = 3;
hasPort
in interface Protos.AddressOrBuilder
public int getPort()
required int32 port = 3;
getPort
in interface Protos.AddressOrBuilder
public Protos.Address.Builder setPort(int value)
required int32 port = 3;
public Protos.Address.Builder clearPort()
required int32 port = 3;
public final Protos.Address.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Address.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)