/** * * * <pre> * If there are more results than have been returned, then this field is set * to a non-empty value. To see the additional results, * use that value as `pageToken` in the next call to this method. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getGroupCount() > 0) { hash = (37 * hash) + GROUP_FIELD_NUMBER; hash = (53 * hash) + getGroupList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public com.google.monitoring.v3.ListGroupsResponse buildPartial() { com.google.monitoring.v3.ListGroupsResponse result = new com.google.monitoring.v3.ListGroupsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (groupBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { group_ = java.util.Collections.unmodifiableList(group_); bitField0_ = (bitField0_ & ~0x00000001); } result.group_ = group_; } else { result.group_ = groupBuilder_.build(); } result.nextPageToken_ = nextPageToken_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.monitoring.v3.ListGroupsResponse)) { return super.equals(obj); } com.google.monitoring.v3.ListGroupsResponse other = (com.google.monitoring.v3.ListGroupsResponse) obj; boolean result = true; result = result && getGroupList().equals(other.getGroupList()); result = result && getNextPageToken().equals(other.getNextPageToken()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getGroupCount() > 0) { hash = (37 * hash) + GROUP_FIELD_NUMBER; hash = (53 * hash) + getGroupList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public com.google.monitoring.v3.ListGroupsResponse getDefaultInstanceForType() { return com.google.monitoring.v3.ListGroupsResponse.getDefaultInstance(); }
@Override public Iterable<Group> extractResources(ListGroupsResponse payload) { return payload.getGroupList() != null ? payload.getGroupList() : ImmutableList.<Group>of(); } };
@Override public String extractNextToken(ListGroupsResponse payload) { return payload.getNextPageToken(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < group_.size(); i++) { output.writeMessage(1, group_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); }
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); }
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
@java.lang.Override public com.google.monitoring.v3.ListGroupsResponse build() { com.google.monitoring.v3.ListGroupsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
group_ = java.util.Collections.unmodifiableList(group_); makeExtensionsImmutable();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.monitoring.v3.ListGroupsResponse)) { return super.equals(obj); } com.google.monitoring.v3.ListGroupsResponse other = (com.google.monitoring.v3.ListGroupsResponse) obj; boolean result = true; result = result && getGroupList() .equals(other.getGroupList()); result = result && getNextPageToken() .equals(other.getNextPageToken()); return result; }
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.monitoring.v3.ListGroupsResponse.getDefaultInstance())) .setSchemaDescriptor(new GroupServiceMethodDescriptorSupplier("ListGroups")) .build();
@Override public Iterable<Group> extractResources(ListGroupsResponse payload) { return payload.getGroupList() != null ? payload.getGroupList() : ImmutableList.<Group>of(); } };
@Override public String extractNextToken(ListGroupsResponse payload) { return payload.getNextPageToken(); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < group_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, group_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public static Builder newBuilder(com.google.monitoring.v3.ListGroupsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }