Class ListCommentsResponse.Builder (0.14.0)

public static final class ListCommentsResponse.Builder extends GeneratedMessageV3.Builder<ListCommentsResponse.Builder> implements ListCommentsResponseOrBuilder

The response message for the ListComments endpoint.

Protobuf type google.cloud.support.v2.ListCommentsResponse

Static Methods

getDescriptor()

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

Methods

addAllComments(Iterable<? extends Comment> values)

public ListCommentsResponse.Builder addAllComments(Iterable<? extends Comment> values)

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.support.v2.Comment>
Returns
TypeDescription
ListCommentsResponse.Builder

addComments(Comment value)

public ListCommentsResponse.Builder addComments(Comment value)

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Parameter
NameDescription
valueComment
Returns
TypeDescription
ListCommentsResponse.Builder

addComments(Comment.Builder builderForValue)

public ListCommentsResponse.Builder addComments(Comment.Builder builderForValue)

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Parameter
NameDescription
builderForValueComment.Builder
Returns
TypeDescription
ListCommentsResponse.Builder

addComments(int index, Comment value)

public ListCommentsResponse.Builder addComments(int index, Comment value)

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Parameters
NameDescription
indexint
valueComment
Returns
TypeDescription
ListCommentsResponse.Builder

addComments(int index, Comment.Builder builderForValue)

public ListCommentsResponse.Builder addComments(int index, Comment.Builder builderForValue)

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Parameters
NameDescription
indexint
builderForValueComment.Builder
Returns
TypeDescription
ListCommentsResponse.Builder

addCommentsBuilder()

public Comment.Builder addCommentsBuilder()

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Returns
TypeDescription
Comment.Builder

addCommentsBuilder(int index)

public Comment.Builder addCommentsBuilder(int index)

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Comment.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListCommentsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListCommentsResponse.Builder
Overrides

build()

public ListCommentsResponse build()
Returns
TypeDescription
ListCommentsResponse

buildPartial()

public ListCommentsResponse buildPartial()
Returns
TypeDescription
ListCommentsResponse

clear()

public ListCommentsResponse.Builder clear()
Returns
TypeDescription
ListCommentsResponse.Builder
Overrides

clearComments()

public ListCommentsResponse.Builder clearComments()

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Returns
TypeDescription
ListCommentsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListCommentsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListCommentsResponse.Builder
Overrides

clearNextPageToken()

public ListCommentsResponse.Builder clearNextPageToken()

A token to retrieve the next page of results. This should be set in the page_token field of subsequent ListCommentsRequest message that is issued. If unspecified, there are no more results to retrieve.

string next_page_token = 2;

Returns
TypeDescription
ListCommentsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListCommentsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListCommentsResponse.Builder
Overrides

clone()

public ListCommentsResponse.Builder clone()
Returns
TypeDescription
ListCommentsResponse.Builder
Overrides

getComments(int index)

public Comment getComments(int index)

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Comment

getCommentsBuilder(int index)

public Comment.Builder getCommentsBuilder(int index)

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Comment.Builder

getCommentsBuilderList()

public List<Comment.Builder> getCommentsBuilderList()

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Returns
TypeDescription
List<Builder>

getCommentsCount()

public int getCommentsCount()

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Returns
TypeDescription
int

getCommentsList()

public List<Comment> getCommentsList()

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Returns
TypeDescription
List<Comment>

getCommentsOrBuilder(int index)

public CommentOrBuilder getCommentsOrBuilder(int index)

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
CommentOrBuilder

getCommentsOrBuilderList()

public List<? extends CommentOrBuilder> getCommentsOrBuilderList()

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Returns
TypeDescription
List<? extends com.google.cloud.support.v2.CommentOrBuilder>

getDefaultInstanceForType()

public ListCommentsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListCommentsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token to retrieve the next page of results. This should be set in the page_token field of subsequent ListCommentsRequest message that is issued. If unspecified, there are no more results to retrieve.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve the next page of results. This should be set in the page_token field of subsequent ListCommentsRequest message that is issued. If unspecified, there are no more results to retrieve.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListCommentsResponse other)

public ListCommentsResponse.Builder mergeFrom(ListCommentsResponse other)
Parameter
NameDescription
otherListCommentsResponse
Returns
TypeDescription
ListCommentsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListCommentsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCommentsResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListCommentsResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListCommentsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListCommentsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListCommentsResponse.Builder
Overrides

removeComments(int index)

public ListCommentsResponse.Builder removeComments(int index)

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListCommentsResponse.Builder

setComments(int index, Comment value)

public ListCommentsResponse.Builder setComments(int index, Comment value)

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Parameters
NameDescription
indexint
valueComment
Returns
TypeDescription
ListCommentsResponse.Builder

setComments(int index, Comment.Builder builderForValue)

public ListCommentsResponse.Builder setComments(int index, Comment.Builder builderForValue)

The list of Comments associated with the given Case.

repeated .google.cloud.support.v2.Comment comments = 1;

Parameters
NameDescription
indexint
builderForValueComment.Builder
Returns
TypeDescription
ListCommentsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListCommentsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListCommentsResponse.Builder
Overrides

setNextPageToken(String value)

public ListCommentsResponse.Builder setNextPageToken(String value)

A token to retrieve the next page of results. This should be set in the page_token field of subsequent ListCommentsRequest message that is issued. If unspecified, there are no more results to retrieve.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListCommentsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCommentsResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve the next page of results. This should be set in the page_token field of subsequent ListCommentsRequest message that is issued. If unspecified, there are no more results to retrieve.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListCommentsResponse.Builder

This builder for chaining.

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

public ListCommentsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListCommentsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListCommentsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListCommentsResponse.Builder
Overrides