Class OperationGroup.Builder

  • All Implemented Interfaces:
    OperationGroupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    OperationGroup

    public static final class OperationGroup.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<OperationGroup.Builder>
    implements OperationGroupOrBuilder
     Group of operations that need to be performed atomically.
     
    Protobuf type google.cloud.recommender.v1beta1.OperationGroup
    • 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<OperationGroup.Builder>
      • clear

        public OperationGroup.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<OperationGroup.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<OperationGroup.Builder>
      • getDefaultInstanceForType

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

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

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

        public OperationGroup.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<OperationGroup.Builder>
      • setField

        public OperationGroup.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<OperationGroup.Builder>
      • clearField

        public OperationGroup.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<OperationGroup.Builder>
      • clearOneof

        public OperationGroup.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<OperationGroup.Builder>
      • setRepeatedField

        public OperationGroup.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OperationGroup.Builder>
      • addRepeatedField

        public OperationGroup.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OperationGroup.Builder>
      • mergeFrom

        public OperationGroup.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OperationGroup.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OperationGroup.Builder>
      • mergeFrom

        public OperationGroup.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws 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<OperationGroup.Builder>
        Throws:
        IOException
      • getOperationsList

        public List<Operation> getOperationsList()
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
        Specified by:
        getOperationsList in interface OperationGroupOrBuilder
      • getOperationsCount

        public int getOperationsCount()
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
        Specified by:
        getOperationsCount in interface OperationGroupOrBuilder
      • getOperations

        public Operation getOperations​(int index)
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
        Specified by:
        getOperations in interface OperationGroupOrBuilder
      • setOperations

        public OperationGroup.Builder setOperations​(int index,
                                                    Operation value)
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
      • setOperations

        public OperationGroup.Builder setOperations​(int index,
                                                    Operation.Builder builderForValue)
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
      • addOperations

        public OperationGroup.Builder addOperations​(Operation value)
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
      • addOperations

        public OperationGroup.Builder addOperations​(int index,
                                                    Operation value)
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
      • addOperations

        public OperationGroup.Builder addOperations​(Operation.Builder builderForValue)
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
      • addOperations

        public OperationGroup.Builder addOperations​(int index,
                                                    Operation.Builder builderForValue)
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
      • addAllOperations

        public OperationGroup.Builder addAllOperations​(Iterable<? extends Operation> values)
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
      • clearOperations

        public OperationGroup.Builder clearOperations()
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
      • removeOperations

        public OperationGroup.Builder removeOperations​(int index)
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
      • getOperationsBuilder

        public Operation.Builder getOperationsBuilder​(int index)
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
      • getOperationsOrBuilder

        public OperationOrBuilder getOperationsOrBuilder​(int index)
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
        Specified by:
        getOperationsOrBuilder in interface OperationGroupOrBuilder
      • getOperationsOrBuilderList

        public List<? extends OperationOrBuilder> getOperationsOrBuilderList()
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
        Specified by:
        getOperationsOrBuilderList in interface OperationGroupOrBuilder
      • addOperationsBuilder

        public Operation.Builder addOperationsBuilder()
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
      • addOperationsBuilder

        public Operation.Builder addOperationsBuilder​(int index)
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
      • getOperationsBuilderList

        public List<Operation.Builder> getOperationsBuilderList()
         List of operations across one or more resources that belong to this group.
         Loosely based on RFC6902 and should be performed in the order they appear.
         
        repeated .google.cloud.recommender.v1beta1.Operation operations = 1;
      • setUnknownFields

        public final OperationGroup.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<OperationGroup.Builder>
      • mergeUnknownFields

        public final OperationGroup.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<OperationGroup.Builder>