Package org.platanios.tensorflow.proto
Class CompleteGroupRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>
-
- org.platanios.tensorflow.proto.CompleteGroupRequest.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,CompleteGroupRequestOrBuilder
- Enclosing class:
- CompleteGroupRequest
public static final class CompleteGroupRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder> implements CompleteGroupRequestOrBuilder
Supplies one or more device names as members of the group identified by group_key. Service will respond when all group_size devices become known. All devices in group must have same type.
Protobuf typeorg.platanios.tensorflow.proto.CompleteGroupRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompleteGroupRequest.Builder
addAllDeviceName(java.lang.Iterable<java.lang.String> values)
repeated string device_name = 4;
CompleteGroupRequest.Builder
addDeviceName(java.lang.String value)
repeated string device_name = 4;
CompleteGroupRequest.Builder
addDeviceNameBytes(com.google.protobuf.ByteString value)
repeated string device_name = 4;
CompleteGroupRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CompleteGroupRequest
build()
CompleteGroupRequest
buildPartial()
CompleteGroupRequest.Builder
clear()
CompleteGroupRequest.Builder
clearCollectiveType()
int32 collective_type = 5;
CompleteGroupRequest.Builder
clearDeviceName()
repeated string device_name = 4;
CompleteGroupRequest.Builder
clearDeviceType()
string device_type = 3;
CompleteGroupRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CompleteGroupRequest.Builder
clearGroupKey()
int32 group_key = 1;
CompleteGroupRequest.Builder
clearGroupSize()
int32 group_size = 2;
CompleteGroupRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CompleteGroupRequest.Builder
clone()
int
getCollectiveType()
int32 collective_type = 5;
CompleteGroupRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getDeviceName(int index)
repeated string device_name = 4;
com.google.protobuf.ByteString
getDeviceNameBytes(int index)
repeated string device_name = 4;
int
getDeviceNameCount()
repeated string device_name = 4;
com.google.protobuf.ProtocolStringList
getDeviceNameList()
repeated string device_name = 4;
java.lang.String
getDeviceType()
string device_type = 3;
com.google.protobuf.ByteString
getDeviceTypeBytes()
string device_type = 3;
int
getGroupKey()
int32 group_key = 1;
int
getGroupSize()
int32 group_size = 2;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CompleteGroupRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CompleteGroupRequest.Builder
mergeFrom(com.google.protobuf.Message other)
CompleteGroupRequest.Builder
mergeFrom(CompleteGroupRequest other)
CompleteGroupRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CompleteGroupRequest.Builder
setCollectiveType(int value)
int32 collective_type = 5;
CompleteGroupRequest.Builder
setDeviceName(int index, java.lang.String value)
repeated string device_name = 4;
CompleteGroupRequest.Builder
setDeviceType(java.lang.String value)
string device_type = 3;
CompleteGroupRequest.Builder
setDeviceTypeBytes(com.google.protobuf.ByteString value)
string device_type = 3;
CompleteGroupRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CompleteGroupRequest.Builder
setGroupKey(int value)
int32 group_key = 1;
CompleteGroupRequest.Builder
setGroupSize(int value)
int32 group_size = 2;
CompleteGroupRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
CompleteGroupRequest.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<CompleteGroupRequest.Builder>
-
clear
public CompleteGroupRequest.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<CompleteGroupRequest.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<CompleteGroupRequest.Builder>
-
getDefaultInstanceForType
public CompleteGroupRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CompleteGroupRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CompleteGroupRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CompleteGroupRequest.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<CompleteGroupRequest.Builder>
-
setField
public CompleteGroupRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>
-
clearField
public CompleteGroupRequest.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<CompleteGroupRequest.Builder>
-
clearOneof
public CompleteGroupRequest.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<CompleteGroupRequest.Builder>
-
setRepeatedField
public CompleteGroupRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>
-
addRepeatedField
public CompleteGroupRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>
-
mergeFrom
public CompleteGroupRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CompleteGroupRequest.Builder>
-
mergeFrom
public CompleteGroupRequest.Builder mergeFrom(CompleteGroupRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>
-
mergeFrom
public CompleteGroupRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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<CompleteGroupRequest.Builder>
- Throws:
java.io.IOException
-
getGroupKey
public int getGroupKey()
int32 group_key = 1;
- Specified by:
getGroupKey
in interfaceCompleteGroupRequestOrBuilder
- Returns:
- The groupKey.
-
setGroupKey
public CompleteGroupRequest.Builder setGroupKey(int value)
int32 group_key = 1;
- Parameters:
value
- The groupKey to set.- Returns:
- This builder for chaining.
-
clearGroupKey
public CompleteGroupRequest.Builder clearGroupKey()
int32 group_key = 1;
- Returns:
- This builder for chaining.
-
getGroupSize
public int getGroupSize()
int32 group_size = 2;
- Specified by:
getGroupSize
in interfaceCompleteGroupRequestOrBuilder
- Returns:
- The groupSize.
-
setGroupSize
public CompleteGroupRequest.Builder setGroupSize(int value)
int32 group_size = 2;
- Parameters:
value
- The groupSize to set.- Returns:
- This builder for chaining.
-
clearGroupSize
public CompleteGroupRequest.Builder clearGroupSize()
int32 group_size = 2;
- Returns:
- This builder for chaining.
-
getDeviceType
public java.lang.String getDeviceType()
string device_type = 3;
- Specified by:
getDeviceType
in interfaceCompleteGroupRequestOrBuilder
- Returns:
- The deviceType.
-
getDeviceTypeBytes
public com.google.protobuf.ByteString getDeviceTypeBytes()
string device_type = 3;
- Specified by:
getDeviceTypeBytes
in interfaceCompleteGroupRequestOrBuilder
- Returns:
- The bytes for deviceType.
-
setDeviceType
public CompleteGroupRequest.Builder setDeviceType(java.lang.String value)
string device_type = 3;
- Parameters:
value
- The deviceType to set.- Returns:
- This builder for chaining.
-
clearDeviceType
public CompleteGroupRequest.Builder clearDeviceType()
string device_type = 3;
- Returns:
- This builder for chaining.
-
setDeviceTypeBytes
public CompleteGroupRequest.Builder setDeviceTypeBytes(com.google.protobuf.ByteString value)
string device_type = 3;
- Parameters:
value
- The bytes for deviceType to set.- Returns:
- This builder for chaining.
-
getDeviceNameList
public com.google.protobuf.ProtocolStringList getDeviceNameList()
repeated string device_name = 4;
- Specified by:
getDeviceNameList
in interfaceCompleteGroupRequestOrBuilder
- Returns:
- A list containing the deviceName.
-
getDeviceNameCount
public int getDeviceNameCount()
repeated string device_name = 4;
- Specified by:
getDeviceNameCount
in interfaceCompleteGroupRequestOrBuilder
- Returns:
- The count of deviceName.
-
getDeviceName
public java.lang.String getDeviceName(int index)
repeated string device_name = 4;
- Specified by:
getDeviceName
in interfaceCompleteGroupRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The deviceName at the given index.
-
getDeviceNameBytes
public com.google.protobuf.ByteString getDeviceNameBytes(int index)
repeated string device_name = 4;
- Specified by:
getDeviceNameBytes
in interfaceCompleteGroupRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the deviceName at the given index.
-
setDeviceName
public CompleteGroupRequest.Builder setDeviceName(int index, java.lang.String value)
repeated string device_name = 4;
- Parameters:
index
- The index to set the value at.value
- The deviceName to set.- Returns:
- This builder for chaining.
-
addDeviceName
public CompleteGroupRequest.Builder addDeviceName(java.lang.String value)
repeated string device_name = 4;
- Parameters:
value
- The deviceName to add.- Returns:
- This builder for chaining.
-
addAllDeviceName
public CompleteGroupRequest.Builder addAllDeviceName(java.lang.Iterable<java.lang.String> values)
repeated string device_name = 4;
- Parameters:
values
- The deviceName to add.- Returns:
- This builder for chaining.
-
clearDeviceName
public CompleteGroupRequest.Builder clearDeviceName()
repeated string device_name = 4;
- Returns:
- This builder for chaining.
-
addDeviceNameBytes
public CompleteGroupRequest.Builder addDeviceNameBytes(com.google.protobuf.ByteString value)
repeated string device_name = 4;
- Parameters:
value
- The bytes of the deviceName to add.- Returns:
- This builder for chaining.
-
getCollectiveType
public int getCollectiveType()
int32 collective_type = 5;
- Specified by:
getCollectiveType
in interfaceCompleteGroupRequestOrBuilder
- Returns:
- The collectiveType.
-
setCollectiveType
public CompleteGroupRequest.Builder setCollectiveType(int value)
int32 collective_type = 5;
- Parameters:
value
- The collectiveType to set.- Returns:
- This builder for chaining.
-
clearCollectiveType
public CompleteGroupRequest.Builder clearCollectiveType()
int32 collective_type = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final CompleteGroupRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>
-
mergeUnknownFields
public final CompleteGroupRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>
-
-