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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RecommendationStateInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public RecommendationStateInfo build()
buildPartial()
public RecommendationStateInfo buildPartial()
clear()
public RecommendationStateInfo.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public RecommendationStateInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RecommendationStateInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearState()
public RecommendationStateInfo.Builder clearState()
The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.
.google.cloud.recommender.v1beta1.RecommendationStateInfo.State state = 1;
public RecommendationStateInfo.Builder clearStateMetadata()
clone()
public RecommendationStateInfo.Builder clone()
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 |
---|
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.v1beta1.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;
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
|
getStateValue()
public int getStateValue()
The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.
.google.cloud.recommender.v1beta1.RecommendationStateInfo.State state = 1;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for state.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
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
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RecommendationStateInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public RecommendationStateInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RecommendationStateInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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 |
---|
Name | Description |
value | int
The enum numeric value on the wire for state to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final RecommendationStateInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides