public static final class MarkRecommendationFailedRequest.Builder extends GeneratedMessage.Builder<MarkRecommendationFailedRequest.Builder> implements MarkRecommendationFailedRequestOrBuilder Request for the MarkRecommendationFailed Method.
Protobuf type google.cloud.recommender.v1.MarkRecommendationFailedRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MarkRecommendationFailedRequest.BuilderImplements
MarkRecommendationFailedRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public MarkRecommendationFailedRequest build()| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest |
|
buildPartial()
public MarkRecommendationFailedRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest |
|
clear()
public MarkRecommendationFailedRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest.Builder |
|
clearEtag()
public MarkRecommendationFailedRequest.Builder clearEtag()Required. Fingerprint of the Recommendation. Provides optimistic locking.
string etag = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest.Builder |
This builder for chaining. |
clearName()
public MarkRecommendationFailedRequest.Builder clearName()Required. Name of the recommendation.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest.Builder |
This builder for chaining. |
clearStateMetadata()
public MarkRecommendationFailedRequest.Builder clearStateMetadata()| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest.Builder |
|
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 | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public MarkRecommendationFailedRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEtag()
public String getEtag()Required. Fingerprint of the Recommendation. Provides optimistic locking.
string etag = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The etag. |
getEtagBytes()
public ByteString getEtagBytes()Required. Fingerprint of the Recommendation. Provides optimistic locking.
string etag = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for etag. |
getMutableStateMetadata() (deprecated)
public Map<String,String> getMutableStateMetadata()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getStateMetadata() (deprecated)
public Map<String,String> getStateMetadata()Use #getStateMetadataMap() instead.
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(MarkRecommendationFailedRequest other)
public MarkRecommendationFailedRequest.Builder mergeFrom(MarkRecommendationFailedRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
MarkRecommendationFailedRequest |
| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MarkRecommendationFailedRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MarkRecommendationFailedRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest.Builder |
|
putAllStateMetadata(Map<String,String> values)
public MarkRecommendationFailedRequest.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 | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest.Builder |
|
putStateMetadata(String key, String value)
public MarkRecommendationFailedRequest.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 | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest.Builder |
|
removeStateMetadata(String key)
public MarkRecommendationFailedRequest.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 | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest.Builder |
|
setEtag(String value)
public MarkRecommendationFailedRequest.Builder setEtag(String value)Required. Fingerprint of the Recommendation. Provides optimistic locking.
string etag = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe etag to set. |
| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest.Builder |
This builder for chaining. |
setEtagBytes(ByteString value)
public MarkRecommendationFailedRequest.Builder setEtagBytes(ByteString value)Required. Fingerprint of the Recommendation. Provides optimistic locking.
string etag = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for etag to set. |
| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest.Builder |
This builder for chaining. |
setName(String value)
public MarkRecommendationFailedRequest.Builder setName(String value)Required. Name of the recommendation.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public MarkRecommendationFailedRequest.Builder setNameBytes(ByteString value)Required. Name of the recommendation.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
MarkRecommendationFailedRequest.Builder |
This builder for chaining. |