public static final class MarkRecommendationClaimedRequest.Builder extends GeneratedMessageV3.Builder<MarkRecommendationClaimedRequest.Builder> implements MarkRecommendationClaimedRequestOrBuilder
Request for the MarkRecommendationClaimed
Method.
Protobuf type google.cloud.recommender.v1.MarkRecommendationClaimedRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MarkRecommendationClaimedRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public MarkRecommendationClaimedRequest build()
Returns
buildPartial()
public MarkRecommendationClaimedRequest buildPartial()
Returns
clear()
public MarkRecommendationClaimedRequest.Builder clear()
Returns
Overrides
clearEtag()
public MarkRecommendationClaimedRequest.Builder clearEtag()
Required. Fingerprint of the Recommendation. Provides optimistic locking.
string etag = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public MarkRecommendationClaimedRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public MarkRecommendationClaimedRequest.Builder clearName()
Required. Name of the recommendation.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public MarkRecommendationClaimedRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public MarkRecommendationClaimedRequest.Builder clearStateMetadata()
Returns
clone()
public MarkRecommendationClaimedRequest.Builder clone()
Returns
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
Returns
getDefaultInstanceForType()
public MarkRecommendationClaimedRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
public Map<String,String> getMutableStateMetadata()
Use alternate mutation accessors instead.
Returns
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
public Map<String,String> getStateMetadata()
Returns
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
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
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
Returns
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
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(MarkRecommendationClaimedRequest other)
public MarkRecommendationClaimedRequest.Builder mergeFrom(MarkRecommendationClaimedRequest other)
Parameter
Returns
public MarkRecommendationClaimedRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MarkRecommendationClaimedRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MarkRecommendationClaimedRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public MarkRecommendationClaimedRequest.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
Returns
public MarkRecommendationClaimedRequest.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
Returns
public MarkRecommendationClaimedRequest.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
Returns
setEtag(String value)
public MarkRecommendationClaimedRequest.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.
|
Returns
setEtagBytes(ByteString value)
public MarkRecommendationClaimedRequest.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.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public MarkRecommendationClaimedRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public MarkRecommendationClaimedRequest.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.
|
Returns
setNameBytes(ByteString value)
public MarkRecommendationClaimedRequest.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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MarkRecommendationClaimedRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MarkRecommendationClaimedRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides