Class OperationGroup.Builder (2.21.0)

public static final class OperationGroup.Builder extends GeneratedMessageV3.Builder<OperationGroup.Builder> implements OperationGroupOrBuilder

Group of operations that need to be performed atomically.

Protobuf type google.cloud.recommender.v1.OperationGroup

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllOperations(Iterable<? extends Operation> values)

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.v1.Operation operations = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.recommender.v1.Operation>
Returns
TypeDescription
OperationGroup.Builder

addOperations(Operation value)

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.v1.Operation operations = 1;

Parameter
NameDescription
valueOperation
Returns
TypeDescription
OperationGroup.Builder

addOperations(Operation.Builder builderForValue)

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.v1.Operation operations = 1;

Parameter
NameDescription
builderForValueOperation.Builder
Returns
TypeDescription
OperationGroup.Builder

addOperations(int index, Operation value)

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.v1.Operation operations = 1;

Parameters
NameDescription
indexint
valueOperation
Returns
TypeDescription
OperationGroup.Builder

addOperations(int index, Operation.Builder builderForValue)

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.v1.Operation operations = 1;

Parameters
NameDescription
indexint
builderForValueOperation.Builder
Returns
TypeDescription
OperationGroup.Builder

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.v1.Operation operations = 1;

Returns
TypeDescription
Operation.Builder

addOperationsBuilder(int index)

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.v1.Operation operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Operation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OperationGroup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OperationGroup.Builder
Overrides

build()

public OperationGroup build()
Returns
TypeDescription
OperationGroup

buildPartial()

public OperationGroup buildPartial()
Returns
TypeDescription
OperationGroup

clear()

public OperationGroup.Builder clear()
Returns
TypeDescription
OperationGroup.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OperationGroup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OperationGroup.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public OperationGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OperationGroup.Builder
Overrides

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.v1.Operation operations = 1;

Returns
TypeDescription
OperationGroup.Builder

clone()

public OperationGroup.Builder clone()
Returns
TypeDescription
OperationGroup.Builder
Overrides

getDefaultInstanceForType()

public OperationGroup getDefaultInstanceForType()
Returns
TypeDescription
OperationGroup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOperations(int index)

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.v1.Operation operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Operation

getOperationsBuilder(int index)

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.v1.Operation operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Operation.Builder

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.v1.Operation operations = 1;

Returns
TypeDescription
List<Builder>

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.v1.Operation operations = 1;

Returns
TypeDescription
int

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.v1.Operation operations = 1;

Returns
TypeDescription
List<Operation>

getOperationsOrBuilder(int index)

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.v1.Operation operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationOrBuilder

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.v1.Operation operations = 1;

Returns
TypeDescription
List<? extends com.google.cloud.recommender.v1.OperationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OperationGroup other)

public OperationGroup.Builder mergeFrom(OperationGroup other)
Parameter
NameDescription
otherOperationGroup
Returns
TypeDescription
OperationGroup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OperationGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OperationGroup.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OperationGroup.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OperationGroup.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OperationGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OperationGroup.Builder
Overrides

removeOperations(int index)

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.v1.Operation operations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationGroup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public OperationGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OperationGroup.Builder
Overrides

setOperations(int index, Operation value)

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.v1.Operation operations = 1;

Parameters
NameDescription
indexint
valueOperation
Returns
TypeDescription
OperationGroup.Builder

setOperations(int index, Operation.Builder builderForValue)

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.v1.Operation operations = 1;

Parameters
NameDescription
indexint
builderForValueOperation.Builder
Returns
TypeDescription
OperationGroup.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OperationGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OperationGroup.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OperationGroup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OperationGroup.Builder
Overrides