public static final class RecommendationStateInfo.Builder extends GeneratedMessage.Builder<RecommendationStateInfo.Builder> implements RecommendationStateInfoOrBuilder
Information for state. Contains state and metadata.
Protobuf type google.cloud.recommender.v1.RecommendationStateInfo
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public RecommendationStateInfo build()
buildPartial()
public RecommendationStateInfo buildPartial()
clear()
public RecommendationStateInfo.Builder clear()
Overrides
clearState()
public RecommendationStateInfo.Builder clearState()
The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.
.google.cloud.recommender.v1.RecommendationStateInfo.State state = 1;
public RecommendationStateInfo.Builder clearStateMetadata()
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 |
| Name |
Description |
key |
String
|
getDefaultInstanceForType()
public RecommendationStateInfo getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Map<String,String> getMutableStateMetadata()
Use alternate mutation accessors instead.
getState()
public RecommendationStateInfo.State getState()
The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.
.google.cloud.recommender.v1.RecommendationStateInfo.State state = 1;
public Map<String,String> getStateMetadata()
public int getStateMetadataCount()
A map of metadata for the state, provided by user or automations systems.
map<string, string> state_metadata = 2;
| Returns |
| Type |
Description |
int |
|
public Map<String,String> getStateMetadataMap()
A map of metadata for the state, provided by user or automations systems.
map<string, string> state_metadata = 2;
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;
| Returns |
| Type |
Description |
String |
|
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 |
| Name |
Description |
key |
String
|
| Returns |
| Type |
Description |
String |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(RecommendationStateInfo other)
public RecommendationStateInfo.Builder mergeFrom(RecommendationStateInfo other)
public RecommendationStateInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RecommendationStateInfo.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
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;
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;
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 |
| Name |
Description |
key |
String
|
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;
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.
|