Class MarkInsightAcceptedRequest.Builder (2.85.0)

public static final class MarkInsightAcceptedRequest.Builder extends GeneratedMessage.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
Type Description
Descriptor

Methods

build()

public MarkInsightAcceptedRequest build()
Returns
Type Description
MarkInsightAcceptedRequest

buildPartial()

public MarkInsightAcceptedRequest buildPartial()
Returns
Type Description
MarkInsightAcceptedRequest

clear()

public MarkInsightAcceptedRequest.Builder clear()
Returns
Type Description
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
Type Description
MarkInsightAcceptedRequest.Builder

This builder for chaining.

clearName()

public MarkInsightAcceptedRequest.Builder clearName()

Required. Name of the insight.

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

Returns
Type Description
MarkInsightAcceptedRequest.Builder

This builder for chaining.

clearStateMetadata()

public MarkInsightAcceptedRequest.Builder clearStateMetadata()
Returns
Type Description
MarkInsightAcceptedRequest.Builder

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
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public MarkInsightAcceptedRequest getDefaultInstanceForType()
Returns
Type Description
MarkInsightAcceptedRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEtag()

public String 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
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 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
Type Description
ByteString

The bytes for name.

getStateMetadata() (deprecated)

public Map<String,String> getStateMetadata()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MarkInsightAcceptedRequest other)

public MarkInsightAcceptedRequest.Builder mergeFrom(MarkInsightAcceptedRequest other)
Parameter
Name Description
other MarkInsightAcceptedRequest
Returns
Type Description
MarkInsightAcceptedRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MarkInsightAcceptedRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MarkInsightAcceptedRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MarkInsightAcceptedRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Name Description
value String

The etag to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
MarkInsightAcceptedRequest.Builder

This builder for chaining.

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
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
MarkInsightAcceptedRequest.Builder

This builder for chaining.