Class CreateCommentRequest.Builder (0.8.0)

public static final class CreateCommentRequest.Builder extends GeneratedMessageV3.Builder<CreateCommentRequest.Builder> implements CreateCommentRequestOrBuilder

A request to create a comment.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCommentRequest build()
Returns
Type Description
CreateCommentRequest

buildPartial()

public CreateCommentRequest buildPartial()
Returns
Type Description
CreateCommentRequest

clear()

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

clearComment()

public CreateCommentRequest.Builder clearComment()

Required. The comment to create.

.google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateCommentRequest.Builder

clearCommentId()

public CreateCommentRequest.Builder clearCommentId()

Optional. ID used to uniquely identify the Comment within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The comment.name field in the request will be ignored.

string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateCommentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateCommentRequest.Builder clearParent()

Required. The order to create the comment on. Format: projects/{project}/locations/{location}/orders/{order}

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

Returns
Type Description
CreateCommentRequest.Builder

This builder for chaining.

clearRequestId()

public CreateCommentRequest.Builder clearRequestId()

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateCommentRequest.Builder

This builder for chaining.

clone()

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

getComment()

public Comment getComment()

Required. The comment to create.

.google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Comment

The comment.

getCommentBuilder()

public Comment.Builder getCommentBuilder()

Required. The comment to create.

.google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Comment.Builder

getCommentId()

public String getCommentId()

Optional. ID used to uniquely identify the Comment within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The comment.name field in the request will be ignored.

string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The commentId.

getCommentIdBytes()

public ByteString getCommentIdBytes()

Optional. ID used to uniquely identify the Comment within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The comment.name field in the request will be ignored.

string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for commentId.

getCommentOrBuilder()

public CommentOrBuilder getCommentOrBuilder()

Required. The comment to create.

.google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CommentOrBuilder

getDefaultInstanceForType()

public CreateCommentRequest getDefaultInstanceForType()
Returns
Type Description
CreateCommentRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The order to create the comment on. Format: projects/{project}/locations/{location}/orders/{order}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The order to create the comment on. Format: projects/{project}/locations/{location}/orders/{order}

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

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for requestId.

hasComment()

public boolean hasComment()

Required. The comment to create.

.google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the comment field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeComment(Comment value)

public CreateCommentRequest.Builder mergeComment(Comment value)

Required. The comment to create.

.google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Comment
Returns
Type Description
CreateCommentRequest.Builder

mergeFrom(CreateCommentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setComment(Comment value)

public CreateCommentRequest.Builder setComment(Comment value)

Required. The comment to create.

.google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Comment
Returns
Type Description
CreateCommentRequest.Builder

setComment(Comment.Builder builderForValue)

public CreateCommentRequest.Builder setComment(Comment.Builder builderForValue)

Required. The comment to create.

.google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Comment.Builder
Returns
Type Description
CreateCommentRequest.Builder

setCommentId(String value)

public CreateCommentRequest.Builder setCommentId(String value)

Optional. ID used to uniquely identify the Comment within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The comment.name field in the request will be ignored.

string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The commentId to set.

Returns
Type Description
CreateCommentRequest.Builder

This builder for chaining.

setCommentIdBytes(ByteString value)

public CreateCommentRequest.Builder setCommentIdBytes(ByteString value)

Optional. ID used to uniquely identify the Comment within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The comment.name field in the request will be ignored.

string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for commentId to set.

Returns
Type Description
CreateCommentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateCommentRequest.Builder setParent(String value)

Required. The order to create the comment on. Format: projects/{project}/locations/{location}/orders/{order}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateCommentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateCommentRequest.Builder setParentBytes(ByteString value)

Required. The order to create the comment on. Format: projects/{project}/locations/{location}/orders/{order}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateCommentRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateCommentRequest.Builder setRequestId(String value)

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateCommentRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateCommentRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateCommentRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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