Class MarkRecommendationFailedRequest (2.3.0)

public final class MarkRecommendationFailedRequest extends GeneratedMessageV3 implements MarkRecommendationFailedRequestOrBuilder

Request for the MarkRecommendationFailed Method.

Protobuf type google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest

Inheritance

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

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 MarkRecommendationFailedRequest getDefaultInstance()
Returns
TypeDescription
MarkRecommendationFailedRequest

getDescriptor()

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

newBuilder()

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

newBuilder(MarkRecommendationFailedRequest prototype)

public static MarkRecommendationFailedRequest.Builder newBuilder(MarkRecommendationFailedRequest prototype)
Parameter
NameDescription
prototypeMarkRecommendationFailedRequest
Returns
TypeDescription
MarkRecommendationFailedRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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 MarkRecommendationFailedRequest getDefaultInstanceForType()
Returns
TypeDescription
MarkRecommendationFailedRequest

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<MarkRecommendationFailedRequest> getParserForType()
Returns
TypeDescription
Parser<MarkRecommendationFailedRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStateMetadata()

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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