public final class RecommendationStateInfo extends GeneratedMessageV3 implements RecommendationStateInfoOrBuilder
Information for state. Contains state and metadata.
Protobuf type google.cloud.recommender.v1.RecommendationStateInfo
Static Fields
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value
public static final int STATE_METADATA_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static RecommendationStateInfo getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static RecommendationStateInfo.Builder newBuilder()
Returns
newBuilder(RecommendationStateInfo prototype)
public static RecommendationStateInfo.Builder newBuilder(RecommendationStateInfo prototype)
Parameter
Returns
public static RecommendationStateInfo parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static RecommendationStateInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static RecommendationStateInfo parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RecommendationStateInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static RecommendationStateInfo parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RecommendationStateInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RecommendationStateInfo parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static RecommendationStateInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RecommendationStateInfo parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static RecommendationStateInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static RecommendationStateInfo parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RecommendationStateInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<RecommendationStateInfo> parser()
Returns
Methods
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
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public RecommendationStateInfo getDefaultInstanceForType()
Returns
getParserForType()
public Parser<RecommendationStateInfo> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public RecommendationStateInfo.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RecommendationStateInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public RecommendationStateInfo.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions