Class ListCommentsResponse (0.16.0)

public final class ListCommentsResponse extends GeneratedMessageV3 implements ListCommentsResponseOrBuilder

The response message for the ListComments endpoint.

Protobuf type google.cloud.support.v2.ListCommentsResponse

Static Fields

COMMENTS_FIELD_NUMBER

public static final int COMMENTS_FIELD_NUMBER
Field Value
TypeDescription
int

NEXT_PAGE_TOKEN_FIELD_NUMBER

public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ListCommentsResponse getDefaultInstance()
Returns
TypeDescription
ListCommentsResponse

getDescriptor()

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

newBuilder()

public static ListCommentsResponse.Builder newBuilder()
Returns
TypeDescription
ListCommentsResponse.Builder

newBuilder(ListCommentsResponse prototype)

public static ListCommentsResponse.Builder newBuilder(ListCommentsResponse prototype)
Parameter
NameDescription
prototypeListCommentsResponse
Returns
TypeDescription
ListCommentsResponse.Builder

parseDelimitedFrom(InputStream input)

public static ListCommentsResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListCommentsResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListCommentsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCommentsResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ListCommentsResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ListCommentsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ListCommentsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCommentsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ListCommentsResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ListCommentsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ListCommentsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCommentsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ListCommentsResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ListCommentsResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ListCommentsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCommentsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ListCommentsResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListCommentsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListCommentsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCommentsResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ListCommentsResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ListCommentsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ListCommentsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListCommentsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ListCommentsResponse> parser()
Returns
TypeDescription
Parser<ListCommentsResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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

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.

getParserForType()

public Parser<ListCommentsResponse> getParserForType()
Returns
TypeDescription
Parser<ListCommentsResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ListCommentsResponse.Builder newBuilderForType()
Returns
TypeDescription
ListCommentsResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ListCommentsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ListCommentsResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ListCommentsResponse.Builder toBuilder()
Returns
TypeDescription
ListCommentsResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException