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
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)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.support.v2.Comment>
|
public ListCommentsResponse.Builder addComments(Comment value)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
Parameter |
---|
Name | Description |
value | Comment
|
public ListCommentsResponse.Builder addComments(Comment.Builder builderForValue)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
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;
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;
public Comment.Builder addCommentsBuilder()
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
public Comment.Builder addCommentsBuilder(int index)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.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()
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
public ListCommentsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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;
public ListCommentsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ListCommentsResponse.Builder clone()
Overrides
public Comment getComments(int index)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
Parameter |
---|
Name | Description |
index | int
|
public Comment.Builder getCommentsBuilder(int index)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
Parameter |
---|
Name | Description |
index | int
|
public List<Comment.Builder> getCommentsBuilderList()
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
public int getCommentsCount()
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
Returns |
---|
Type | Description |
int | |
public List<Comment> getCommentsList()
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
public CommentOrBuilder getCommentsOrBuilder(int index)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
Parameter |
---|
Name | Description |
index | int
|
public List<? extends CommentOrBuilder> getCommentsOrBuilderList()
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.support.v2.CommentOrBuilder> | |
public ListCommentsResponse getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 |
---|
Type | Description |
String | The nextPageToken.
|
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 |
---|
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)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
Parameter |
---|
Name | Description |
index | int
|
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;
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;
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. 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 |
---|
Name | Description |
value | String
The nextPageToken to set.
|
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 |
---|
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