public static final class MarkRecommendationFailedRequest.Builder extends GeneratedMessageV3.Builder<MarkRecommendationFailedRequest.Builder> implements MarkRecommendationFailedRequestOrBuilder
Request for the MarkRecommendationFailed
Method.
Protobuf type google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MarkRecommendationFailedRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public MarkRecommendationFailedRequest build()
buildPartial()
public MarkRecommendationFailedRequest buildPartial()
clear()
public MarkRecommendationFailedRequest.Builder clear()
Overrides
clearEtag()
public MarkRecommendationFailedRequest.Builder clearEtag()
Required. Fingerprint of the Recommendation. Provides optimistic locking.
string etag = 3 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public MarkRecommendationFailedRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearName()
public MarkRecommendationFailedRequest.Builder clearName()
Required. Name of the recommendation.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clearOneof(Descriptors.OneofDescriptor oneof)
public MarkRecommendationFailedRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public MarkRecommendationFailedRequest.Builder clearStateMetadata()
clone()
public MarkRecommendationFailedRequest.Builder clone()
Overrides
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
|
getDefaultInstanceForType()
public MarkRecommendationFailedRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
public Map<String,String> getMutableStateMetadata()
Use alternate mutation accessors instead.
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.
|
public Map<String,String> getStateMetadata()
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 | |
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;
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;
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
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(MarkRecommendationFailedRequest other)
public MarkRecommendationFailedRequest.Builder mergeFrom(MarkRecommendationFailedRequest other)
public MarkRecommendationFailedRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public MarkRecommendationFailedRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MarkRecommendationFailedRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
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;
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
|
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 | String
The etag to set.
|
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 | ByteString
The bytes for etag to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public MarkRecommendationFailedRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 | String
The name to set.
|
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 | ByteString
The bytes for name to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MarkRecommendationFailedRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MarkRecommendationFailedRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides