Class RecommendationContent.Builder (2.29.0)

public static final class RecommendationContent.Builder extends GeneratedMessageV3.Builder<RecommendationContent.Builder> implements RecommendationContentOrBuilder

Contains what resources are changing and how they are changing.

Protobuf type google.cloud.recommender.v1beta1.RecommendationContent

Static Methods

getDescriptor()

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

Methods

addAllOperationGroups(Iterable<? extends OperationGroup> values)

public RecommendationContent.Builder addAllOperationGroups(Iterable<? extends OperationGroup> values)

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

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

addOperationGroups(OperationGroup value)

public RecommendationContent.Builder addOperationGroups(OperationGroup value)

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Parameter
NameDescription
valueOperationGroup
Returns
TypeDescription
RecommendationContent.Builder

addOperationGroups(OperationGroup.Builder builderForValue)

public RecommendationContent.Builder addOperationGroups(OperationGroup.Builder builderForValue)

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Parameter
NameDescription
builderForValueOperationGroup.Builder
Returns
TypeDescription
RecommendationContent.Builder

addOperationGroups(int index, OperationGroup value)

public RecommendationContent.Builder addOperationGroups(int index, OperationGroup value)

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Parameters
NameDescription
indexint
valueOperationGroup
Returns
TypeDescription
RecommendationContent.Builder

addOperationGroups(int index, OperationGroup.Builder builderForValue)

public RecommendationContent.Builder addOperationGroups(int index, OperationGroup.Builder builderForValue)

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Parameters
NameDescription
indexint
builderForValueOperationGroup.Builder
Returns
TypeDescription
RecommendationContent.Builder

addOperationGroupsBuilder()

public OperationGroup.Builder addOperationGroupsBuilder()

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Returns
TypeDescription
OperationGroup.Builder

addOperationGroupsBuilder(int index)

public OperationGroup.Builder addOperationGroupsBuilder(int index)

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationGroup.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RecommendationContent build()
Returns
TypeDescription
RecommendationContent

buildPartial()

public RecommendationContent buildPartial()
Returns
TypeDescription
RecommendationContent

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperationGroups()

public RecommendationContent.Builder clearOperationGroups()

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Returns
TypeDescription
RecommendationContent.Builder

clearOverview()

public RecommendationContent.Builder clearOverview()

Condensed overview information about the recommendation.

.google.protobuf.Struct overview = 3;

Returns
TypeDescription
RecommendationContent.Builder

clone()

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

getDefaultInstanceForType()

public RecommendationContent getDefaultInstanceForType()
Returns
TypeDescription
RecommendationContent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOperationGroups(int index)

public OperationGroup getOperationGroups(int index)

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationGroup

getOperationGroupsBuilder(int index)

public OperationGroup.Builder getOperationGroupsBuilder(int index)

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationGroup.Builder

getOperationGroupsBuilderList()

public List<OperationGroup.Builder> getOperationGroupsBuilderList()

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Returns
TypeDescription
List<Builder>

getOperationGroupsCount()

public int getOperationGroupsCount()

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Returns
TypeDescription
int

getOperationGroupsList()

public List<OperationGroup> getOperationGroupsList()

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Returns
TypeDescription
List<OperationGroup>

getOperationGroupsOrBuilder(int index)

public OperationGroupOrBuilder getOperationGroupsOrBuilder(int index)

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationGroupOrBuilder

getOperationGroupsOrBuilderList()

public List<? extends OperationGroupOrBuilder> getOperationGroupsOrBuilderList()

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Returns
TypeDescription
List<? extends com.google.cloud.recommender.v1beta1.OperationGroupOrBuilder>

getOverview()

public Struct getOverview()

Condensed overview information about the recommendation.

.google.protobuf.Struct overview = 3;

Returns
TypeDescription
Struct

The overview.

getOverviewBuilder()

public Struct.Builder getOverviewBuilder()

Condensed overview information about the recommendation.

.google.protobuf.Struct overview = 3;

Returns
TypeDescription
Builder

getOverviewOrBuilder()

public StructOrBuilder getOverviewOrBuilder()

Condensed overview information about the recommendation.

.google.protobuf.Struct overview = 3;

Returns
TypeDescription
StructOrBuilder

hasOverview()

public boolean hasOverview()

Condensed overview information about the recommendation.

.google.protobuf.Struct overview = 3;

Returns
TypeDescription
boolean

Whether the overview field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RecommendationContent other)

public RecommendationContent.Builder mergeFrom(RecommendationContent other)
Parameter
NameDescription
otherRecommendationContent
Returns
TypeDescription
RecommendationContent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOverview(Struct value)

public RecommendationContent.Builder mergeOverview(Struct value)

Condensed overview information about the recommendation.

.google.protobuf.Struct overview = 3;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
RecommendationContent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeOperationGroups(int index)

public RecommendationContent.Builder removeOperationGroups(int index)

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
RecommendationContent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOperationGroups(int index, OperationGroup value)

public RecommendationContent.Builder setOperationGroups(int index, OperationGroup value)

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Parameters
NameDescription
indexint
valueOperationGroup
Returns
TypeDescription
RecommendationContent.Builder

setOperationGroups(int index, OperationGroup.Builder builderForValue)

public RecommendationContent.Builder setOperationGroups(int index, OperationGroup.Builder builderForValue)

Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.

repeated .google.cloud.recommender.v1beta1.OperationGroup operation_groups = 2;

Parameters
NameDescription
indexint
builderForValueOperationGroup.Builder
Returns
TypeDescription
RecommendationContent.Builder

setOverview(Struct value)

public RecommendationContent.Builder setOverview(Struct value)

Condensed overview information about the recommendation.

.google.protobuf.Struct overview = 3;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
RecommendationContent.Builder

setOverview(Struct.Builder builderForValue)

public RecommendationContent.Builder setOverview(Struct.Builder builderForValue)

Condensed overview information about the recommendation.

.google.protobuf.Struct overview = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
RecommendationContent.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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