@@ -6839,6 +6839,349 @@ public UpdateSpaceReadState set(String parameterName, Object value) {
68396839 }
68406840 }
68416841
6842+ /**
6843+ * An accessor for creating requests from the SpaceNotificationSetting collection.
6844+ *
6845+ * <p>The typical use is:</p>
6846+ * <pre>
6847+ * {@code HangoutsChat chat = new HangoutsChat(...);}
6848+ * {@code HangoutsChat.SpaceNotificationSetting.List request = chat.spaceNotificationSetting().list(parameters ...)}
6849+ * </pre>
6850+ *
6851+ * @return the resource collection
6852+ */
6853+ public SpaceNotificationSetting spaceNotificationSetting () {
6854+ return new SpaceNotificationSetting ();
6855+ }
6856+
6857+ /**
6858+ * The "spaceNotificationSetting" collection of methods.
6859+ */
6860+ public class SpaceNotificationSetting {
6861+
6862+ /**
6863+ * Gets the space notification state setting. Requires [user
6864+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
6865+ *
6866+ * Create a request for the method "spaceNotificationSetting.get".
6867+ *
6868+ * This request holds the parameters needed by the chat server. After setting any optional
6869+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
6870+ *
6871+ * @param name Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting -
6872+ * `users/me/spaces/{space}/spaceNotificationSetting`, OR -
6873+ * `users/[email protected] /spaces/{space}/spaceNotificationSetting`, OR - 6874+ * `users/123456789/spaces/{space}/spaceNotificationSetting`. Note: Only the caller's user id
6875+ * or email is allowed in the path.
6876+ * @return the request
6877+ */
6878+ public Get get (java .lang .String name ) throws java .io .IOException {
6879+ Get result = new Get (name );
6880+ initialize (result );
6881+ return result ;
6882+ }
6883+
6884+ public class Get extends HangoutsChatRequest <com .google .api .services .chat .v1 .model .SpaceNotificationSetting > {
6885+
6886+ private static final String REST_PATH = "v1/{+name}" ;
6887+
6888+ private final java .util .regex .Pattern NAME_PATTERN =
6889+ java .util .regex .Pattern .compile ("^users/[^/]+/spaces/[^/]+/spaceNotificationSetting$" );
6890+
6891+ /**
6892+ * Gets the space notification state setting. Requires [user
6893+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
6894+ *
6895+ * Create a request for the method "spaceNotificationSetting.get".
6896+ *
6897+ * This request holds the parameters needed by the the chat server. After setting any optional
6898+ * parameters, call the {@link Get#execute()} method to invoke the remote operation. <p> {@link
6899+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
6900+ * called to initialize this instance immediately after invoking the constructor. </p>
6901+ *
6902+ * @param name Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting -
6903+ * `users/me/spaces/{space}/spaceNotificationSetting`, OR -
6904+ * `users/[email protected] /spaces/{space}/spaceNotificationSetting`, OR - 6905+ * `users/123456789/spaces/{space}/spaceNotificationSetting`. Note: Only the caller's user id
6906+ * or email is allowed in the path.
6907+ * @since 1.13
6908+ */
6909+ protected Get (java .lang .String name ) {
6910+ super (HangoutsChat .this , "GET" , REST_PATH , null , com .google .api .services .chat .v1 .model .SpaceNotificationSetting .class );
6911+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
6912+ if (!getSuppressPatternChecks ()) {
6913+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
6914+ "Parameter name must conform to the pattern " +
6915+ "^users/[^/]+/spaces/[^/]+/spaceNotificationSetting$" );
6916+ }
6917+ }
6918+
6919+ @ Override
6920+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
6921+ return super .executeUsingHead ();
6922+ }
6923+
6924+ @ Override
6925+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
6926+ return super .buildHttpRequestUsingHead ();
6927+ }
6928+
6929+ @ Override
6930+ public Get set$Xgafv (java .lang .String $Xgafv ) {
6931+ return (Get ) super .set$Xgafv ($Xgafv );
6932+ }
6933+
6934+ @ Override
6935+ public Get setAccessToken (java .lang .String accessToken ) {
6936+ return (Get ) super .setAccessToken (accessToken );
6937+ }
6938+
6939+ @ Override
6940+ public Get setAlt (java .lang .String alt ) {
6941+ return (Get ) super .setAlt (alt );
6942+ }
6943+
6944+ @ Override
6945+ public Get setCallback (java .lang .String callback ) {
6946+ return (Get ) super .setCallback (callback );
6947+ }
6948+
6949+ @ Override
6950+ public Get setFields (java .lang .String fields ) {
6951+ return (Get ) super .setFields (fields );
6952+ }
6953+
6954+ @ Override
6955+ public Get setKey (java .lang .String key ) {
6956+ return (Get ) super .setKey (key );
6957+ }
6958+
6959+ @ Override
6960+ public Get setOauthToken (java .lang .String oauthToken ) {
6961+ return (Get ) super .setOauthToken (oauthToken );
6962+ }
6963+
6964+ @ Override
6965+ public Get setPrettyPrint (java .lang .Boolean prettyPrint ) {
6966+ return (Get ) super .setPrettyPrint (prettyPrint );
6967+ }
6968+
6969+ @ Override
6970+ public Get setQuotaUser (java .lang .String quotaUser ) {
6971+ return (Get ) super .setQuotaUser (quotaUser );
6972+ }
6973+
6974+ @ Override
6975+ public Get setUploadType (java .lang .String uploadType ) {
6976+ return (Get ) super .setUploadType (uploadType );
6977+ }
6978+
6979+ @ Override
6980+ public Get setUploadProtocol (java .lang .String uploadProtocol ) {
6981+ return (Get ) super .setUploadProtocol (uploadProtocol );
6982+ }
6983+
6984+ /**
6985+ * Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting -
6986+ * `users/me/spaces/{space}/spaceNotificationSetting`, OR -
6987+ * `users/[email protected] /spaces/{space}/spaceNotificationSetting`, OR - 6988+ * `users/123456789/spaces/{space}/spaceNotificationSetting`. Note: Only the caller's user
6989+ * id or email is allowed in the path.
6990+ */
6991+ @ com .google .api .client .util .Key
6992+ private java .lang .String name ;
6993+
6994+ /** Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting -
6995+ `users/me/spaces/{space}/spaceNotificationSetting`, OR -
6996+ `users/[email protected] /spaces/{space}/spaceNotificationSetting`, OR - 6997+ `users/123456789/spaces/{space}/spaceNotificationSetting`. Note: Only the caller's user id or email
6998+ is allowed in the path.
6999+ */
7000+ public java .lang .String getName () {
7001+ return name ;
7002+ }
7003+
7004+ /**
7005+ * Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting -
7006+ * `users/me/spaces/{space}/spaceNotificationSetting`, OR -
7007+ * `users/[email protected] /spaces/{space}/spaceNotificationSetting`, OR - 7008+ * `users/123456789/spaces/{space}/spaceNotificationSetting`. Note: Only the caller's user
7009+ * id or email is allowed in the path.
7010+ */
7011+ public Get setName (java .lang .String name ) {
7012+ if (!getSuppressPatternChecks ()) {
7013+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
7014+ "Parameter name must conform to the pattern " +
7015+ "^users/[^/]+/spaces/[^/]+/spaceNotificationSetting$" );
7016+ }
7017+ this .name = name ;
7018+ return this ;
7019+ }
7020+
7021+ @ Override
7022+ public Get set (String parameterName , Object value ) {
7023+ return (Get ) super .set (parameterName , value );
7024+ }
7025+ }
7026+ /**
7027+ * Updates the space notification state setting. Requires [user
7028+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
7029+ *
7030+ * Create a request for the method "spaceNotificationSetting.patch".
7031+ *
7032+ * This request holds the parameters needed by the chat server. After setting any optional
7033+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
7034+ *
7035+ * @param name Identifier. The resource name of the space notification setting. Format:
7036+ * `users/{user}/spaces/{space}/spaceNotificationSetting`.
7037+ * @param content the {@link com.google.api.services.chat.v1.model.SpaceNotificationSetting}
7038+ * @return the request
7039+ */
7040+ public Patch patch (java .lang .String name , com .google .api .services .chat .v1 .model .SpaceNotificationSetting content ) throws java .io .IOException {
7041+ Patch result = new Patch (name , content );
7042+ initialize (result );
7043+ return result ;
7044+ }
7045+
7046+ public class Patch extends HangoutsChatRequest <com .google .api .services .chat .v1 .model .SpaceNotificationSetting > {
7047+
7048+ private static final String REST_PATH = "v1/{+name}" ;
7049+
7050+ private final java .util .regex .Pattern NAME_PATTERN =
7051+ java .util .regex .Pattern .compile ("^users/[^/]+/spaces/[^/]+/spaceNotificationSetting$" );
7052+
7053+ /**
7054+ * Updates the space notification state setting. Requires [user
7055+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
7056+ *
7057+ * Create a request for the method "spaceNotificationSetting.patch".
7058+ *
7059+ * This request holds the parameters needed by the the chat server. After setting any optional
7060+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation. <p> {@link
7061+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
7062+ * be called to initialize this instance immediately after invoking the constructor. </p>
7063+ *
7064+ * @param name Identifier. The resource name of the space notification setting. Format:
7065+ * `users/{user}/spaces/{space}/spaceNotificationSetting`.
7066+ * @param content the {@link com.google.api.services.chat.v1.model.SpaceNotificationSetting}
7067+ * @since 1.13
7068+ */
7069+ protected Patch (java .lang .String name , com .google .api .services .chat .v1 .model .SpaceNotificationSetting content ) {
7070+ super (HangoutsChat .this , "PATCH" , REST_PATH , content , com .google .api .services .chat .v1 .model .SpaceNotificationSetting .class );
7071+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
7072+ if (!getSuppressPatternChecks ()) {
7073+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
7074+ "Parameter name must conform to the pattern " +
7075+ "^users/[^/]+/spaces/[^/]+/spaceNotificationSetting$" );
7076+ }
7077+ }
7078+
7079+ @ Override
7080+ public Patch set$Xgafv (java .lang .String $Xgafv ) {
7081+ return (Patch ) super .set$Xgafv ($Xgafv );
7082+ }
7083+
7084+ @ Override
7085+ public Patch setAccessToken (java .lang .String accessToken ) {
7086+ return (Patch ) super .setAccessToken (accessToken );
7087+ }
7088+
7089+ @ Override
7090+ public Patch setAlt (java .lang .String alt ) {
7091+ return (Patch ) super .setAlt (alt );
7092+ }
7093+
7094+ @ Override
7095+ public Patch setCallback (java .lang .String callback ) {
7096+ return (Patch ) super .setCallback (callback );
7097+ }
7098+
7099+ @ Override
7100+ public Patch setFields (java .lang .String fields ) {
7101+ return (Patch ) super .setFields (fields );
7102+ }
7103+
7104+ @ Override
7105+ public Patch setKey (java .lang .String key ) {
7106+ return (Patch ) super .setKey (key );
7107+ }
7108+
7109+ @ Override
7110+ public Patch setOauthToken (java .lang .String oauthToken ) {
7111+ return (Patch ) super .setOauthToken (oauthToken );
7112+ }
7113+
7114+ @ Override
7115+ public Patch setPrettyPrint (java .lang .Boolean prettyPrint ) {
7116+ return (Patch ) super .setPrettyPrint (prettyPrint );
7117+ }
7118+
7119+ @ Override
7120+ public Patch setQuotaUser (java .lang .String quotaUser ) {
7121+ return (Patch ) super .setQuotaUser (quotaUser );
7122+ }
7123+
7124+ @ Override
7125+ public Patch setUploadType (java .lang .String uploadType ) {
7126+ return (Patch ) super .setUploadType (uploadType );
7127+ }
7128+
7129+ @ Override
7130+ public Patch setUploadProtocol (java .lang .String uploadProtocol ) {
7131+ return (Patch ) super .setUploadProtocol (uploadProtocol );
7132+ }
7133+
7134+ /**
7135+ * Identifier. The resource name of the space notification setting. Format:
7136+ * `users/{user}/spaces/{space}/spaceNotificationSetting`.
7137+ */
7138+ @ com .google .api .client .util .Key
7139+ private java .lang .String name ;
7140+
7141+ /** Identifier. The resource name of the space notification setting. Format:
7142+ `users/{user}/spaces/{space}/spaceNotificationSetting`.
7143+ */
7144+ public java .lang .String getName () {
7145+ return name ;
7146+ }
7147+
7148+ /**
7149+ * Identifier. The resource name of the space notification setting. Format:
7150+ * `users/{user}/spaces/{space}/spaceNotificationSetting`.
7151+ */
7152+ public Patch setName (java .lang .String name ) {
7153+ if (!getSuppressPatternChecks ()) {
7154+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
7155+ "Parameter name must conform to the pattern " +
7156+ "^users/[^/]+/spaces/[^/]+/spaceNotificationSetting$" );
7157+ }
7158+ this .name = name ;
7159+ return this ;
7160+ }
7161+
7162+ /** Required. Supported field paths: - `notification_setting` - `mute_setting` */
7163+ @ com .google .api .client .util .Key
7164+ private String updateMask ;
7165+
7166+ /** Required. Supported field paths: - `notification_setting` - `mute_setting`
7167+ */
7168+ public String getUpdateMask () {
7169+ return updateMask ;
7170+ }
7171+
7172+ /** Required. Supported field paths: - `notification_setting` - `mute_setting` */
7173+ public Patch setUpdateMask (String updateMask ) {
7174+ this .updateMask = updateMask ;
7175+ return this ;
7176+ }
7177+
7178+ @ Override
7179+ public Patch set (String parameterName , Object value ) {
7180+ return (Patch ) super .set (parameterName , value );
7181+ }
7182+ }
7183+
7184+ }
68427185 /**
68437186 * An accessor for creating requests from the Threads collection.
68447187 *
0 commit comments