2626@ Generated ("by GAPIC" )
2727@ BetaApi
2828public final class AttachedDiskInitializeParams implements ApiMessage {
29+ private final String description ;
2930 private final String diskName ;
3031 private final String diskSizeGb ;
3132 private final String diskType ;
@@ -34,6 +35,7 @@ public final class AttachedDiskInitializeParams implements ApiMessage {
3435 private final CustomerEncryptionKey sourceImageEncryptionKey ;
3536
3637 private AttachedDiskInitializeParams () {
38+ this .description = null ;
3739 this .diskName = null ;
3840 this .diskSizeGb = null ;
3941 this .diskType = null ;
@@ -43,12 +45,14 @@ private AttachedDiskInitializeParams() {
4345 }
4446
4547 private AttachedDiskInitializeParams (
48+ String description ,
4649 String diskName ,
4750 String diskSizeGb ,
4851 String diskType ,
4952 Map <String , String > labels ,
5053 String sourceImage ,
5154 CustomerEncryptionKey sourceImageEncryptionKey ) {
55+ this .description = description ;
5256 this .diskName = diskName ;
5357 this .diskSizeGb = diskSizeGb ;
5458 this .diskType = diskType ;
@@ -59,6 +63,9 @@ private AttachedDiskInitializeParams(
5963
6064 @ Override
6165 public Object getFieldValue (String fieldName ) {
66+ if (fieldName .equals ("description" )) {
67+ return description ;
68+ }
6269 if (fieldName .equals ("diskName" )) {
6370 return diskName ;
6471 }
@@ -92,6 +99,10 @@ public List<String> getFieldMask() {
9299 return null ;
93100 }
94101
102+ public String getDescription () {
103+ return description ;
104+ }
105+
95106 public String getDiskName () {
96107 return diskName ;
97108 }
@@ -139,6 +150,7 @@ public static AttachedDiskInitializeParams getDefaultInstance() {
139150 }
140151
141152 public static class Builder {
153+ private String description ;
142154 private String diskName ;
143155 private String diskSizeGb ;
144156 private String diskType ;
@@ -150,6 +162,9 @@ public static class Builder {
150162
151163 public Builder mergeFrom (AttachedDiskInitializeParams other ) {
152164 if (other == AttachedDiskInitializeParams .getDefaultInstance ()) return this ;
165+ if (other .getDescription () != null ) {
166+ this .description = other .description ;
167+ }
153168 if (other .getDiskName () != null ) {
154169 this .diskName = other .diskName ;
155170 }
@@ -172,6 +187,7 @@ public Builder mergeFrom(AttachedDiskInitializeParams other) {
172187 }
173188
174189 Builder (AttachedDiskInitializeParams source ) {
190+ this .description = source .description ;
175191 this .diskName = source .diskName ;
176192 this .diskSizeGb = source .diskSizeGb ;
177193 this .diskType = source .diskType ;
@@ -180,6 +196,15 @@ public Builder mergeFrom(AttachedDiskInitializeParams other) {
180196 this .sourceImageEncryptionKey = source .sourceImageEncryptionKey ;
181197 }
182198
199+ public String getDescription () {
200+ return description ;
201+ }
202+
203+ public Builder setDescription (String description ) {
204+ this .description = description ;
205+ return this ;
206+ }
207+
183208 public String getDiskName () {
184209 return diskName ;
185210 }
@@ -237,11 +262,18 @@ public Builder setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncr
237262 public AttachedDiskInitializeParams build () {
238263
239264 return new AttachedDiskInitializeParams (
240- diskName , diskSizeGb , diskType , labels , sourceImage , sourceImageEncryptionKey );
265+ description ,
266+ diskName ,
267+ diskSizeGb ,
268+ diskType ,
269+ labels ,
270+ sourceImage ,
271+ sourceImageEncryptionKey );
241272 }
242273
243274 public Builder clone () {
244275 Builder newBuilder = new Builder ();
276+ newBuilder .setDescription (this .description );
245277 newBuilder .setDiskName (this .diskName );
246278 newBuilder .setDiskSizeGb (this .diskSizeGb );
247279 newBuilder .setDiskType (this .diskType );
@@ -255,6 +287,9 @@ public Builder clone() {
255287 @ Override
256288 public String toString () {
257289 return "AttachedDiskInitializeParams{"
290+ + "description="
291+ + description
292+ + ", "
258293 + "diskName="
259294 + diskName
260295 + ", "
@@ -282,7 +317,8 @@ public boolean equals(Object o) {
282317 }
283318 if (o instanceof AttachedDiskInitializeParams ) {
284319 AttachedDiskInitializeParams that = (AttachedDiskInitializeParams ) o ;
285- return Objects .equals (this .diskName , that .getDiskName ())
320+ return Objects .equals (this .description , that .getDescription ())
321+ && Objects .equals (this .diskName , that .getDiskName ())
286322 && Objects .equals (this .diskSizeGb , that .getDiskSizeGb ())
287323 && Objects .equals (this .diskType , that .getDiskType ())
288324 && Objects .equals (this .labels , that .getLabelsMap ())
@@ -295,6 +331,6 @@ public boolean equals(Object o) {
295331 @ Override
296332 public int hashCode () {
297333 return Objects .hash (
298- diskName , diskSizeGb , diskType , labels , sourceImage , sourceImageEncryptionKey );
334+ description , diskName , diskSizeGb , diskType , labels , sourceImage , sourceImageEncryptionKey );
299335 }
300336}
0 commit comments