Package org.apache.bookkeeper.proto
Class DataFormats.BookieServiceInfoFormat.Endpoint.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataFormats.BookieServiceInfoFormat.Endpoint.Builder>
org.apache.bookkeeper.proto.DataFormats.BookieServiceInfoFormat.Endpoint.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,DataFormats.BookieServiceInfoFormat.EndpointOrBuilder
- Enclosing class:
- DataFormats.BookieServiceInfoFormat.Endpoint
public static final class DataFormats.BookieServiceInfoFormat.Endpoint.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DataFormats.BookieServiceInfoFormat.Endpoint.Builder>
implements DataFormats.BookieServiceInfoFormat.EndpointOrBuilder
* Information about an endpoint.Protobuf type
BookieServiceInfoFormat.Endpoint-
Method Summary
Modifier and TypeMethodDescriptionaddAllAuth(Iterable<String> values) repeated string auth = 5;addAllExtensions(Iterable<String> values) repeated string extensions = 6;repeated string auth = 5;addAuthBytes(com.google.protobuf.ByteString value) repeated string auth = 5;addExtensions(String value) repeated string extensions = 6;addExtensionsBytes(com.google.protobuf.ByteString value) repeated string extensions = 6;build()clear()repeated string auth = 5;repeated string extensions = 6;required string host = 3;clearId()required string id = 1;required int32 port = 2;required string protocol = 4;getAuth(int index) repeated string auth = 5;com.google.protobuf.ByteStringgetAuthBytes(int index) repeated string auth = 5;intrepeated string auth = 5;com.google.protobuf.ProtocolStringListrepeated string auth = 5;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExtensions(int index) repeated string extensions = 6;com.google.protobuf.ByteStringgetExtensionsBytes(int index) repeated string extensions = 6;intrepeated string extensions = 6;com.google.protobuf.ProtocolStringListrepeated string extensions = 6;getHost()required string host = 3;com.google.protobuf.ByteStringrequired string host = 3;getId()required string id = 1;com.google.protobuf.ByteStringrequired string id = 1;intgetPort()required int32 port = 2;required string protocol = 4;com.google.protobuf.ByteStringrequired string protocol = 4;booleanhasHost()required string host = 3;booleanhasId()required string id = 1;booleanhasPort()required int32 port = 2;booleanrequired string protocol = 4;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) repeated string auth = 5;setExtensions(int index, String value) repeated string extensions = 6;required string host = 3;setHostBytes(com.google.protobuf.ByteString value) required string host = 3;required string id = 1;setIdBytes(com.google.protobuf.ByteString value) required string id = 1;setPort(int value) required int32 port = 2;setProtocol(String value) required string protocol = 4;setProtocolBytes(com.google.protobuf.ByteString value) required string protocol = 4;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DataFormats.BookieServiceInfoFormat.Endpoint.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DataFormats.BookieServiceInfoFormat.Endpoint.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DataFormats.BookieServiceInfoFormat.Endpoint.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public DataFormats.BookieServiceInfoFormat.Endpoint.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataFormats.BookieServiceInfoFormat.Endpoint.Builder>
-
mergeFrom
public DataFormats.BookieServiceInfoFormat.Endpoint.Builder mergeFrom(DataFormats.BookieServiceInfoFormat.Endpoint other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DataFormats.BookieServiceInfoFormat.Endpoint.Builder>
-
mergeFrom
public DataFormats.BookieServiceInfoFormat.Endpoint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataFormats.BookieServiceInfoFormat.Endpoint.Builder>- Throws:
IOException
-
hasId
public boolean hasId()required string id = 1;- Specified by:
hasIdin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- Whether the id field is set.
-
getId
required string id = 1;- Specified by:
getIdin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()required string id = 1;- Specified by:
getIdBytesin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- The bytes for id.
-
setId
required string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
required string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
public DataFormats.BookieServiceInfoFormat.Endpoint.Builder setIdBytes(com.google.protobuf.ByteString value) required string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasPort
public boolean hasPort()required int32 port = 2;- Specified by:
hasPortin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- Whether the port field is set.
-
getPort
public int getPort()required int32 port = 2;- Specified by:
getPortin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- The port.
-
setPort
required int32 port = 2;- Parameters:
value- The port to set.- Returns:
- This builder for chaining.
-
clearPort
required int32 port = 2;- Returns:
- This builder for chaining.
-
hasHost
public boolean hasHost()required string host = 3;- Specified by:
hasHostin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- Whether the host field is set.
-
getHost
required string host = 3;- Specified by:
getHostin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()required string host = 3;- Specified by:
getHostBytesin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- The bytes for host.
-
setHost
required string host = 3;- Parameters:
value- The host to set.- Returns:
- This builder for chaining.
-
clearHost
required string host = 3;- Returns:
- This builder for chaining.
-
setHostBytes
public DataFormats.BookieServiceInfoFormat.Endpoint.Builder setHostBytes(com.google.protobuf.ByteString value) required string host = 3;- Parameters:
value- The bytes for host to set.- Returns:
- This builder for chaining.
-
hasProtocol
public boolean hasProtocol()required string protocol = 4;- Specified by:
hasProtocolin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- Whether the protocol field is set.
-
getProtocol
required string protocol = 4;- Specified by:
getProtocolin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()required string protocol = 4;- Specified by:
getProtocolBytesin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- The bytes for protocol.
-
setProtocol
required string protocol = 4;- Parameters:
value- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
required string protocol = 4;- Returns:
- This builder for chaining.
-
setProtocolBytes
public DataFormats.BookieServiceInfoFormat.Endpoint.Builder setProtocolBytes(com.google.protobuf.ByteString value) required string protocol = 4;- Parameters:
value- The bytes for protocol to set.- Returns:
- This builder for chaining.
-
getAuthList
public com.google.protobuf.ProtocolStringList getAuthList()repeated string auth = 5;- Specified by:
getAuthListin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- A list containing the auth.
-
getAuthCount
public int getAuthCount()repeated string auth = 5;- Specified by:
getAuthCountin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- The count of auth.
-
getAuth
repeated string auth = 5;- Specified by:
getAuthin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The auth at the given index.
-
getAuthBytes
public com.google.protobuf.ByteString getAuthBytes(int index) repeated string auth = 5;- Specified by:
getAuthBytesin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the auth at the given index.
-
setAuth
repeated string auth = 5;- Parameters:
index- The index to set the value at.value- The auth to set.- Returns:
- This builder for chaining.
-
addAuth
repeated string auth = 5;- Parameters:
value- The auth to add.- Returns:
- This builder for chaining.
-
addAllAuth
repeated string auth = 5;- Parameters:
values- The auth to add.- Returns:
- This builder for chaining.
-
clearAuth
repeated string auth = 5;- Returns:
- This builder for chaining.
-
addAuthBytes
public DataFormats.BookieServiceInfoFormat.Endpoint.Builder addAuthBytes(com.google.protobuf.ByteString value) repeated string auth = 5;- Parameters:
value- The bytes of the auth to add.- Returns:
- This builder for chaining.
-
getExtensionsList
public com.google.protobuf.ProtocolStringList getExtensionsList()repeated string extensions = 6;- Specified by:
getExtensionsListin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- A list containing the extensions.
-
getExtensionsCount
public int getExtensionsCount()repeated string extensions = 6;- Specified by:
getExtensionsCountin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Returns:
- The count of extensions.
-
getExtensions
repeated string extensions = 6;- Specified by:
getExtensionsin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The extensions at the given index.
-
getExtensionsBytes
public com.google.protobuf.ByteString getExtensionsBytes(int index) repeated string extensions = 6;- Specified by:
getExtensionsBytesin interfaceDataFormats.BookieServiceInfoFormat.EndpointOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the extensions at the given index.
-
setExtensions
repeated string extensions = 6;- Parameters:
index- The index to set the value at.value- The extensions to set.- Returns:
- This builder for chaining.
-
addExtensions
repeated string extensions = 6;- Parameters:
value- The extensions to add.- Returns:
- This builder for chaining.
-
addAllExtensions
public DataFormats.BookieServiceInfoFormat.Endpoint.Builder addAllExtensions(Iterable<String> values) repeated string extensions = 6;- Parameters:
values- The extensions to add.- Returns:
- This builder for chaining.
-
clearExtensions
repeated string extensions = 6;- Returns:
- This builder for chaining.
-
addExtensionsBytes
public DataFormats.BookieServiceInfoFormat.Endpoint.Builder addExtensionsBytes(com.google.protobuf.ByteString value) repeated string extensions = 6;- Parameters:
value- The bytes of the extensions to add.- Returns:
- This builder for chaining.
-