Package com.google.cloud.support.v2
Class ListCommentsResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
- com.google.cloud.support.v2.ListCommentsResponse.Builder
-
- All Implemented Interfaces:
ListCommentsResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ListCommentsResponse
public static final class ListCommentsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder> implements ListCommentsResponseOrBuilder
The response message for the ListComments endpoint.
Protobuf typegoogle.cloud.support.v2.ListCommentsResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListCommentsResponse.Builder
addAllComments(Iterable<? extends Comment> values)
The list of Comments associated with the given Case.ListCommentsResponse.Builder
addComments(int index, Comment value)
The list of Comments associated with the given Case.ListCommentsResponse.Builder
addComments(int index, Comment.Builder builderForValue)
The list of Comments associated with the given Case.ListCommentsResponse.Builder
addComments(Comment value)
The list of Comments associated with the given Case.ListCommentsResponse.Builder
addComments(Comment.Builder builderForValue)
The list of Comments associated with the given Case.Comment.Builder
addCommentsBuilder()
The list of Comments associated with the given Case.Comment.Builder
addCommentsBuilder(int index)
The list of Comments associated with the given Case.ListCommentsResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListCommentsResponse
build()
ListCommentsResponse
buildPartial()
ListCommentsResponse.Builder
clear()
ListCommentsResponse.Builder
clearComments()
The list of Comments associated with the given Case.ListCommentsResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ListCommentsResponse.Builder
clearNextPageToken()
A token to retrieve the next page of results.ListCommentsResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ListCommentsResponse.Builder
clone()
Comment
getComments(int index)
The list of Comments associated with the given Case.Comment.Builder
getCommentsBuilder(int index)
The list of Comments associated with the given Case.List<Comment.Builder>
getCommentsBuilderList()
The list of Comments associated with the given Case.int
getCommentsCount()
The list of Comments associated with the given Case.List<Comment>
getCommentsList()
The list of Comments associated with the given Case.CommentOrBuilder
getCommentsOrBuilder(int index)
The list of Comments associated with the given Case.List<? extends CommentOrBuilder>
getCommentsOrBuilderList()
The list of Comments associated with the given Case.ListCommentsResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getNextPageToken()
A token to retrieve the next page of results.com.google.protobuf.ByteString
getNextPageTokenBytes()
A token to retrieve the next page of results.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ListCommentsResponse.Builder
mergeFrom(ListCommentsResponse other)
ListCommentsResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ListCommentsResponse.Builder
mergeFrom(com.google.protobuf.Message other)
ListCommentsResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ListCommentsResponse.Builder
removeComments(int index)
The list of Comments associated with the given Case.ListCommentsResponse.Builder
setComments(int index, Comment value)
The list of Comments associated with the given Case.ListCommentsResponse.Builder
setComments(int index, Comment.Builder builderForValue)
The list of Comments associated with the given Case.ListCommentsResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListCommentsResponse.Builder
setNextPageToken(String value)
A token to retrieve the next page of results.ListCommentsResponse.Builder
setNextPageTokenBytes(com.google.protobuf.ByteString value)
A token to retrieve the next page of results.ListCommentsResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ListCommentsResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
clear
public ListCommentsResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
getDefaultInstanceForType
public ListCommentsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ListCommentsResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ListCommentsResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ListCommentsResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
setField
public ListCommentsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
clearField
public ListCommentsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
clearOneof
public ListCommentsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
setRepeatedField
public ListCommentsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
addRepeatedField
public ListCommentsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
mergeFrom
public ListCommentsResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListCommentsResponse.Builder>
-
mergeFrom
public ListCommentsResponse.Builder mergeFrom(ListCommentsResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
mergeFrom
public ListCommentsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListCommentsResponse.Builder>
- Throws:
IOException
-
getCommentsList
public List<Comment> getCommentsList()
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
- Specified by:
getCommentsList
in interfaceListCommentsResponseOrBuilder
-
getCommentsCount
public int getCommentsCount()
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
- Specified by:
getCommentsCount
in interfaceListCommentsResponseOrBuilder
-
getComments
public Comment getComments(int index)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
- Specified by:
getComments
in interfaceListCommentsResponseOrBuilder
-
setComments
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;
-
setComments
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;
-
addComments
public ListCommentsResponse.Builder addComments(Comment value)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
-
addComments
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;
-
addComments
public ListCommentsResponse.Builder addComments(Comment.Builder builderForValue)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
-
addComments
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;
-
addAllComments
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;
-
clearComments
public ListCommentsResponse.Builder clearComments()
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
-
removeComments
public ListCommentsResponse.Builder removeComments(int index)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
-
getCommentsBuilder
public Comment.Builder getCommentsBuilder(int index)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
-
getCommentsOrBuilder
public CommentOrBuilder getCommentsOrBuilder(int index)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
- Specified by:
getCommentsOrBuilder
in interfaceListCommentsResponseOrBuilder
-
getCommentsOrBuilderList
public List<? extends CommentOrBuilder> getCommentsOrBuilderList()
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
- Specified by:
getCommentsOrBuilderList
in interfaceListCommentsResponseOrBuilder
-
addCommentsBuilder
public Comment.Builder addCommentsBuilder()
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
-
addCommentsBuilder
public Comment.Builder addCommentsBuilder(int index)
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
-
getCommentsBuilderList
public List<Comment.Builder> getCommentsBuilderList()
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;
-
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;
- Specified by:
getNextPageToken
in interfaceListCommentsResponseOrBuilder
- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.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;
- Specified by:
getNextPageTokenBytes
in interfaceListCommentsResponseOrBuilder
- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
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;
- Parameters:
value
- The nextPageToken to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNextPageTokenBytes
public ListCommentsResponse.Builder setNextPageTokenBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for nextPageToken to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ListCommentsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
mergeUnknownFields
public final ListCommentsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
-