public Builder mergeFrom(com.google.monitoring.v3.ListGroupsRequest other) { if (other == com.google.monitoring.v3.ListGroupsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); switch (other.getFilterCase()) { case CHILDREN_OF_GROUP:
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public com.google.monitoring.v3.ListGroupsRequest buildPartial() { com.google.monitoring.v3.ListGroupsRequest result = new com.google.monitoring.v3.ListGroupsRequest(this); result.name_ = name_; if (filterCase_ == 2) { result.filter_ = filter_; } if (filterCase_ == 3) { result.filter_ = filter_; } if (filterCase_ == 4) { result.filter_ = filter_; } result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.filterCase_ = filterCase_; onBuilt(); return result; }
/** * * * <pre> * The project whose groups are to be listed. The format is * `"projects/{project_id_or_number}"`. * </pre> * * <code>string name = 7;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
result = result && getName().equals(other.getName()); result = result && (getPageSize() == other.getPageSize()); result = result && getPageToken().equals(other.getPageToken()); result = result && getFilterCase().equals(other.getFilterCase()); if (!result) return false; switch (filterCase_) { case 2: result = result && getChildrenOfGroup().equals(other.getChildrenOfGroup()); break; case 3: result = result && getAncestorsOfGroup().equals(other.getAncestorsOfGroup()); break; case 4: result = result && getDescendantsOfGroup().equals(other.getDescendantsOfGroup()); break; case 0:
/** * * * <pre> * If this field is not empty then it must contain the `nextPageToken` value * returned by a previous call to this method. Using this field causes the * method to return additional results from the previous method call. * </pre> * * <code>string page_token = 6;</code> */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /**
hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); switch (filterCase_) { case 2: hash = (37 * hash) + CHILDREN_OF_GROUP_FIELD_NUMBER; hash = (53 * hash) + getChildrenOfGroup().hashCode(); break; case 3: hash = (37 * hash) + ANCESTORS_OF_GROUP_FIELD_NUMBER; hash = (53 * hash) + getAncestorsOfGroup().hashCode(); break; case 4: hash = (37 * hash) + DESCENDANTS_OF_GROUP_FIELD_NUMBER; hash = (53 * hash) + getDescendantsOfGroup().hashCode(); break; case 0:
hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); switch (filterCase_) { case 2: hash = (37 * hash) + CHILDREN_OF_GROUP_FIELD_NUMBER; hash = (53 * hash) + getChildrenOfGroup().hashCode(); break; case 3: hash = (37 * hash) + ANCESTORS_OF_GROUP_FIELD_NUMBER; hash = (53 * hash) + getAncestorsOfGroup().hashCode(); break; case 4: hash = (37 * hash) + DESCENDANTS_OF_GROUP_FIELD_NUMBER; hash = (53 * hash) + getDescendantsOfGroup().hashCode(); break; case 0:
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (filterCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } if (filterCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_); } if (filterCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } if (pageSize_ != 0) { output.writeInt32(5, pageSize_); } if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pageToken_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); } unknownFields.writeTo(output); }
@java.lang.Override public com.google.monitoring.v3.ListGroupsRequest getDefaultInstanceForType() { return com.google.monitoring.v3.ListGroupsRequest.getDefaultInstance(); }
@Override public Integer extractPageSize(ListGroupsRequest payload) { return payload.getPageSize(); }
result = result && getName() .equals(other.getName()); result = result && (getPageSize() == other.getPageSize()); result = result && getPageToken() .equals(other.getPageToken()); result = result && getFilterCase().equals( other.getFilterCase()); if (!result) return false; switch (filterCase_) { case 2: result = result && getChildrenOfGroup() .equals(other.getChildrenOfGroup()); break; case 3: result = result && getAncestorsOfGroup() .equals(other.getAncestorsOfGroup()); break; case 4: result = result && getDescendantsOfGroup() .equals(other.getDescendantsOfGroup()); break; case 0:
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (filterCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (filterCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (filterCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * <pre> * The project whose groups are to be listed. The format is * `"projects/{project_id_or_number}"`. * </pre> * * <code>optional string name = 7;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <pre> * If this field is not empty then it must contain the `nextPageToken` value * returned by a previous call to this method. Using this field causes the * method to return additional results from the previous method call. * </pre> * * <code>optional string page_token = 6;</code> */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /**
.setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.monitoring.v3.ListGroupsRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller(
@Override public Integer extractPageSize(ListGroupsRequest payload) { return payload.getPageSize(); }
public Builder mergeFrom(com.google.monitoring.v3.ListGroupsRequest other) { if (other == com.google.monitoring.v3.ListGroupsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); switch (other.getFilterCase()) { case CHILDREN_OF_GROUP: { filterCase_ = 2;
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (filterCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } if (filterCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_); } if (filterCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } if (pageSize_ != 0) { output.writeInt32(5, pageSize_); } if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pageToken_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); } }
@Override public ListGroupsRequest injectPageSize(ListGroupsRequest payload, int pageSize) { return ListGroupsRequest.newBuilder(payload).setPageSize(pageSize).build(); }