Class 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 type org.platanios.tensorflow.proto.CompleteGroupRequest
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>
      • clear

        public CompleteGroupRequest.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>
      • getDefaultInstanceForType

        public CompleteGroupRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CompleteGroupRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CompleteGroupRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public CompleteGroupRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>
      • clearField

        public CompleteGroupRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>
      • clearOneof

        public CompleteGroupRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CompleteGroupRequest.Builder>
        Throws:
        java.io.IOException
      • setGroupKey

        public CompleteGroupRequest.Builder setGroupKey​(int value)
        int32 group_key = 1;
        Parameters:
        value - The groupKey to set.
        Returns:
        This builder for chaining.
      • setGroupSize

        public CompleteGroupRequest.Builder setGroupSize​(int value)
        int32 group_size = 2;
        Parameters:
        value - The groupSize to set.
        Returns:
        This builder for chaining.
      • setDeviceType

        public CompleteGroupRequest.Builder setDeviceType​(java.lang.String value)
        string device_type = 3;
        Parameters:
        value - The deviceType to set.
        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 interface CompleteGroupRequestOrBuilder
        Returns:
        A list containing the deviceName.
      • getDeviceName

        public java.lang.String getDeviceName​(int index)
        repeated string device_name = 4;
        Specified by:
        getDeviceName in interface CompleteGroupRequestOrBuilder
        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 interface CompleteGroupRequestOrBuilder
        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.
      • 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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>
      • mergeUnknownFields

        public final CompleteGroupRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteGroupRequest.Builder>