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.v2beta.ListCommentsResponse
Inherited Members
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
public static final Descriptors.Descriptor getDescriptor()
Methods
public ListCommentsResponse.Builder addAllComments(Iterable<? extends Comment> values)
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.support.v2beta.Comment>
|
public ListCommentsResponse.Builder addComments(Comment value)
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
Parameter |
Name |
Description |
value |
Comment
|
public ListCommentsResponse.Builder addComments(Comment.Builder builderForValue)
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
public ListCommentsResponse.Builder addComments(int index, Comment value)
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
Parameters |
Name |
Description |
index |
int
|
value |
Comment
|
public ListCommentsResponse.Builder addComments(int index, Comment.Builder builderForValue)
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
public Comment.Builder addCommentsBuilder()
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
public Comment.Builder addCommentsBuilder(int index)
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
Parameter |
Name |
Description |
index |
int
|
public ListCommentsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ListCommentsResponse build()
public ListCommentsResponse buildPartial()
public ListCommentsResponse.Builder clear()
Overrides
public ListCommentsResponse.Builder clearComments()
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
public ListCommentsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ListCommentsResponse.Builder clearNextPageToken()
A token to retrieve the next page of results. Set this in the page_token
field of subsequent cases.comments.list
requests. If unspecified, there
are no more results to retrieve.
string next_page_token = 2;
public ListCommentsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ListCommentsResponse.Builder clone()
Overrides
public Comment getComments(int index)
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
Parameter |
Name |
Description |
index |
int
|
public Comment.Builder getCommentsBuilder(int index)
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
Parameter |
Name |
Description |
index |
int
|
public List<Comment.Builder> getCommentsBuilderList()
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
public int getCommentsCount()
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
Returns |
Type |
Description |
int |
|
public List<Comment> getCommentsList()
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
public CommentOrBuilder getCommentsOrBuilder(int index)
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
Parameter |
Name |
Description |
index |
int
|
public List<? extends CommentOrBuilder> getCommentsOrBuilderList()
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.support.v2beta.CommentOrBuilder> |
|
public ListCommentsResponse getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getNextPageToken()
A token to retrieve the next page of results. Set this in the page_token
field of subsequent cases.comments.list
requests. If unspecified, there
are no more results to retrieve.
string next_page_token = 2;
Returns |
Type |
Description |
String |
The nextPageToken.
|
public ByteString getNextPageTokenBytes()
A token to retrieve the next page of results. Set this in the page_token
field of subsequent cases.comments.list
requests. If unspecified, there
are no more results to retrieve.
string next_page_token = 2;
Returns |
Type |
Description |
ByteString |
The bytes for nextPageToken.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ListCommentsResponse.Builder mergeFrom(ListCommentsResponse other)
public ListCommentsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ListCommentsResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final ListCommentsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ListCommentsResponse.Builder removeComments(int index)
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
Parameter |
Name |
Description |
index |
int
|
public ListCommentsResponse.Builder setComments(int index, Comment value)
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
Parameters |
Name |
Description |
index |
int
|
value |
Comment
|
public ListCommentsResponse.Builder setComments(int index, Comment.Builder builderForValue)
List of the comments associated with the case.
repeated .google.cloud.support.v2beta.Comment comments = 1;
public ListCommentsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ListCommentsResponse.Builder setNextPageToken(String value)
A token to retrieve the next page of results. Set this in the page_token
field of subsequent cases.comments.list
requests. If unspecified, there
are no more results to retrieve.
string next_page_token = 2;
Parameter |
Name |
Description |
value |
String
The nextPageToken to set.
|
public ListCommentsResponse.Builder setNextPageTokenBytes(ByteString value)
A token to retrieve the next page of results. Set this in the page_token
field of subsequent cases.comments.list
requests. If unspecified, there
are no more results to retrieve.
string next_page_token = 2;
Parameter |
Name |
Description |
value |
ByteString
The bytes for nextPageToken to set.
|
public ListCommentsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ListCommentsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides