@@ -108,6 +108,12 @@ public static Builder newBuilder() {
108
108
}
109
109
110
110
@ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
111
+ public static Builder newProjectBuilder () {
112
+ return new Builder ();
113
+ }
114
+
115
+ /** @deprecated Please use {@link #newProjectBuilder()} instead */
116
+ @ Deprecated
111
117
public static Builder newProjectCmekSettingsBuilder () {
112
118
return new Builder ();
113
119
}
@@ -136,21 +142,45 @@ public static CmekSettingsName of(String project) {
136
142
}
137
143
138
144
@ BetaApi ("The static create methods are not stable yet and may be changed in the future." )
145
+ public static CmekSettingsName ofProjectName (String project ) {
146
+ return newBuilder ().setProject (project ).build ();
147
+ }
148
+
149
+ /** @deprecated Please use {@link #ofProjectName()} instead */
150
+ @ Deprecated
139
151
public static CmekSettingsName ofProjectCmekSettingsName (String project ) {
140
152
return newBuilder ().setProject (project ).build ();
141
153
}
142
154
143
155
@ BetaApi ("The static create methods are not stable yet and may be changed in the future." )
156
+ public static CmekSettingsName ofOrganizationName (String organization ) {
157
+ return newOrganizationCmekSettingsBuilder ().setOrganization (organization ).build ();
158
+ }
159
+
160
+ /** @deprecated Please use {@link #ofOrganizationName()} instead */
161
+ @ Deprecated
144
162
public static CmekSettingsName ofOrganizationCmekSettingsName (String organization ) {
145
163
return newOrganizationCmekSettingsBuilder ().setOrganization (organization ).build ();
146
164
}
147
165
148
166
@ BetaApi ("The static create methods are not stable yet and may be changed in the future." )
167
+ public static CmekSettingsName ofFolderName (String folder ) {
168
+ return newFolderCmekSettingsBuilder ().setFolder (folder ).build ();
169
+ }
170
+
171
+ /** @deprecated Please use {@link #ofFolderName()} instead */
172
+ @ Deprecated
149
173
public static CmekSettingsName ofFolderCmekSettingsName (String folder ) {
150
174
return newFolderCmekSettingsBuilder ().setFolder (folder ).build ();
151
175
}
152
176
153
177
@ BetaApi ("The static create methods are not stable yet and may be changed in the future." )
178
+ public static CmekSettingsName ofBillingAccountName (String billingAccount ) {
179
+ return newBillingAccountCmekSettingsBuilder ().setBillingAccount (billingAccount ).build ();
180
+ }
181
+
182
+ /** @deprecated Please use {@link #ofBillingAccountName()} instead */
183
+ @ Deprecated
154
184
public static CmekSettingsName ofBillingAccountCmekSettingsName (String billingAccount ) {
155
185
return newBillingAccountCmekSettingsBuilder ().setBillingAccount (billingAccount ).build ();
156
186
}
@@ -160,21 +190,48 @@ public static String format(String project) {
160
190
}
161
191
162
192
@ BetaApi ("The static format methods are not stable yet and may be changed in the future." )
193
+ public static String formatProjectName (String project ) {
194
+ return newBuilder ().setProject (project ).build ().toString ();
195
+ }
196
+
197
+ /** @deprecated Please use {@link #formatProjectName()} instead */
198
+ @ Deprecated
163
199
public static String formatProjectCmekSettingsName (String project ) {
164
200
return newBuilder ().setProject (project ).build ().toString ();
165
201
}
166
202
167
203
@ BetaApi ("The static format methods are not stable yet and may be changed in the future." )
204
+ public static String formatOrganizationName (String organization ) {
205
+ return newOrganizationCmekSettingsBuilder ().setOrganization (organization ).build ().toString ();
206
+ }
207
+
208
+ /** @deprecated Please use {@link #formatOrganizationName()} instead */
209
+ @ Deprecated
168
210
public static String formatOrganizationCmekSettingsName (String organization ) {
169
211
return newOrganizationCmekSettingsBuilder ().setOrganization (organization ).build ().toString ();
170
212
}
171
213
172
214
@ BetaApi ("The static format methods are not stable yet and may be changed in the future." )
215
+ public static String formatFolderName (String folder ) {
216
+ return newFolderCmekSettingsBuilder ().setFolder (folder ).build ().toString ();
217
+ }
218
+
219
+ /** @deprecated Please use {@link #formatFolderName()} instead */
220
+ @ Deprecated
173
221
public static String formatFolderCmekSettingsName (String folder ) {
174
222
return newFolderCmekSettingsBuilder ().setFolder (folder ).build ().toString ();
175
223
}
176
224
177
225
@ BetaApi ("The static format methods are not stable yet and may be changed in the future." )
226
+ public static String formatBillingAccountName (String billingAccount ) {
227
+ return newBillingAccountCmekSettingsBuilder ()
228
+ .setBillingAccount (billingAccount )
229
+ .build ()
230
+ .toString ();
231
+ }
232
+
233
+ /** @deprecated Please use {@link #formatBillingAccountName()} instead */
234
+ @ Deprecated
178
235
public static String formatBillingAccountCmekSettingsName (String billingAccount ) {
179
236
return newBillingAccountCmekSettingsBuilder ()
180
237
.setBillingAccount (billingAccount )
0 commit comments