Class GetCommentRequest.Builder (0.9.0)

public static final class GetCommentRequest.Builder extends GeneratedMessageV3.Builder<GetCommentRequest.Builder> implements GetCommentRequestOrBuilder

A request to get a comment.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetCommentRequest build()
Returns
Type Description
GetCommentRequest

buildPartial()

public GetCommentRequest buildPartial()
Returns
Type Description
GetCommentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetCommentRequest.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
GetCommentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetCommentRequest getDefaultInstanceForType()
Returns
Type Description
GetCommentRequest

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(GetCommentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetCommentRequest.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
GetCommentRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetCommentRequest.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
GetCommentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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