Class OperationGroup.Builder (2.48.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.recommender.v1.Operation>
Returns
Type Description
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
Name Description
value Operation
Returns
Type Description
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
Name Description
builderForValue Operation.Builder
Returns
Type Description
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
Name Description
index int
value Operation
Returns
Type Description
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
Name Description
index int
builderForValue Operation.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
Operation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OperationGroup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OperationGroup.Builder
Overrides

build()

public OperationGroup build()
Returns
Type Description
OperationGroup

buildPartial()

public OperationGroup buildPartial()
Returns
Type Description
OperationGroup

clear()

public OperationGroup.Builder clear()
Returns
Type Description
OperationGroup.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OperationGroup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OperationGroup.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public OperationGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
OperationGroup.Builder

clone()

public OperationGroup.Builder clone()
Returns
Type Description
OperationGroup.Builder
Overrides

getDefaultInstanceForType()

public OperationGroup getDefaultInstanceForType()
Returns
Type Description
OperationGroup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.recommender.v1.OperationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OperationGroup other)

public OperationGroup.Builder mergeFrom(OperationGroup other)
Parameter
Name Description
other OperationGroup
Returns
Type Description
OperationGroup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OperationGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OperationGroup.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OperationGroup.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OperationGroup.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OperationGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
OperationGroup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public OperationGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value Operation
Returns
Type Description
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
Name Description
index int
builderForValue Operation.Builder
Returns
Type Description
OperationGroup.Builder

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

public OperationGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OperationGroup.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OperationGroup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OperationGroup.Builder
Overrides