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
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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