public static final class MarkInsightAcceptedRequest.Builder extends GeneratedMessageV3.Builder<MarkInsightAcceptedRequest.Builder> implements MarkInsightAcceptedRequestOrBuilder
Request for the MarkInsightAccepted
method.
Protobuf type google.cloud.recommender.v1.MarkInsightAcceptedRequest
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MarkInsightAcceptedRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public MarkInsightAcceptedRequest build()
Returns
buildPartial()
public MarkInsightAcceptedRequest buildPartial()
Returns
clear()
public MarkInsightAcceptedRequest.Builder clear()
Returns
Overrides
clearEtag()
public MarkInsightAcceptedRequest.Builder clearEtag()
Required. Fingerprint of the Insight. Provides optimistic locking.
string etag = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public MarkInsightAcceptedRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public MarkInsightAcceptedRequest.Builder clearName()
Required. Name of the insight.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public MarkInsightAcceptedRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public MarkInsightAcceptedRequest.Builder clearStateMetadata()
Returns
clone()
public MarkInsightAcceptedRequest.Builder clone()
Returns
Overrides
public boolean containsStateMetadata(String key)
Optional. State properties user wish to include with this state. Full replace of the
current state_metadata.
map<string, string> state_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getDefaultInstanceForType()
public MarkInsightAcceptedRequest getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEtag()
Required. Fingerprint of the Insight. 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 Insight. 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 insight.
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 insight.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
public Map<String,String> getStateMetadata()
Returns
public int getStateMetadataCount()
Optional. State properties user wish to include with this state. Full replace of the
current state_metadata.
map<string, string> state_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
public Map<String,String> getStateMetadataMap()
Optional. State properties user wish to include with this state. Full replace of the
current state_metadata.
map<string, string> state_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
public String getStateMetadataOrDefault(String key, String defaultValue)
Optional. State properties user wish to include with this state. Full replace of the
current state_metadata.
map<string, string> state_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
public String getStateMetadataOrThrow(String key)
Optional. State properties user wish to include with this state. Full replace of the
current state_metadata.
map<string, string> state_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
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(MarkInsightAcceptedRequest other)
public MarkInsightAcceptedRequest.Builder mergeFrom(MarkInsightAcceptedRequest other)
Parameter
Returns
public MarkInsightAcceptedRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MarkInsightAcceptedRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MarkInsightAcceptedRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public MarkInsightAcceptedRequest.Builder putAllStateMetadata(Map<String,String> values)
Optional. State properties user wish to include with this state. Full replace of the
current state_metadata.
map<string, string> state_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
public MarkInsightAcceptedRequest.Builder putStateMetadata(String key, String value)
Optional. State properties user wish to include with this state. Full replace of the
current state_metadata.
map<string, string> state_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
public MarkInsightAcceptedRequest.Builder removeStateMetadata(String key)
Optional. State properties user wish to include with this state. Full replace of the
current state_metadata.
map<string, string> state_metadata = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
setEtag(String value)
public MarkInsightAcceptedRequest.Builder setEtag(String value)
Required. Fingerprint of the Insight. 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 MarkInsightAcceptedRequest.Builder setEtagBytes(ByteString value)
Required. Fingerprint of the Insight. 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 MarkInsightAcceptedRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public MarkInsightAcceptedRequest.Builder setName(String value)
Required. Name of the insight.
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 MarkInsightAcceptedRequest.Builder setNameBytes(ByteString value)
Required. Name of the insight.
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 MarkInsightAcceptedRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MarkInsightAcceptedRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides