|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.firebaseml.v2beta.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Auth configuration to run the extension. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Firebase ML API. For a detailed explanation see: |
| 24 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 25 | + * </p> |
| 26 | + * |
| 27 | + * @author Google, Inc. |
| 28 | + */ |
| 29 | +@SuppressWarnings("javadoc") |
| 30 | +public final class GoogleCloudAiplatformV1beta1AuthConfig extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Config for API key auth. |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig apiKeyConfig; |
| 38 | + |
| 39 | + /** |
| 40 | + * Type of auth scheme. |
| 41 | + * The value may be {@code null}. |
| 42 | + */ |
| 43 | + @com.google.api.client.util.Key |
| 44 | + private java.lang.String authType; |
| 45 | + |
| 46 | + /** |
| 47 | + * Config for Google Service Account auth. |
| 48 | + * The value may be {@code null}. |
| 49 | + */ |
| 50 | + @com.google.api.client.util.Key |
| 51 | + private GoogleCloudAiplatformV1beta1AuthConfigGoogleServiceAccountConfig googleServiceAccountConfig; |
| 52 | + |
| 53 | + /** |
| 54 | + * Config for HTTP Basic auth. |
| 55 | + * The value may be {@code null}. |
| 56 | + */ |
| 57 | + @com.google.api.client.util.Key |
| 58 | + private GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig httpBasicAuthConfig; |
| 59 | + |
| 60 | + /** |
| 61 | + * Config for user oauth. |
| 62 | + * The value may be {@code null}. |
| 63 | + */ |
| 64 | + @com.google.api.client.util.Key |
| 65 | + private GoogleCloudAiplatformV1beta1AuthConfigOauthConfig oauthConfig; |
| 66 | + |
| 67 | + /** |
| 68 | + * Config for user OIDC auth. |
| 69 | + * The value may be {@code null}. |
| 70 | + */ |
| 71 | + @com.google.api.client.util.Key |
| 72 | + private GoogleCloudAiplatformV1beta1AuthConfigOidcConfig oidcConfig; |
| 73 | + |
| 74 | + /** |
| 75 | + * Config for API key auth. |
| 76 | + * @return value or {@code null} for none |
| 77 | + */ |
| 78 | + public GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig getApiKeyConfig() { |
| 79 | + return apiKeyConfig; |
| 80 | + } |
| 81 | + |
| 82 | + /** |
| 83 | + * Config for API key auth. |
| 84 | + * @param apiKeyConfig apiKeyConfig or {@code null} for none |
| 85 | + */ |
| 86 | + public GoogleCloudAiplatformV1beta1AuthConfig setApiKeyConfig(GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig apiKeyConfig) { |
| 87 | + this.apiKeyConfig = apiKeyConfig; |
| 88 | + return this; |
| 89 | + } |
| 90 | + |
| 91 | + /** |
| 92 | + * Type of auth scheme. |
| 93 | + * @return value or {@code null} for none |
| 94 | + */ |
| 95 | + public java.lang.String getAuthType() { |
| 96 | + return authType; |
| 97 | + } |
| 98 | + |
| 99 | + /** |
| 100 | + * Type of auth scheme. |
| 101 | + * @param authType authType or {@code null} for none |
| 102 | + */ |
| 103 | + public GoogleCloudAiplatformV1beta1AuthConfig setAuthType(java.lang.String authType) { |
| 104 | + this.authType = authType; |
| 105 | + return this; |
| 106 | + } |
| 107 | + |
| 108 | + /** |
| 109 | + * Config for Google Service Account auth. |
| 110 | + * @return value or {@code null} for none |
| 111 | + */ |
| 112 | + public GoogleCloudAiplatformV1beta1AuthConfigGoogleServiceAccountConfig getGoogleServiceAccountConfig() { |
| 113 | + return googleServiceAccountConfig; |
| 114 | + } |
| 115 | + |
| 116 | + /** |
| 117 | + * Config for Google Service Account auth. |
| 118 | + * @param googleServiceAccountConfig googleServiceAccountConfig or {@code null} for none |
| 119 | + */ |
| 120 | + public GoogleCloudAiplatformV1beta1AuthConfig setGoogleServiceAccountConfig(GoogleCloudAiplatformV1beta1AuthConfigGoogleServiceAccountConfig googleServiceAccountConfig) { |
| 121 | + this.googleServiceAccountConfig = googleServiceAccountConfig; |
| 122 | + return this; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Config for HTTP Basic auth. |
| 127 | + * @return value or {@code null} for none |
| 128 | + */ |
| 129 | + public GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig getHttpBasicAuthConfig() { |
| 130 | + return httpBasicAuthConfig; |
| 131 | + } |
| 132 | + |
| 133 | + /** |
| 134 | + * Config for HTTP Basic auth. |
| 135 | + * @param httpBasicAuthConfig httpBasicAuthConfig or {@code null} for none |
| 136 | + */ |
| 137 | + public GoogleCloudAiplatformV1beta1AuthConfig setHttpBasicAuthConfig(GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig httpBasicAuthConfig) { |
| 138 | + this.httpBasicAuthConfig = httpBasicAuthConfig; |
| 139 | + return this; |
| 140 | + } |
| 141 | + |
| 142 | + /** |
| 143 | + * Config for user oauth. |
| 144 | + * @return value or {@code null} for none |
| 145 | + */ |
| 146 | + public GoogleCloudAiplatformV1beta1AuthConfigOauthConfig getOauthConfig() { |
| 147 | + return oauthConfig; |
| 148 | + } |
| 149 | + |
| 150 | + /** |
| 151 | + * Config for user oauth. |
| 152 | + * @param oauthConfig oauthConfig or {@code null} for none |
| 153 | + */ |
| 154 | + public GoogleCloudAiplatformV1beta1AuthConfig setOauthConfig(GoogleCloudAiplatformV1beta1AuthConfigOauthConfig oauthConfig) { |
| 155 | + this.oauthConfig = oauthConfig; |
| 156 | + return this; |
| 157 | + } |
| 158 | + |
| 159 | + /** |
| 160 | + * Config for user OIDC auth. |
| 161 | + * @return value or {@code null} for none |
| 162 | + */ |
| 163 | + public GoogleCloudAiplatformV1beta1AuthConfigOidcConfig getOidcConfig() { |
| 164 | + return oidcConfig; |
| 165 | + } |
| 166 | + |
| 167 | + /** |
| 168 | + * Config for user OIDC auth. |
| 169 | + * @param oidcConfig oidcConfig or {@code null} for none |
| 170 | + */ |
| 171 | + public GoogleCloudAiplatformV1beta1AuthConfig setOidcConfig(GoogleCloudAiplatformV1beta1AuthConfigOidcConfig oidcConfig) { |
| 172 | + this.oidcConfig = oidcConfig; |
| 173 | + return this; |
| 174 | + } |
| 175 | + |
| 176 | + @Override |
| 177 | + public GoogleCloudAiplatformV1beta1AuthConfig set(String fieldName, Object value) { |
| 178 | + return (GoogleCloudAiplatformV1beta1AuthConfig) super.set(fieldName, value); |
| 179 | + } |
| 180 | + |
| 181 | + @Override |
| 182 | + public GoogleCloudAiplatformV1beta1AuthConfig clone() { |
| 183 | + return (GoogleCloudAiplatformV1beta1AuthConfig) super.clone(); |
| 184 | + } |
| 185 | + |
| 186 | +} |
0 commit comments