public static final class InsightStateInfo.Builder extends GeneratedMessageV3.Builder<InsightStateInfo.Builder> implements InsightStateInfoOrBuilder
Information related to insight state.
Protobuf type google.cloud.recommender.v1.InsightStateInfo
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InsightStateInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public InsightStateInfo build()
Returns
buildPartial()
public InsightStateInfo buildPartial()
Returns
clear()
public InsightStateInfo.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public InsightStateInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public InsightStateInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearState()
public InsightStateInfo.Builder clearState()
Insight state.
.google.cloud.recommender.v1.InsightStateInfo.State state = 1;
Returns
public InsightStateInfo.Builder clearStateMetadata()
Returns
clone()
public InsightStateInfo.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 InsightStateInfo 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 InsightStateInfo.State getState()
Insight state.
.google.cloud.recommender.v1.InsightStateInfo.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()
Insight state.
.google.cloud.recommender.v1.InsightStateInfo.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(InsightStateInfo other)
public InsightStateInfo.Builder mergeFrom(InsightStateInfo other)
Parameter
Returns
public InsightStateInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public InsightStateInfo.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InsightStateInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public InsightStateInfo.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 InsightStateInfo.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 InsightStateInfo.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 InsightStateInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InsightStateInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setState(InsightStateInfo.State value)
public InsightStateInfo.Builder setState(InsightStateInfo.State value)
Insight state.
.google.cloud.recommender.v1.InsightStateInfo.State state = 1;
Parameter
Returns
setStateValue(int value)
public InsightStateInfo.Builder setStateValue(int value)
Insight state.
.google.cloud.recommender.v1.InsightStateInfo.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 InsightStateInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides