Skip to content

Commit 2b074ee

Browse files
Regenerate compute client
1 parent fe59de2 commit 2b074ee

File tree

1,214 files changed

+6910
-6890
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,214 files changed

+6910
-6890
lines changed

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesInstanceGroupManagerHttpRequest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 Google LLC
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -77,34 +77,34 @@ private AbandonInstancesInstanceGroupManagerHttpRequest(
7777

7878
@Override
7979
public Object getFieldValue(String fieldName) {
80-
if (fieldName.equals("access_token")) {
80+
if ("access_token".equals(fieldName)) {
8181
return access_token;
8282
}
83-
if (fieldName.equals("callback")) {
83+
if ("callback".equals(fieldName)) {
8484
return callback;
8585
}
86-
if (fieldName.equals("fields")) {
86+
if ("fields".equals(fieldName)) {
8787
return fields;
8888
}
89-
if (fieldName.equals("instanceGroupManager")) {
89+
if ("instanceGroupManager".equals(fieldName)) {
9090
return instanceGroupManager;
9191
}
92-
if (fieldName.equals("instanceGroupManagersAbandonInstancesRequestResource")) {
92+
if ("instanceGroupManagersAbandonInstancesRequestResource".equals(fieldName)) {
9393
return instanceGroupManagersAbandonInstancesRequestResource;
9494
}
95-
if (fieldName.equals("key")) {
95+
if ("key".equals(fieldName)) {
9696
return key;
9797
}
98-
if (fieldName.equals("prettyPrint")) {
98+
if ("prettyPrint".equals(fieldName)) {
9999
return prettyPrint;
100100
}
101-
if (fieldName.equals("quotaUser")) {
101+
if ("quotaUser".equals(fieldName)) {
102102
return quotaUser;
103103
}
104-
if (fieldName.equals("requestId")) {
104+
if ("requestId".equals(fieldName)) {
105105
return requestId;
106106
}
107-
if (fieldName.equals("userIp")) {
107+
if ("userIp".equals(fieldName)) {
108108
return userIp;
109109
}
110110
return null;

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesRegionInstanceGroupManagerHttpRequest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 Google LLC
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -77,34 +77,34 @@ private AbandonInstancesRegionInstanceGroupManagerHttpRequest(
7777

7878
@Override
7979
public Object getFieldValue(String fieldName) {
80-
if (fieldName.equals("access_token")) {
80+
if ("access_token".equals(fieldName)) {
8181
return access_token;
8282
}
83-
if (fieldName.equals("callback")) {
83+
if ("callback".equals(fieldName)) {
8484
return callback;
8585
}
86-
if (fieldName.equals("fields")) {
86+
if ("fields".equals(fieldName)) {
8787
return fields;
8888
}
89-
if (fieldName.equals("instanceGroupManager")) {
89+
if ("instanceGroupManager".equals(fieldName)) {
9090
return instanceGroupManager;
9191
}
92-
if (fieldName.equals("key")) {
92+
if ("key".equals(fieldName)) {
9393
return key;
9494
}
95-
if (fieldName.equals("prettyPrint")) {
95+
if ("prettyPrint".equals(fieldName)) {
9696
return prettyPrint;
9797
}
98-
if (fieldName.equals("quotaUser")) {
98+
if ("quotaUser".equals(fieldName)) {
9999
return quotaUser;
100100
}
101-
if (fieldName.equals("regionInstanceGroupManagersAbandonInstancesRequestResource")) {
101+
if ("regionInstanceGroupManagersAbandonInstancesRequestResource".equals(fieldName)) {
102102
return regionInstanceGroupManagersAbandonInstancesRequestResource;
103103
}
104-
if (fieldName.equals("requestId")) {
104+
if ("requestId".equals(fieldName)) {
105105
return requestId;
106106
}
107-
if (fieldName.equals("userIp")) {
107+
if ("userIp".equals(fieldName)) {
108108
return userIp;
109109
}
110110
return null;

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 Google LLC
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -40,10 +40,10 @@ private AcceleratorConfig(Integer acceleratorCount, String acceleratorType) {
4040

4141
@Override
4242
public Object getFieldValue(String fieldName) {
43-
if (fieldName.equals("acceleratorCount")) {
43+
if ("acceleratorCount".equals(fieldName)) {
4444
return acceleratorCount;
4545
}
46-
if (fieldName.equals("acceleratorType")) {
46+
if ("acceleratorType".equals(fieldName)) {
4747
return acceleratorType;
4848
}
4949
return null;

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorType.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 Google LLC
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -70,31 +70,31 @@ private AcceleratorType(
7070

7171
@Override
7272
public Object getFieldValue(String fieldName) {
73-
if (fieldName.equals("creationTimestamp")) {
73+
if ("creationTimestamp".equals(fieldName)) {
7474
return creationTimestamp;
7575
}
76-
if (fieldName.equals("deprecated")) {
76+
if ("deprecated".equals(fieldName)) {
7777
return deprecated;
7878
}
79-
if (fieldName.equals("description")) {
79+
if ("description".equals(fieldName)) {
8080
return description;
8181
}
82-
if (fieldName.equals("id")) {
82+
if ("id".equals(fieldName)) {
8383
return id;
8484
}
85-
if (fieldName.equals("kind")) {
85+
if ("kind".equals(fieldName)) {
8686
return kind;
8787
}
88-
if (fieldName.equals("maximumCardsPerInstance")) {
88+
if ("maximumCardsPerInstance".equals(fieldName)) {
8989
return maximumCardsPerInstance;
9090
}
91-
if (fieldName.equals("name")) {
91+
if ("name".equals(fieldName)) {
9292
return name;
9393
}
94-
if (fieldName.equals("selfLink")) {
94+
if ("selfLink".equals(fieldName)) {
9595
return selfLink;
9696
}
97-
if (fieldName.equals("zone")) {
97+
if ("zone".equals(fieldName)) {
9898
return zone;
9999
}
100100
return null;

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeAggregatedList.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 Google LLC
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -59,22 +59,22 @@ private AcceleratorTypeAggregatedList(
5959

6060
@Override
6161
public Object getFieldValue(String fieldName) {
62-
if (fieldName.equals("id")) {
62+
if ("id".equals(fieldName)) {
6363
return id;
6464
}
65-
if (fieldName.equals("items")) {
65+
if ("items".equals(fieldName)) {
6666
return items;
6767
}
68-
if (fieldName.equals("kind")) {
68+
if ("kind".equals(fieldName)) {
6969
return kind;
7070
}
71-
if (fieldName.equals("nextPageToken")) {
71+
if ("nextPageToken".equals(fieldName)) {
7272
return nextPageToken;
7373
}
74-
if (fieldName.equals("selfLink")) {
74+
if ("selfLink".equals(fieldName)) {
7575
return selfLink;
7676
}
77-
if (fieldName.equals("warning")) {
77+
if ("warning".equals(fieldName)) {
7878
return warning;
7979
}
8080
return null;

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 Google LLC
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeList.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 Google LLC
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -59,22 +59,22 @@ private AcceleratorTypeList(
5959

6060
@Override
6161
public Object getFieldValue(String fieldName) {
62-
if (fieldName.equals("id")) {
62+
if ("id".equals(fieldName)) {
6363
return id;
6464
}
65-
if (fieldName.equals("items")) {
65+
if ("items".equals(fieldName)) {
6666
return items;
6767
}
68-
if (fieldName.equals("kind")) {
68+
if ("kind".equals(fieldName)) {
6969
return kind;
7070
}
71-
if (fieldName.equals("nextPageToken")) {
71+
if ("nextPageToken".equals(fieldName)) {
7272
return nextPageToken;
7373
}
74-
if (fieldName.equals("selfLink")) {
74+
if ("selfLink".equals(fieldName)) {
7575
return selfLink;
7676
}
77-
if (fieldName.equals("warning")) {
77+
if ("warning".equals(fieldName)) {
7878
return warning;
7979
}
8080
return null;

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 Google LLC
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesScopedList.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 Google LLC
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -41,10 +41,10 @@ private AcceleratorTypesScopedList(List<AcceleratorType> acceleratorTypes, Warni
4141

4242
@Override
4343
public Object getFieldValue(String fieldName) {
44-
if (fieldName.equals("acceleratorTypes")) {
44+
if ("acceleratorTypes".equals(fieldName)) {
4545
return acceleratorTypes;
4646
}
47-
if (fieldName.equals("warning")) {
47+
if ("warning".equals(fieldName)) {
4848
return warning;
4949
}
5050
return null;

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AccessConfig.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 Google LLC
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -62,25 +62,25 @@ private AccessConfig(
6262

6363
@Override
6464
public Object getFieldValue(String fieldName) {
65-
if (fieldName.equals("kind")) {
65+
if ("kind".equals(fieldName)) {
6666
return kind;
6767
}
68-
if (fieldName.equals("name")) {
68+
if ("name".equals(fieldName)) {
6969
return name;
7070
}
71-
if (fieldName.equals("natIP")) {
71+
if ("natIP".equals(fieldName)) {
7272
return natIP;
7373
}
74-
if (fieldName.equals("networkTier")) {
74+
if ("networkTier".equals(fieldName)) {
7575
return networkTier;
7676
}
77-
if (fieldName.equals("publicPtrDomainName")) {
77+
if ("publicPtrDomainName".equals(fieldName)) {
7878
return publicPtrDomainName;
7979
}
80-
if (fieldName.equals("setPublicPtr")) {
80+
if ("setPublicPtr".equals(fieldName)) {
8181
return setPublicPtr;
8282
}
83-
if (fieldName.equals("type")) {
83+
if ("type".equals(fieldName)) {
8484
return type;
8585
}
8686
return null;

0 commit comments

Comments
 (0)