Class MarkInsightAcceptedRequest.Builder (2.5.0)

public static final class MarkInsightAcceptedRequest.Builder extends GeneratedMessageV3.Builder<MarkInsightAcceptedRequest.Builder> implements MarkInsightAcceptedRequestOrBuilder

Request for the MarkInsightAccepted method.

Protobuf type google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MarkInsightAcceptedRequest build()
Returns
TypeDescription
MarkInsightAcceptedRequest

buildPartial()

public MarkInsightAcceptedRequest buildPartial()
Returns
TypeDescription
MarkInsightAcceptedRequest

clear()

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

clearEtag()

public MarkInsightAcceptedRequest.Builder clearEtag()

Required. Fingerprint of the Insight. Provides optimistic locking.

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

Returns
TypeDescription
MarkInsightAcceptedRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public MarkInsightAcceptedRequest.Builder clearName()

Required. Name of the insight.

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

Returns
TypeDescription
MarkInsightAcceptedRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStateMetadata()

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

clone()

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

containsStateMetadata(String key)

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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public MarkInsightAcceptedRequest getDefaultInstanceForType()
Returns
TypeDescription
MarkInsightAcceptedRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEtag()

public String getEtag()

Required. Fingerprint of the Insight. Provides optimistic locking.

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

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Required. Fingerprint of the Insight. Provides optimistic locking.

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

Returns
TypeDescription
ByteString

The bytes for etag.

getMutableStateMetadata()

public Map<String,String> getMutableStateMetadata()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. Name of the insight.

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 insight.

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

Returns
TypeDescription
ByteString

The bytes for name.

getStateMetadata()

public Map<String,String> getStateMetadata()
Returns
TypeDescription
Map<String,String>

getStateMetadataCount()

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
TypeDescription
int

getStateMetadataMap()

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
TypeDescription
Map<String,String>

getStateMetadataOrDefault(String key, String defaultValue)

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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getStateMetadataOrThrow(String key)

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
NameDescription
keyString
Returns
TypeDescription
String

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MarkInsightAcceptedRequest other)

public MarkInsightAcceptedRequest.Builder mergeFrom(MarkInsightAcceptedRequest other)
Parameter
NameDescription
otherMarkInsightAcceptedRequest
Returns
TypeDescription
MarkInsightAcceptedRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllStateMetadata(Map<String,String> values)

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

putStateMetadata(String key, String value)

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
NameDescription
keyString
valueString
Returns
TypeDescription
MarkInsightAcceptedRequest.Builder

removeStateMetadata(String key)

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
NameDescription
keyString
Returns
TypeDescription
MarkInsightAcceptedRequest.Builder

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
NameDescription
valueString

The etag to set.

Returns
TypeDescription
MarkInsightAcceptedRequest.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
MarkInsightAcceptedRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MarkInsightAcceptedRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MarkInsightAcceptedRequest.Builder
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
MarkInsightAcceptedRequest.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
MarkInsightAcceptedRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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