Class MarkRecommendationSucceededRequest (2.42.0)

public final class MarkRecommendationSucceededRequest extends GeneratedMessageV3 implements MarkRecommendationSucceededRequestOrBuilder

Request for the MarkRecommendationSucceeded Method.

Protobuf type google.cloud.recommender.v1beta1.MarkRecommendationSucceededRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MarkRecommendationSucceededRequest

Static Fields

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_METADATA_FIELD_NUMBER

public static final int STATE_METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MarkRecommendationSucceededRequest getDefaultInstance()
Returns
TypeDescription
MarkRecommendationSucceededRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static MarkRecommendationSucceededRequest.Builder newBuilder()
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder

newBuilder(MarkRecommendationSucceededRequest prototype)

public static MarkRecommendationSucceededRequest.Builder newBuilder(MarkRecommendationSucceededRequest prototype)
Parameter
NameDescription
prototypeMarkRecommendationSucceededRequest
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder

parseDelimitedFrom(InputStream input)

public static MarkRecommendationSucceededRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MarkRecommendationSucceededRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MarkRecommendationSucceededRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MarkRecommendationSucceededRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MarkRecommendationSucceededRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MarkRecommendationSucceededRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MarkRecommendationSucceededRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MarkRecommendationSucceededRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MarkRecommendationSucceededRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MarkRecommendationSucceededRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MarkRecommendationSucceededRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MarkRecommendationSucceededRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MarkRecommendationSucceededRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MarkRecommendationSucceededRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MarkRecommendationSucceededRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MarkRecommendationSucceededRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MarkRecommendationSucceededRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MarkRecommendationSucceededRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MarkRecommendationSucceededRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MarkRecommendationSucceededRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MarkRecommendationSucceededRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MarkRecommendationSucceededRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MarkRecommendationSucceededRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MarkRecommendationSucceededRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MarkRecommendationSucceededRequest> parser()
Returns
TypeDescription
Parser<MarkRecommendationSucceededRequest>

Methods

containsStateMetadata(String key)

public boolean containsStateMetadata(String key)

State properties to include with this state. Overwrites any existing state_metadata. Keys must match the regex /^a-z0-9{0,62}$/. Values must match the regex /^[a-zA-Z0-9_./-]{0,255}$/.

map<string, string> state_metadata = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public MarkRecommendationSucceededRequest getDefaultInstanceForType()
Returns
TypeDescription
MarkRecommendationSucceededRequest

getEtag()

public String getEtag()

Required. Fingerprint of the Recommendation. Provides optimistic locking.

string etag = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Required. Fingerprint of the Recommendation. Provides optimistic locking.

string etag = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for etag.

getName()

public String getName()

Required. Name of the recommendation.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the recommendation.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<MarkRecommendationSucceededRequest> getParserForType()
Returns
TypeDescription
Parser<MarkRecommendationSucceededRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStateMetadata() (deprecated)

public Map<String,String> getStateMetadata()
Returns
TypeDescription
Map<String,String>

getStateMetadataCount()

public int getStateMetadataCount()

State properties to include with this state. Overwrites any existing state_metadata. Keys must match the regex /^a-z0-9{0,62}$/. Values must match the regex /^[a-zA-Z0-9_./-]{0,255}$/.

map<string, string> state_metadata = 2;

Returns
TypeDescription
int

getStateMetadataMap()

public Map<String,String> getStateMetadataMap()

State properties to include with this state. Overwrites any existing state_metadata. Keys must match the regex /^a-z0-9{0,62}$/. Values must match the regex /^[a-zA-Z0-9_./-]{0,255}$/.

map<string, string> state_metadata = 2;

Returns
TypeDescription
Map<String,String>

getStateMetadataOrDefault(String key, String defaultValue)

public String getStateMetadataOrDefault(String key, String defaultValue)

State properties to include with this state. Overwrites any existing state_metadata. Keys must match the regex /^a-z0-9{0,62}$/. Values must match the regex /^[a-zA-Z0-9_./-]{0,255}$/.

map<string, string> state_metadata = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getStateMetadataOrThrow(String key)

public String getStateMetadataOrThrow(String key)

State properties to include with this state. Overwrites any existing state_metadata. Keys must match the regex /^a-z0-9{0,62}$/. Values must match the regex /^[a-zA-Z0-9_./-]{0,255}$/.

map<string, string> state_metadata = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MarkRecommendationSucceededRequest.Builder newBuilderForType()
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MarkRecommendationSucceededRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MarkRecommendationSucceededRequest.Builder toBuilder()
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException