Class RecommendationStateInfo.Builder (2.20.0)

public static final class RecommendationStateInfo.Builder extends GeneratedMessageV3.Builder<RecommendationStateInfo.Builder> implements RecommendationStateInfoOrBuilder

Information for state. Contains state and metadata.

Protobuf type google.cloud.recommender.v1beta1.RecommendationStateInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RecommendationStateInfo build()
Returns
TypeDescription
RecommendationStateInfo

buildPartial()

public RecommendationStateInfo buildPartial()
Returns
TypeDescription
RecommendationStateInfo

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public RecommendationStateInfo.Builder clearState()

The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.

.google.cloud.recommender.v1beta1.RecommendationStateInfo.State state = 1;

Returns
TypeDescription
RecommendationStateInfo.Builder

This builder for chaining.

clearStateMetadata()

public RecommendationStateInfo.Builder clearStateMetadata()
Returns
TypeDescription
RecommendationStateInfo.Builder

clone()

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

containsStateMetadata(String key)

public boolean containsStateMetadata(String key)

A map of metadata for the state, provided by user or automations systems.

map<string, string> state_metadata = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public RecommendationStateInfo getDefaultInstanceForType()
Returns
TypeDescription
RecommendationStateInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableStateMetadata()

public Map<String,String> getMutableStateMetadata()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getState()

public RecommendationStateInfo.State getState()

The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.

.google.cloud.recommender.v1beta1.RecommendationStateInfo.State state = 1;

Returns
TypeDescription
RecommendationStateInfo.State

The state.

getStateMetadata()

public Map<String,String> getStateMetadata()
Returns
TypeDescription
Map<String,String>

getStateMetadataCount()

public int getStateMetadataCount()

A map of metadata for the state, provided by user or automations systems.

map<string, string> state_metadata = 2;

Returns
TypeDescription
int

getStateMetadataMap()

public Map<String,String> getStateMetadataMap()

A map of metadata for the state, provided by user or automations systems.

map<string, string> state_metadata = 2;

Returns
TypeDescription
Map<String,String>

getStateMetadataOrDefault(String key, String defaultValue)

public String getStateMetadataOrDefault(String key, String defaultValue)

A map of metadata for the state, provided by user or automations systems.

map<string, string> state_metadata = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getStateMetadataOrThrow(String key)

public String getStateMetadataOrThrow(String key)

A map of metadata for the state, provided by user or automations systems.

map<string, string> state_metadata = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getStateValue()

public int getStateValue()

The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.

.google.cloud.recommender.v1beta1.RecommendationStateInfo.State state = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RecommendationStateInfo other)

public RecommendationStateInfo.Builder mergeFrom(RecommendationStateInfo other)
Parameter
NameDescription
otherRecommendationStateInfo
Returns
TypeDescription
RecommendationStateInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllStateMetadata(Map<String,String> values)

public RecommendationStateInfo.Builder putAllStateMetadata(Map<String,String> values)

A map of metadata for the state, provided by user or automations systems.

map<string, string> state_metadata = 2;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
RecommendationStateInfo.Builder

putStateMetadata(String key, String value)

public RecommendationStateInfo.Builder putStateMetadata(String key, String value)

A map of metadata for the state, provided by user or automations systems.

map<string, string> state_metadata = 2;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
RecommendationStateInfo.Builder

removeStateMetadata(String key)

public RecommendationStateInfo.Builder removeStateMetadata(String key)

A map of metadata for the state, provided by user or automations systems.

map<string, string> state_metadata = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
RecommendationStateInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setState(RecommendationStateInfo.State value)

public RecommendationStateInfo.Builder setState(RecommendationStateInfo.State value)

The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.

.google.cloud.recommender.v1beta1.RecommendationStateInfo.State state = 1;

Parameter
NameDescription
valueRecommendationStateInfo.State

The state to set.

Returns
TypeDescription
RecommendationStateInfo.Builder

This builder for chaining.

setStateValue(int value)

public RecommendationStateInfo.Builder setStateValue(int value)

The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.

.google.cloud.recommender.v1beta1.RecommendationStateInfo.State state = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
RecommendationStateInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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