Class MarkRecommendationSucceededRequest.Builder (2.42.0)

public static final class MarkRecommendationSucceededRequest.Builder extends GeneratedMessageV3.Builder<MarkRecommendationSucceededRequest.Builder> implements MarkRecommendationSucceededRequestOrBuilder

Request for the MarkRecommendationSucceeded Method.

Protobuf type google.cloud.recommender.v1.MarkRecommendationSucceededRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MarkRecommendationSucceededRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder
Overrides

build()

public MarkRecommendationSucceededRequest build()
Returns
TypeDescription
MarkRecommendationSucceededRequest

buildPartial()

public MarkRecommendationSucceededRequest buildPartial()
Returns
TypeDescription
MarkRecommendationSucceededRequest

clear()

public MarkRecommendationSucceededRequest.Builder clear()
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder
Overrides

clearEtag()

public MarkRecommendationSucceededRequest.Builder clearEtag()

Required. Fingerprint of the Recommendation. Provides optimistic locking.

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

Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MarkRecommendationSucceededRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder
Overrides

clearName()

public MarkRecommendationSucceededRequest.Builder clearName()

Required. Name of the recommendation.

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

Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MarkRecommendationSucceededRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder
Overrides

clearStateMetadata()

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

clone()

public MarkRecommendationSucceededRequest.Builder clone()
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder
Overrides

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

getDefaultInstanceForType()

public MarkRecommendationSucceededRequest getDefaultInstanceForType()
Returns
TypeDescription
MarkRecommendationSucceededRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getMutableStateMetadata() (deprecated)

public Map<String,String> getMutableStateMetadata()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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.

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

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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MarkRecommendationSucceededRequest other)

public MarkRecommendationSucceededRequest.Builder mergeFrom(MarkRecommendationSucceededRequest other)
Parameter
NameDescription
otherMarkRecommendationSucceededRequest
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MarkRecommendationSucceededRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MarkRecommendationSucceededRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MarkRecommendationSucceededRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder
Overrides

putAllStateMetadata(Map<String,String> values)

public MarkRecommendationSucceededRequest.Builder putAllStateMetadata(Map<String,String> values)

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
valuesMap<String,String>
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder

putStateMetadata(String key, String value)

public MarkRecommendationSucceededRequest.Builder putStateMetadata(String key, String value)

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
valueString
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder

removeStateMetadata(String key)

public MarkRecommendationSucceededRequest.Builder removeStateMetadata(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
MarkRecommendationSucceededRequest.Builder

setEtag(String value)

public MarkRecommendationSucceededRequest.Builder setEtag(String value)

Required. Fingerprint of the Recommendation. Provides optimistic locking.

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

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public MarkRecommendationSucceededRequest.Builder setEtagBytes(ByteString value)

Required. Fingerprint of the Recommendation. Provides optimistic locking.

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

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MarkRecommendationSucceededRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder
Overrides

setName(String value)

public MarkRecommendationSucceededRequest.Builder setName(String value)

Required. Name of the recommendation.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public MarkRecommendationSucceededRequest.Builder setNameBytes(ByteString value)

Required. Name of the recommendation.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MarkRecommendationSucceededRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MarkRecommendationSucceededRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MarkRecommendationSucceededRequest.Builder
Overrides