Class MarkInsightAcceptedRequest (2.38.0)

public final class MarkInsightAcceptedRequest extends GeneratedMessageV3 implements MarkInsightAcceptedRequestOrBuilder

Request for the MarkInsightAccepted method.

Protobuf type google.cloud.recommender.v1beta1.MarkInsightAcceptedRequest

Static Fields

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_METADATA_FIELD_NUMBER

public static final int STATE_METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MarkInsightAcceptedRequest getDefaultInstance()
Returns
TypeDescription
MarkInsightAcceptedRequest

getDescriptor()

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

newBuilder()

public static MarkInsightAcceptedRequest.Builder newBuilder()
Returns
TypeDescription
MarkInsightAcceptedRequest.Builder

newBuilder(MarkInsightAcceptedRequest prototype)

public static MarkInsightAcceptedRequest.Builder newBuilder(MarkInsightAcceptedRequest prototype)
Parameter
NameDescription
prototypeMarkInsightAcceptedRequest
Returns
TypeDescription
MarkInsightAcceptedRequest.Builder

parseDelimitedFrom(InputStream input)

public static MarkInsightAcceptedRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MarkInsightAcceptedRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MarkInsightAcceptedRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MarkInsightAcceptedRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MarkInsightAcceptedRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MarkInsightAcceptedRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MarkInsightAcceptedRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MarkInsightAcceptedRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MarkInsightAcceptedRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MarkInsightAcceptedRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MarkInsightAcceptedRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MarkInsightAcceptedRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MarkInsightAcceptedRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MarkInsightAcceptedRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MarkInsightAcceptedRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MarkInsightAcceptedRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MarkInsightAcceptedRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MarkInsightAcceptedRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MarkInsightAcceptedRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MarkInsightAcceptedRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MarkInsightAcceptedRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MarkInsightAcceptedRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MarkInsightAcceptedRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MarkInsightAcceptedRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MarkInsightAcceptedRequest> parser()
Returns
TypeDescription
Parser<MarkInsightAcceptedRequest>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public MarkInsightAcceptedRequest getDefaultInstanceForType()
Returns
TypeDescription
MarkInsightAcceptedRequest

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.

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.

getParserForType()

public Parser<MarkInsightAcceptedRequest> getParserForType()
Returns
TypeDescription
Parser<MarkInsightAcceptedRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStateMetadata() (deprecated)

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

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MarkInsightAcceptedRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MarkInsightAcceptedRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException