Class CommonMessages.DataClayInstance.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CommonMessages.DataClayInstance.Builder>
-
- es.bsc.dataclay.communication.grpc.messages.common.CommonMessages.DataClayInstance.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,CommonMessages.DataClayInstanceOrBuilder
,Cloneable
- Enclosing class:
- CommonMessages.DataClayInstance
public static final class CommonMessages.DataClayInstance.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommonMessages.DataClayInstance.Builder> implements CommonMessages.DataClayInstanceOrBuilder
Protobuf typedataclay.communication.grpc.common.DataClayInstance
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommonMessages.DataClayInstance.Builder
addAllHosts(Iterable<String> values)
repeated string hosts = 2;
CommonMessages.DataClayInstance.Builder
addAllPorts(Iterable<? extends Integer> values)
repeated int32 ports = 3;
CommonMessages.DataClayInstance.Builder
addHosts(String value)
repeated string hosts = 2;
CommonMessages.DataClayInstance.Builder
addHostsBytes(com.google.protobuf.ByteString value)
repeated string hosts = 2;
CommonMessages.DataClayInstance.Builder
addPorts(int value)
repeated int32 ports = 3;
CommonMessages.DataClayInstance.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CommonMessages.DataClayInstance
build()
CommonMessages.DataClayInstance
buildPartial()
CommonMessages.DataClayInstance.Builder
clear()
CommonMessages.DataClayInstance.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CommonMessages.DataClayInstance.Builder
clearHosts()
repeated string hosts = 2;
CommonMessages.DataClayInstance.Builder
clearId()
string id = 1;
CommonMessages.DataClayInstance.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CommonMessages.DataClayInstance.Builder
clearPorts()
repeated int32 ports = 3;
CommonMessages.DataClayInstance.Builder
clone()
CommonMessages.DataClayInstance
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getHosts(int index)
repeated string hosts = 2;
com.google.protobuf.ByteString
getHostsBytes(int index)
repeated string hosts = 2;
int
getHostsCount()
repeated string hosts = 2;
com.google.protobuf.ProtocolStringList
getHostsList()
repeated string hosts = 2;
String
getId()
string id = 1;
com.google.protobuf.ByteString
getIdBytes()
string id = 1;
int
getPorts(int index)
repeated int32 ports = 3;
int
getPortsCount()
repeated int32 ports = 3;
List<Integer>
getPortsList()
repeated int32 ports = 3;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CommonMessages.DataClayInstance.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CommonMessages.DataClayInstance.Builder
mergeFrom(com.google.protobuf.Message other)
CommonMessages.DataClayInstance.Builder
mergeFrom(CommonMessages.DataClayInstance other)
CommonMessages.DataClayInstance.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CommonMessages.DataClayInstance.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CommonMessages.DataClayInstance.Builder
setHosts(int index, String value)
repeated string hosts = 2;
CommonMessages.DataClayInstance.Builder
setId(String value)
string id = 1;
CommonMessages.DataClayInstance.Builder
setIdBytes(com.google.protobuf.ByteString value)
string id = 1;
CommonMessages.DataClayInstance.Builder
setPorts(int index, int value)
repeated int32 ports = 3;
CommonMessages.DataClayInstance.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CommonMessages.DataClayInstance.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMessages.DataClayInstance.Builder>
-
clear
public CommonMessages.DataClayInstance.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMessages.DataClayInstance.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMessages.DataClayInstance.Builder>
-
getDefaultInstanceForType
public CommonMessages.DataClayInstance getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommonMessages.DataClayInstance build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommonMessages.DataClayInstance buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommonMessages.DataClayInstance.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMessages.DataClayInstance.Builder>
-
setField
public CommonMessages.DataClayInstance.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMessages.DataClayInstance.Builder>
-
clearField
public CommonMessages.DataClayInstance.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMessages.DataClayInstance.Builder>
-
clearOneof
public CommonMessages.DataClayInstance.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMessages.DataClayInstance.Builder>
-
setRepeatedField
public CommonMessages.DataClayInstance.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMessages.DataClayInstance.Builder>
-
addRepeatedField
public CommonMessages.DataClayInstance.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMessages.DataClayInstance.Builder>
-
mergeFrom
public CommonMessages.DataClayInstance.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommonMessages.DataClayInstance.Builder>
-
mergeFrom
public CommonMessages.DataClayInstance.Builder mergeFrom(CommonMessages.DataClayInstance other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMessages.DataClayInstance.Builder>
-
mergeFrom
public CommonMessages.DataClayInstance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommonMessages.DataClayInstance.Builder>
- Throws:
IOException
-
getId
public String getId()
string id = 1;
- Specified by:
getId
in interfaceCommonMessages.DataClayInstanceOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
string id = 1;
- Specified by:
getIdBytes
in interfaceCommonMessages.DataClayInstanceOrBuilder
- Returns:
- The bytes for id.
-
setId
public CommonMessages.DataClayInstance.Builder setId(String value)
string id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public CommonMessages.DataClayInstance.Builder clearId()
string id = 1;
- Returns:
- This builder for chaining.
-
setIdBytes
public CommonMessages.DataClayInstance.Builder setIdBytes(com.google.protobuf.ByteString value)
string id = 1;
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
getHostsList
public com.google.protobuf.ProtocolStringList getHostsList()
repeated string hosts = 2;
- Specified by:
getHostsList
in interfaceCommonMessages.DataClayInstanceOrBuilder
- Returns:
- A list containing the hosts.
-
getHostsCount
public int getHostsCount()
repeated string hosts = 2;
- Specified by:
getHostsCount
in interfaceCommonMessages.DataClayInstanceOrBuilder
- Returns:
- The count of hosts.
-
getHosts
public String getHosts(int index)
repeated string hosts = 2;
- Specified by:
getHosts
in interfaceCommonMessages.DataClayInstanceOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The hosts at the given index.
-
getHostsBytes
public com.google.protobuf.ByteString getHostsBytes(int index)
repeated string hosts = 2;
- Specified by:
getHostsBytes
in interfaceCommonMessages.DataClayInstanceOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the hosts at the given index.
-
setHosts
public CommonMessages.DataClayInstance.Builder setHosts(int index, String value)
repeated string hosts = 2;
- Parameters:
index
- The index to set the value at.value
- The hosts to set.- Returns:
- This builder for chaining.
-
addHosts
public CommonMessages.DataClayInstance.Builder addHosts(String value)
repeated string hosts = 2;
- Parameters:
value
- The hosts to add.- Returns:
- This builder for chaining.
-
addAllHosts
public CommonMessages.DataClayInstance.Builder addAllHosts(Iterable<String> values)
repeated string hosts = 2;
- Parameters:
values
- The hosts to add.- Returns:
- This builder for chaining.
-
clearHosts
public CommonMessages.DataClayInstance.Builder clearHosts()
repeated string hosts = 2;
- Returns:
- This builder for chaining.
-
addHostsBytes
public CommonMessages.DataClayInstance.Builder addHostsBytes(com.google.protobuf.ByteString value)
repeated string hosts = 2;
- Parameters:
value
- The bytes of the hosts to add.- Returns:
- This builder for chaining.
-
getPortsList
public List<Integer> getPortsList()
repeated int32 ports = 3;
- Specified by:
getPortsList
in interfaceCommonMessages.DataClayInstanceOrBuilder
- Returns:
- A list containing the ports.
-
getPortsCount
public int getPortsCount()
repeated int32 ports = 3;
- Specified by:
getPortsCount
in interfaceCommonMessages.DataClayInstanceOrBuilder
- Returns:
- The count of ports.
-
getPorts
public int getPorts(int index)
repeated int32 ports = 3;
- Specified by:
getPorts
in interfaceCommonMessages.DataClayInstanceOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The ports at the given index.
-
setPorts
public CommonMessages.DataClayInstance.Builder setPorts(int index, int value)
repeated int32 ports = 3;
- Parameters:
index
- The index to set the value at.value
- The ports to set.- Returns:
- This builder for chaining.
-
addPorts
public CommonMessages.DataClayInstance.Builder addPorts(int value)
repeated int32 ports = 3;
- Parameters:
value
- The ports to add.- Returns:
- This builder for chaining.
-
addAllPorts
public CommonMessages.DataClayInstance.Builder addAllPorts(Iterable<? extends Integer> values)
repeated int32 ports = 3;
- Parameters:
values
- The ports to add.- Returns:
- This builder for chaining.
-
clearPorts
public CommonMessages.DataClayInstance.Builder clearPorts()
repeated int32 ports = 3;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final CommonMessages.DataClayInstance.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMessages.DataClayInstance.Builder>
-
mergeUnknownFields
public final CommonMessages.DataClayInstance.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMessages.DataClayInstance.Builder>
-
-