+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param courseId Required. Identifier of the course. + * @param itemId Required. Identifier of the `CourseWork` under which the attachment is attached. + * @param attachmentId Required. Identifier of the add-on attachment. + * @since 1.13 + */ + protected List(java.lang.String courseId, java.lang.String itemId, java.lang.String attachmentId) { + super(Classroom.this, "GET", REST_PATH, null, com.google.api.services.classroom.model.ListAddOnAttachmentStudentSubmissionsResponse.class); + this.courseId = com.google.api.client.util.Preconditions.checkNotNull(courseId, "Required parameter courseId must be specified."); + this.itemId = com.google.api.client.util.Preconditions.checkNotNull(itemId, "Required parameter itemId must be specified."); + this.attachmentId = com.google.api.client.util.Preconditions.checkNotNull(attachmentId, "Required parameter attachmentId must be specified."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Identifier of the course. */ + @com.google.api.client.util.Key + private java.lang.String courseId; + + /** Required. Identifier of the course. + */ + public java.lang.String getCourseId() { + return courseId; + } + + /** Required. Identifier of the course. */ + public List setCourseId(java.lang.String courseId) { + this.courseId = courseId; + return this; + } + + /** Required. Identifier of the `CourseWork` under which the attachment is attached. */ + @com.google.api.client.util.Key + private java.lang.String itemId; + + /** Required. Identifier of the `CourseWork` under which the attachment is attached. + */ + public java.lang.String getItemId() { + return itemId; + } + + /** Required. Identifier of the `CourseWork` under which the attachment is attached. */ + public List setItemId(java.lang.String itemId) { + this.itemId = itemId; + return this; + } + + /** Required. Identifier of the add-on attachment. */ + @com.google.api.client.util.Key + private java.lang.String attachmentId; + + /** Required. Identifier of the add-on attachment. + */ + public java.lang.String getAttachmentId() { + return attachmentId; + } + + /** Required. Identifier of the add-on attachment. */ + public List setAttachmentId(java.lang.String attachmentId) { + this.attachmentId = attachmentId; + return this; + } + + /** + * Optional. Maximum number of submissions to return. Zero or unspecified indicates that + * the server may assign a maximum. The server may return fewer than the specified + * number of results. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of submissions to return. Zero or unspecified indicates that the server + may assign a maximum. The server may return fewer than the specified number of results. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Maximum number of submissions to return. Zero or unspecified indicates that + * the server may assign a maximum. The server may return fewer than the specified + * number of results. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous + * `ListAddOnAttachmentStudentSubmissions` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `ListAddOnAttachmentStudentSubmissions` must match the call that provided the page + * token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListAddOnAttachmentStudentSubmissions` call. + Provide this to retrieve the subsequent page. When paginating, all other parameters provided to + `ListAddOnAttachmentStudentSubmissions` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous + * `ListAddOnAttachmentStudentSubmissions` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `ListAddOnAttachmentStudentSubmissions` must match the call that provided the page + * token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** * Updates data associated with an add-on attachment submission. Requires the add-on to have been * the original creator of the attachment and the attachment to have a positive `max_points` value diff --git a/clients/google-api-services-classroom/v1/2.0.0/com/google/api/services/classroom/model/ListAddOnAttachmentStudentSubmissionsResponse.java b/clients/google-api-services-classroom/v1/2.0.0/com/google/api/services/classroom/model/ListAddOnAttachmentStudentSubmissionsResponse.java new file mode 100644 index 00000000000..2439c7d93ee --- /dev/null +++ b/clients/google-api-services-classroom/v1/2.0.0/com/google/api/services/classroom/model/ListAddOnAttachmentStudentSubmissionsResponse.java @@ -0,0 +1,99 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.classroom.model; + +/** + * Response when listing student submissions for an add-on attachment. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Classroom API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListAddOnAttachmentStudentSubmissionsResponse extends com.google.api.client.json.GenericJson { + + /** + * Add-on attachment student submissions that match the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List