@@ -2249,22 +2249,27 @@ public GetAddOnContext setAddOnToken(java.lang.String addOnToken) {
2249
2249
}
2250
2250
2251
2251
/**
2252
- * Optional. The identifier of the attachment. This field is required for student users and
2253
- * optional for teacher users. If not provided in the student case, an error is returned.
2252
+ * Optional. The identifier of the attachment. This field is required for all requests
2253
+ * except when the user is in the [Attachment Discovery
2254
+ * iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-
2255
+ * discovery-iframe).
2254
2256
*/
2255
2257
@com.google.api.client.util.Key
2256
2258
private java.lang.String attachmentId;
2257
2259
2258
- /** Optional. The identifier of the attachment. This field is required for student users and optional
2259
- for teacher users. If not provided in the student case, an error is returned.
2260
+ /** Optional. The identifier of the attachment. This field is required for all requests except when the
2261
+ user is in the [Attachment Discovery iframe](https://developers.google.com/classroom/add-ons/get-
2262
+ started/iframes/attachment-discovery-iframe).
2260
2263
*/
2261
2264
public java.lang.String getAttachmentId() {
2262
2265
return attachmentId;
2263
2266
}
2264
2267
2265
2268
/**
2266
- * Optional. The identifier of the attachment. This field is required for student users and
2267
- * optional for teacher users. If not provided in the student case, an error is returned.
2269
+ * Optional. The identifier of the attachment. This field is required for all requests
2270
+ * except when the user is in the [Attachment Discovery
2271
+ * iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-
2272
+ * discovery-iframe).
2268
2273
*/
2269
2274
public GetAddOnContext setAttachmentId(java.lang.String attachmentId) {
2270
2275
this.attachmentId = attachmentId;
@@ -4635,22 +4640,27 @@ public GetAddOnContext setAddOnToken(java.lang.String addOnToken) {
4635
4640
}
4636
4641
4637
4642
/**
4638
- * Optional. The identifier of the attachment. This field is required for student users and
4639
- * optional for teacher users. If not provided in the student case, an error is returned.
4643
+ * Optional. The identifier of the attachment. This field is required for all requests
4644
+ * except when the user is in the [Attachment Discovery
4645
+ * iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-
4646
+ * discovery-iframe).
4640
4647
*/
4641
4648
@com.google.api.client.util.Key
4642
4649
private java.lang.String attachmentId;
4643
4650
4644
- /** Optional. The identifier of the attachment. This field is required for student users and optional
4645
- for teacher users. If not provided in the student case, an error is returned.
4651
+ /** Optional. The identifier of the attachment. This field is required for all requests except when the
4652
+ user is in the [Attachment Discovery iframe](https://developers.google.com/classroom/add-ons/get-
4653
+ started/iframes/attachment-discovery-iframe).
4646
4654
*/
4647
4655
public java.lang.String getAttachmentId() {
4648
4656
return attachmentId;
4649
4657
}
4650
4658
4651
4659
/**
4652
- * Optional. The identifier of the attachment. This field is required for student users and
4653
- * optional for teacher users. If not provided in the student case, an error is returned.
4660
+ * Optional. The identifier of the attachment. This field is required for all requests
4661
+ * except when the user is in the [Attachment Discovery
4662
+ * iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-
4663
+ * discovery-iframe).
4654
4664
*/
4655
4665
public GetAddOnContext setAttachmentId(java.lang.String attachmentId) {
4656
4666
this.attachmentId = attachmentId;
@@ -8950,22 +8960,27 @@ public GetAddOnContext setAddOnToken(java.lang.String addOnToken) {
8950
8960
}
8951
8961
8952
8962
/**
8953
- * Optional. The identifier of the attachment. This field is required for student users and
8954
- * optional for teacher users. If not provided in the student case, an error is returned.
8963
+ * Optional. The identifier of the attachment. This field is required for all requests
8964
+ * except when the user is in the [Attachment Discovery
8965
+ * iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-
8966
+ * discovery-iframe).
8955
8967
*/
8956
8968
@com.google.api.client.util.Key
8957
8969
private java.lang.String attachmentId;
8958
8970
8959
- /** Optional. The identifier of the attachment. This field is required for student users and optional
8960
- for teacher users. If not provided in the student case, an error is returned.
8971
+ /** Optional. The identifier of the attachment. This field is required for all requests except when the
8972
+ user is in the [Attachment Discovery iframe](https://developers.google.com/classroom/add-ons/get-
8973
+ started/iframes/attachment-discovery-iframe).
8961
8974
*/
8962
8975
public java.lang.String getAttachmentId() {
8963
8976
return attachmentId;
8964
8977
}
8965
8978
8966
8979
/**
8967
- * Optional. The identifier of the attachment. This field is required for student users and
8968
- * optional for teacher users. If not provided in the student case, an error is returned.
8980
+ * Optional. The identifier of the attachment. This field is required for all requests
8981
+ * except when the user is in the [Attachment Discovery
8982
+ * iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-
8983
+ * discovery-iframe).
8969
8984
*/
8970
8985
public GetAddOnContext setAttachmentId(java.lang.String attachmentId) {
8971
8986
this.attachmentId = attachmentId;
@@ -10754,22 +10769,27 @@ public GetAddOnContext setAddOnToken(java.lang.String addOnToken) {
10754
10769
}
10755
10770
10756
10771
/**
10757
- * Optional. The identifier of the attachment. This field is required for student users and
10758
- * optional for teacher users. If not provided in the student case, an error is returned.
10772
+ * Optional. The identifier of the attachment. This field is required for all requests
10773
+ * except when the user is in the [Attachment Discovery
10774
+ * iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-
10775
+ * discovery-iframe).
10759
10776
*/
10760
10777
@com.google.api.client.util.Key
10761
10778
private java.lang.String attachmentId;
10762
10779
10763
- /** Optional. The identifier of the attachment. This field is required for student users and optional
10764
- for teacher users. If not provided in the student case, an error is returned.
10780
+ /** Optional. The identifier of the attachment. This field is required for all requests except when the
10781
+ user is in the [Attachment Discovery iframe](https://developers.google.com/classroom/add-ons/get-
10782
+ started/iframes/attachment-discovery-iframe).
10765
10783
*/
10766
10784
public java.lang.String getAttachmentId() {
10767
10785
return attachmentId;
10768
10786
}
10769
10787
10770
10788
/**
10771
- * Optional. The identifier of the attachment. This field is required for student users and
10772
- * optional for teacher users. If not provided in the student case, an error is returned.
10789
+ * Optional. The identifier of the attachment. This field is required for all requests
10790
+ * except when the user is in the [Attachment Discovery
10791
+ * iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-
10792
+ * discovery-iframe).
10773
10793
*/
10774
10794
public GetAddOnContext setAttachmentId(java.lang.String attachmentId) {
10775
10795
this.attachmentId = attachmentId;
0 commit comments