Class RecordActionOnCommentRequest.Builder (0.6.0)

public static final class RecordActionOnCommentRequest.Builder extends GeneratedMessageV3.Builder<RecordActionOnCommentRequest.Builder> implements RecordActionOnCommentRequestOrBuilder

A request to record an action on a comment.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.RecordActionOnCommentRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RecordActionOnCommentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RecordActionOnCommentRequest.Builder
Overrides

build()

public RecordActionOnCommentRequest build()
Returns
Type Description
RecordActionOnCommentRequest

buildPartial()

public RecordActionOnCommentRequest buildPartial()
Returns
Type Description
RecordActionOnCommentRequest

clear()

public RecordActionOnCommentRequest.Builder clear()
Returns
Type Description
RecordActionOnCommentRequest.Builder
Overrides

clearActionType()

public RecordActionOnCommentRequest.Builder clearActionType()

Required. The action type of the recorded action.

.google.cloud.gdchardwaremanagement.v1alpha.RecordActionOnCommentRequest.ActionType action_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RecordActionOnCommentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RecordActionOnCommentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RecordActionOnCommentRequest.Builder
Overrides

clearName()

public RecordActionOnCommentRequest.Builder clearName()

Required. The name of the comment. Format: projects/{project}/locations/{location}/orders/{order}/comments/{comment}

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

Returns
Type Description
RecordActionOnCommentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RecordActionOnCommentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RecordActionOnCommentRequest.Builder
Overrides

clone()

public RecordActionOnCommentRequest.Builder clone()
Returns
Type Description
RecordActionOnCommentRequest.Builder
Overrides

getActionType()

public RecordActionOnCommentRequest.ActionType getActionType()

Required. The action type of the recorded action.

.google.cloud.gdchardwaremanagement.v1alpha.RecordActionOnCommentRequest.ActionType action_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RecordActionOnCommentRequest.ActionType

The actionType.

getActionTypeValue()

public int getActionTypeValue()

Required. The action type of the recorded action.

.google.cloud.gdchardwaremanagement.v1alpha.RecordActionOnCommentRequest.ActionType action_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for actionType.

getDefaultInstanceForType()

public RecordActionOnCommentRequest getDefaultInstanceForType()
Returns
Type Description
RecordActionOnCommentRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The name of the comment. Format: projects/{project}/locations/{location}/orders/{order}/comments/{comment}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the comment. Format: projects/{project}/locations/{location}/orders/{order}/comments/{comment}

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RecordActionOnCommentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RecordActionOnCommentRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RecordActionOnCommentRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RecordActionOnCommentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RecordActionOnCommentRequest.Builder
Overrides

setActionType(RecordActionOnCommentRequest.ActionType value)

public RecordActionOnCommentRequest.Builder setActionType(RecordActionOnCommentRequest.ActionType value)

Required. The action type of the recorded action.

.google.cloud.gdchardwaremanagement.v1alpha.RecordActionOnCommentRequest.ActionType action_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RecordActionOnCommentRequest.ActionType

The actionType to set.

Returns
Type Description
RecordActionOnCommentRequest.Builder

This builder for chaining.

setActionTypeValue(int value)

public RecordActionOnCommentRequest.Builder setActionTypeValue(int value)

Required. The action type of the recorded action.

.google.cloud.gdchardwaremanagement.v1alpha.RecordActionOnCommentRequest.ActionType action_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for actionType to set.

Returns
Type Description
RecordActionOnCommentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RecordActionOnCommentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RecordActionOnCommentRequest.Builder
Overrides

setName(String value)

public RecordActionOnCommentRequest.Builder setName(String value)

Required. The name of the comment. Format: projects/{project}/locations/{location}/orders/{order}/comments/{comment}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RecordActionOnCommentRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RecordActionOnCommentRequest.Builder setNameBytes(ByteString value)

Required. The name of the comment. Format: projects/{project}/locations/{location}/orders/{order}/comments/{comment}

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
RecordActionOnCommentRequest.Builder

This builder for chaining.

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

public RecordActionOnCommentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RecordActionOnCommentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RecordActionOnCommentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RecordActionOnCommentRequest.Builder
Overrides