Send feedback
Class RecommendationStateInfo.Builder (2.4.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.4.1 keyboard_arrow_down
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.v1.RecommendationStateInfo
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RecommendationStateInfo . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public RecommendationStateInfo build ()
Returns
buildPartial()
public RecommendationStateInfo buildPartial ()
Returns
clear()
public RecommendationStateInfo . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public RecommendationStateInfo . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RecommendationStateInfo . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearState()
public RecommendationStateInfo . Builder clearState ()
The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.
.google.cloud.recommender.v1.RecommendationStateInfo.State state = 1;
Returns
public RecommendationStateInfo . Builder clearStateMetadata ()
Returns
clone()
public RecommendationStateInfo . Builder clone ()
Returns
Overrides
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
Returns
getDefaultInstanceForType()
public RecommendationStateInfo getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
public Map<String , String > getMutableStateMetadata ()
Use alternate mutation accessors instead.
Returns
getState()
public RecommendationStateInfo . State getState ()
The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.
.google.cloud.recommender.v1.RecommendationStateInfo.State state = 1;
Returns
public Map<String , String > getStateMetadata ()
Returns
public int getStateMetadataCount ()
A map of metadata for the state, provided by user or automations systems.
map<string, string> state_metadata = 2;
Returns
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
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
Returns
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
Returns
getStateValue()
public int getStateValue ()
The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.
.google.cloud.recommender.v1.RecommendationStateInfo.State state = 1;
Returns
Type Description int The enum numeric value on the wire for state.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField ( int number )
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField ( int number )
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(RecommendationStateInfo other)
public RecommendationStateInfo . Builder mergeFrom ( RecommendationStateInfo other )
Parameter
Returns
public RecommendationStateInfo . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public RecommendationStateInfo . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RecommendationStateInfo . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
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
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public RecommendationStateInfo . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RecommendationStateInfo . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setState(RecommendationStateInfo.State value)
public RecommendationStateInfo . Builder setState ( RecommendationStateInfo . State value )
The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.
.google.cloud.recommender.v1.RecommendationStateInfo.State state = 1;
Parameter
Returns
setStateValue(int value)
public RecommendationStateInfo . Builder setStateValue ( int value )
The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.
.google.cloud.recommender.v1.RecommendationStateInfo.State state = 1;
Parameter
Name Description value int
The enum numeric value on the wire for state to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final RecommendationStateInfo . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]