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.BuilderaddAllComments(Iterable<? extends Comment> values)The list of Comments associated with the given Case.ListCommentsResponse.BuilderaddComments(int index, Comment value)The list of Comments associated with the given Case.ListCommentsResponse.BuilderaddComments(int index, Comment.Builder builderForValue)The list of Comments associated with the given Case.ListCommentsResponse.BuilderaddComments(Comment value)The list of Comments associated with the given Case.ListCommentsResponse.BuilderaddComments(Comment.Builder builderForValue)The list of Comments associated with the given Case.Comment.BuilderaddCommentsBuilder()The list of Comments associated with the given Case.Comment.BuilderaddCommentsBuilder(int index)The list of Comments associated with the given Case.ListCommentsResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ListCommentsResponsebuild()ListCommentsResponsebuildPartial()ListCommentsResponse.Builderclear()ListCommentsResponse.BuilderclearComments()The list of Comments associated with the given Case.ListCommentsResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ListCommentsResponse.BuilderclearNextPageToken()A token to retrieve the next page of results.ListCommentsResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ListCommentsResponse.Builderclone()CommentgetComments(int index)The list of Comments associated with the given Case.Comment.BuildergetCommentsBuilder(int index)The list of Comments associated with the given Case.List<Comment.Builder>getCommentsBuilderList()The list of Comments associated with the given Case.intgetCommentsCount()The list of Comments associated with the given Case.List<Comment>getCommentsList()The list of Comments associated with the given Case.CommentOrBuildergetCommentsOrBuilder(int index)The list of Comments associated with the given Case.List<? extends CommentOrBuilder>getCommentsOrBuilderList()The list of Comments associated with the given Case.ListCommentsResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetNextPageToken()A token to retrieve the next page of results.com.google.protobuf.ByteStringgetNextPageTokenBytes()A token to retrieve the next page of results.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ListCommentsResponse.BuildermergeFrom(ListCommentsResponse other)ListCommentsResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ListCommentsResponse.BuildermergeFrom(com.google.protobuf.Message other)ListCommentsResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ListCommentsResponse.BuilderremoveComments(int index)The list of Comments associated with the given Case.ListCommentsResponse.BuildersetComments(int index, Comment value)The list of Comments associated with the given Case.ListCommentsResponse.BuildersetComments(int index, Comment.Builder builderForValue)The list of Comments associated with the given Case.ListCommentsResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ListCommentsResponse.BuildersetNextPageToken(String value)A token to retrieve the next page of results.ListCommentsResponse.BuildersetNextPageTokenBytes(com.google.protobuf.ByteString value)A token to retrieve the next page of results.ListCommentsResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ListCommentsResponse.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
clear
public ListCommentsResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
getDefaultInstanceForType
public ListCommentsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ListCommentsResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ListCommentsResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ListCommentsResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
setField
public ListCommentsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
clearField
public ListCommentsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
clearOneof
public ListCommentsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
setRepeatedField
public ListCommentsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
addRepeatedField
public ListCommentsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
mergeFrom
public ListCommentsResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ListCommentsResponse.Builder>
-
mergeFrom
public ListCommentsResponse.Builder mergeFrom(ListCommentsResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getCommentsListin interfaceListCommentsResponseOrBuilder
-
getCommentsCount
public int getCommentsCount()
The list of Comments associated with the given Case.
repeated .google.cloud.support.v2.Comment comments = 1;- Specified by:
getCommentsCountin 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:
getCommentsin 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:
getCommentsOrBuilderin 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:
getCommentsOrBuilderListin 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:
getNextPageTokenin 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:
getNextPageTokenBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
mergeUnknownFields
public final ListCommentsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ListCommentsResponse.Builder>
-
-