diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesInstanceGroupManagerHttpRequest.java index 5b3df3ee8132..0b20d10e1177 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -77,34 +77,34 @@ private AbandonInstancesInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("instanceGroupManagersAbandonInstancesRequestResource")) { + if ("instanceGroupManagersAbandonInstancesRequestResource".equals(fieldName)) { return instanceGroupManagersAbandonInstancesRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesRegionInstanceGroupManagerHttpRequest.java index 8a1b6a30beb0..0f1c462a0be7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesRegionInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -77,34 +77,34 @@ private AbandonInstancesRegionInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("regionInstanceGroupManagersAbandonInstancesRequestResource")) { + if ("regionInstanceGroupManagersAbandonInstancesRequestResource".equals(fieldName)) { return regionInstanceGroupManagersAbandonInstancesRequestResource; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorConfig.java index f23011e953c4..76616db01426 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private AcceleratorConfig(Integer acceleratorCount, String acceleratorType) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("acceleratorCount")) { + if ("acceleratorCount".equals(fieldName)) { return acceleratorCount; } - if (fieldName.equals("acceleratorType")) { + if ("acceleratorType".equals(fieldName)) { return acceleratorType; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorType.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorType.java index fb87ef23f2f4..ec3efe45c20f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorType.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorType.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private AcceleratorType( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("deprecated")) { + if ("deprecated".equals(fieldName)) { return deprecated; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("maximumCardsPerInstance")) { + if ("maximumCardsPerInstance".equals(fieldName)) { return maximumCardsPerInstance; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeAggregatedList.java index 3ef933c0ed8e..eaff2de5b7af 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private AcceleratorTypeAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeClient.java index 01cf2a407bef..501b6de15ded 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeList.java index 82ef38df671d..18cdb5accebe 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private AcceleratorTypeList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeSettings.java index 02cdb57d3ba5..22f84ef7531e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesScopedList.java index cb69d93dc4e5..df6a0eb43438 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private AcceleratorTypesScopedList(List acceleratorTypes, Warni @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("acceleratorTypes")) { + if ("acceleratorTypes".equals(fieldName)) { return acceleratorTypes; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AccessConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AccessConfig.java index 90683ed7e4e2..5b74c39b84cf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AccessConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AccessConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -62,25 +62,25 @@ private AccessConfig( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("natIP")) { + if ("natIP".equals(fieldName)) { return natIP; } - if (fieldName.equals("networkTier")) { + if ("networkTier".equals(fieldName)) { return networkTier; } - if (fieldName.equals("publicPtrDomainName")) { + if ("publicPtrDomainName".equals(fieldName)) { return publicPtrDomainName; } - if (fieldName.equals("setPublicPtr")) { + if ("setPublicPtr".equals(fieldName)) { return setPublicPtr; } - if (fieldName.equals("type")) { + if ("type".equals(fieldName)) { return type; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddAccessConfigInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddAccessConfigInstanceHttpRequest.java index 355d5d314cfb..54db1db40a48 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddAccessConfigInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddAccessConfigInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -78,37 +78,37 @@ private AddAccessConfigInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("accessConfigResource")) { + if ("accessConfigResource".equals(fieldName)) { return accessConfigResource; } - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("networkInterface")) { + if ("networkInterface".equals(fieldName)) { return networkInterface; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddHealthCheckTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddHealthCheckTargetPoolHttpRequest.java index 9262d462efe4..176d18ea025c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddHealthCheckTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddHealthCheckTargetPoolHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private AddHealthCheckTargetPoolHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetPool")) { + if ("targetPool".equals(fieldName)) { return targetPool; } - if (fieldName.equals("targetPoolsAddHealthCheckRequestResource")) { + if ("targetPoolsAddHealthCheckRequestResource".equals(fieldName)) { return targetPoolsAddHealthCheckRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstanceTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstanceTargetPoolHttpRequest.java index 29504b899fbf..59b848c07f17 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstanceTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstanceTargetPoolHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private AddInstanceTargetPoolHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetPool")) { + if ("targetPool".equals(fieldName)) { return targetPool; } - if (fieldName.equals("targetPoolsAddInstanceRequestResource")) { + if ("targetPoolsAddInstanceRequestResource".equals(fieldName)) { return targetPoolsAddInstanceRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstancesInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstancesInstanceGroupHttpRequest.java index d728e67f4649..7211f82d23aa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstancesInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstancesInstanceGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private AddInstancesInstanceGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroup")) { + if ("instanceGroup".equals(fieldName)) { return instanceGroup; } - if (fieldName.equals("instanceGroupsAddInstancesRequestResource")) { + if ("instanceGroupsAddInstancesRequestResource".equals(fieldName)) { return instanceGroupsAddInstancesRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddNodesNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddNodesNodeGroupHttpRequest.java index f984ccaa9be4..f49b64c70bdf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddNodesNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddNodesNodeGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private AddNodesNodeGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("nodeGroup")) { + if ("nodeGroup".equals(fieldName)) { return nodeGroup; } - if (fieldName.equals("nodeGroupsAddNodesRequestResource")) { + if ("nodeGroupsAddNodesRequestResource".equals(fieldName)) { return nodeGroupsAddNodesRequestResource; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddPeeringNetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddPeeringNetworkHttpRequest.java index 2ee03b079e03..e10f6ecd65d7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddPeeringNetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddPeeringNetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private AddPeeringNetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("networksAddPeeringRequestResource")) { + if ("networksAddPeeringRequestResource".equals(fieldName)) { return networksAddPeeringRequestResource; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddRuleSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddRuleSecurityPolicyHttpRequest.java index 16f369013b83..5604fc58db8a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddRuleSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddRuleSecurityPolicyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private AddRuleSecurityPolicyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("securityPolicy")) { + if ("securityPolicy".equals(fieldName)) { return securityPolicy; } - if (fieldName.equals("securityPolicyRuleResource")) { + if ("securityPolicyRuleResource".equals(fieldName)) { return securityPolicyRuleResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendBucketHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendBucketHttpRequest.java index 99c013647841..ae1fc0467c7a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendBucketHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendBucketHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private AddSignedUrlKeyBackendBucketHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendBucket")) { + if ("backendBucket".equals(fieldName)) { return backendBucket; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("signedUrlKeyResource")) { + if ("signedUrlKeyResource".equals(fieldName)) { return signedUrlKeyResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendServiceHttpRequest.java index 8a77b832bbc6..7e62d6d72745 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private AddSignedUrlKeyBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendService")) { + if ("backendService".equals(fieldName)) { return backendService; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("signedUrlKeyResource")) { + if ("signedUrlKeyResource".equals(fieldName)) { return signedUrlKeyResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Address.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Address.java index 678e3f58ab66..6372117a77bc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Address.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Address.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -103,55 +103,55 @@ private Address( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("address")) { + if ("address".equals(fieldName)) { return address; } - if (fieldName.equals("addressType")) { + if ("addressType".equals(fieldName)) { return addressType; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("ipVersion")) { + if ("ipVersion".equals(fieldName)) { return ipVersion; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("networkTier")) { + if ("networkTier".equals(fieldName)) { return networkTier; } - if (fieldName.equals("prefixLength")) { + if ("prefixLength".equals(fieldName)) { return prefixLength; } - if (fieldName.equals("purpose")) { + if ("purpose".equals(fieldName)) { return purpose; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } - if (fieldName.equals("subnetwork")) { + if ("subnetwork".equals(fieldName)) { return subnetwork; } - if (fieldName.equals("users")) { + if ("users".equals(fieldName)) { return users; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressAggregatedList.java index 4fb93c707ae0..de051eb0f6b7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private AddressAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java index 863ce19866fd..350917331d05 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressList.java index e680de5e2049..cacc53ed1c62 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private AddressList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressSettings.java index 3b26e1810a86..ea1108fe195e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesScopedList.java index 8bdd67da4314..28e6e05b90bd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private AddressesScopedList(List
addresses, Warning warning) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("addresses")) { + if ("addresses".equals(fieldName)) { return addresses; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAcceleratorTypesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAcceleratorTypesHttpRequest.java index e2478c51f2dc..13d0fe9c4839 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAcceleratorTypesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAcceleratorTypesHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListAcceleratorTypesHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAddressesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAddressesHttpRequest.java index 88436c282b6b..48b28c02f43d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAddressesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAddressesHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListAddressesHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAutoscalersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAutoscalersHttpRequest.java index 71a24f28b3a4..aec4e81669a9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAutoscalersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAutoscalersHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListAutoscalersHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendServicesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendServicesHttpRequest.java index 69a8227af819..8900ad1c74eb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendServicesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendServicesHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListBackendServicesHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDiskTypesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDiskTypesHttpRequest.java index 89e876b8abb4..e656d5cf0998 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDiskTypesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDiskTypesHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListDiskTypesHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDisksHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDisksHttpRequest.java index c9f8029f34e8..ede91bdbe9b3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDisksHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDisksHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListDisksHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListForwardingRulesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListForwardingRulesHttpRequest.java index 72cea01f104d..702585332522 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListForwardingRulesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListForwardingRulesHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListForwardingRulesHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListGlobalOperationsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListGlobalOperationsHttpRequest.java index fb2284b7dbee..4e10d95aac05 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListGlobalOperationsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListGlobalOperationsHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListGlobalOperationsHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupManagersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupManagersHttpRequest.java index 076e196cfb8f..47572d97ef92 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupManagersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupManagersHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListInstanceGroupManagersHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupsHttpRequest.java index 211639cfbe7c..7af83158b8da 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupsHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListInstanceGroupsHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstancesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstancesHttpRequest.java index e281da33a595..cb9fde072cba 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstancesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstancesHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListInstancesHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInterconnectAttachmentsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInterconnectAttachmentsHttpRequest.java index 286d3e0d2f94..e588f777df49 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInterconnectAttachmentsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInterconnectAttachmentsHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListInterconnectAttachmentsHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListMachineTypesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListMachineTypesHttpRequest.java index 9c22653c070e..d77c805422ed 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListMachineTypesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListMachineTypesHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListMachineTypesHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeGroupsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeGroupsHttpRequest.java index ffe75ac0e191..11696ae80e54 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeGroupsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeGroupsHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListNodeGroupsHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTemplatesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTemplatesHttpRequest.java index b17e455ab68a..d29e155e5320 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTemplatesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTemplatesHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListNodeTemplatesHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTypesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTypesHttpRequest.java index 7c1a7e48d59f..793315c05ef1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTypesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTypesHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListNodeTypesHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRegionCommitmentsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRegionCommitmentsHttpRequest.java index f6e9e5484105..c24d642b477f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRegionCommitmentsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRegionCommitmentsHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListRegionCommitmentsHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRoutersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRoutersHttpRequest.java index 619e7fe65aaa..3c1d9797d1fe 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRoutersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRoutersHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListRoutersHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListSubnetworksHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListSubnetworksHttpRequest.java index 8a5bda15a8ef..e69b80a72128 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListSubnetworksHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListSubnetworksHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListSubnetworksHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetInstancesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetInstancesHttpRequest.java index 91c43d6c5927..c98a764bb660 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetInstancesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetInstancesHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListTargetInstancesHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetPoolsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetPoolsHttpRequest.java index 3c548928adeb..03594abb15d1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetPoolsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetPoolsHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListTargetPoolsHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetVpnGatewaysHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetVpnGatewaysHttpRequest.java index 164b5b92c225..9c2d2ef98f4f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetVpnGatewaysHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetVpnGatewaysHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListTargetVpnGatewaysHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnTunnelsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnTunnelsHttpRequest.java index 2cac8c858695..d97a3b1e0328 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnTunnelsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnTunnelsHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private AggregatedListVpnTunnelsHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AliasIpRange.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AliasIpRange.java index c4d1d59b1043..7cbbe9ce6437 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AliasIpRange.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AliasIpRange.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private AliasIpRange(String ipCidrRange, String subnetworkRangeName) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("ipCidrRange")) { + if ("ipCidrRange".equals(fieldName)) { return ipCidrRange; } - if (fieldName.equals("subnetworkRangeName")) { + if ("subnetworkRangeName".equals(fieldName)) { return subnetworkRangeName; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Allowed.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Allowed.java index 07f2fda4259b..cb707d58839a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Allowed.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Allowed.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.ApiMessage; +import com.google.gson.annotations.SerializedName; import java.util.LinkedList; import java.util.List; import java.util.Objects; @@ -26,7 +27,9 @@ @Generated("by GAPIC") @BetaApi public final class Allowed implements ApiMessage { + @SerializedName("IPProtocol") private final String iPProtocol; + private final List ports; private Allowed() { @@ -41,10 +44,10 @@ private Allowed(String iPProtocol, List ports) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("iPProtocol")) { + if ("iPProtocol".equals(fieldName)) { return iPProtocol; } - if (fieldName.equals("ports")) { + if ("ports".equals(fieldName)) { return ports; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachDiskInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachDiskInstanceHttpRequest.java index f6586f9fe210..43aabc929cc5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachDiskInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachDiskInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -78,37 +78,37 @@ private AttachDiskInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("attachedDiskResource")) { + if ("attachedDiskResource".equals(fieldName)) { return attachedDiskResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("forceAttach")) { + if ("forceAttach".equals(fieldName)) { return forceAttach; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDisk.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDisk.java index 32d7ec5d8dcd..67ca6fdf39e6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDisk.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDisk.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.ApiMessage; +import com.google.gson.annotations.SerializedName; import java.util.LinkedList; import java.util.List; import java.util.Objects; @@ -33,7 +34,10 @@ public final class AttachedDisk implements ApiMessage { private final List guestOsFeatures; private final Integer index; private final AttachedDiskInitializeParams initializeParams; + + @SerializedName("interface") private final String interface2; + private final String kind; private final List licenses; private final String mode; @@ -87,43 +91,43 @@ private AttachedDisk( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("autoDelete")) { + if ("autoDelete".equals(fieldName)) { return autoDelete; } - if (fieldName.equals("boot")) { + if ("boot".equals(fieldName)) { return boot; } - if (fieldName.equals("deviceName")) { + if ("deviceName".equals(fieldName)) { return deviceName; } - if (fieldName.equals("diskEncryptionKey")) { + if ("diskEncryptionKey".equals(fieldName)) { return diskEncryptionKey; } - if (fieldName.equals("guestOsFeatures")) { + if ("guestOsFeatures".equals(fieldName)) { return guestOsFeatures; } - if (fieldName.equals("index")) { + if ("index".equals(fieldName)) { return index; } - if (fieldName.equals("initializeParams")) { + if ("initializeParams".equals(fieldName)) { return initializeParams; } - if (fieldName.equals("interface2")) { + if ("interface2".equals(fieldName)) { return interface2; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("licenses")) { + if ("licenses".equals(fieldName)) { return licenses; } - if (fieldName.equals("mode")) { + if ("mode".equals(fieldName)) { return mode; } - if (fieldName.equals("source")) { + if ("source".equals(fieldName)) { return source; } - if (fieldName.equals("type")) { + if ("type".equals(fieldName)) { return type; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java index 7ebb0a5010dd..b5629ec53e08 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -63,25 +63,25 @@ private AttachedDiskInitializeParams( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("diskName")) { + if ("diskName".equals(fieldName)) { return diskName; } - if (fieldName.equals("diskSizeGb")) { + if ("diskSizeGb".equals(fieldName)) { return diskSizeGb; } - if (fieldName.equals("diskType")) { + if ("diskType".equals(fieldName)) { return diskType; } - if (fieldName.equals("labels")) { + if ("labels".equals(fieldName)) { return labels; } - if (fieldName.equals("sourceImage")) { + if ("sourceImage".equals(fieldName)) { return sourceImage; } - if (fieldName.equals("sourceImageEncryptionKey")) { + if ("sourceImageEncryptionKey".equals(fieldName)) { return sourceImageEncryptionKey; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditConfig.java index 6f0cbcf0a9fa..7d01e752ed75 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -45,13 +45,13 @@ private AuditConfig( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("auditLogConfigs")) { + if ("auditLogConfigs".equals(fieldName)) { return auditLogConfigs; } - if (fieldName.equals("exemptedMembers")) { + if ("exemptedMembers".equals(fieldName)) { return exemptedMembers; } - if (fieldName.equals("service")) { + if ("service".equals(fieldName)) { return service; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditLogConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditLogConfig.java index c2a1495baf3c..9ed12ffe3b82 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditLogConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditLogConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private AuditLogConfig(List exemptedMembers, String logType) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("exemptedMembers")) { + if ("exemptedMembers".equals(fieldName)) { return exemptedMembers; } - if (fieldName.equals("logType")) { + if ("logType".equals(fieldName)) { return logType; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuthorizationLoggingOptions.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuthorizationLoggingOptions.java index 88de7664f939..1b3cff5f69b5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuthorizationLoggingOptions.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuthorizationLoggingOptions.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private AuthorizationLoggingOptions(String permissionType) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("permissionType")) { + if ("permissionType".equals(fieldName)) { return permissionType; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Autoscaler.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Autoscaler.java index 793a63ac9784..55c82ee0bb8d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Autoscaler.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Autoscaler.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,40 +83,40 @@ private Autoscaler( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("autoscalingPolicy")) { + if ("autoscalingPolicy".equals(fieldName)) { return autoscalingPolicy; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } - if (fieldName.equals("statusDetails")) { + if ("statusDetails".equals(fieldName)) { return statusDetails; } - if (fieldName.equals("target")) { + if ("target".equals(fieldName)) { return target; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerAggregatedList.java index 3e0ac9f3b606..e62a783f0af7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private AutoscalerAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java index 81ec88d15af5..1b87ef755788 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerList.java index 1a4c55476090..2f2398d725e7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private AutoscalerList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerSettings.java index e48843777efb..4db44b598b57 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerStatusDetails.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerStatusDetails.java index 23faa574e2d4..aa35df64da88 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerStatusDetails.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerStatusDetails.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private AutoscalerStatusDetails(String message, String type) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("message")) { + if ("message".equals(fieldName)) { return message; } - if (fieldName.equals("type")) { + if ("type".equals(fieldName)) { return type; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersScopedList.java index 6f71f766bcc7..871276064488 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private AutoscalersScopedList(List autoscalers, Warning warning) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("autoscalers")) { + if ("autoscalers".equals(fieldName)) { return autoscalers; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicy.java index 3a5030b3ea95..e95152559534 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private AutoscalingPolicy( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("coolDownPeriodSec")) { + if ("coolDownPeriodSec".equals(fieldName)) { return coolDownPeriodSec; } - if (fieldName.equals("cpuUtilization")) { + if ("cpuUtilization".equals(fieldName)) { return cpuUtilization; } - if (fieldName.equals("customMetricUtilizations")) { + if ("customMetricUtilizations".equals(fieldName)) { return customMetricUtilizations; } - if (fieldName.equals("loadBalancingUtilization")) { + if ("loadBalancingUtilization".equals(fieldName)) { return loadBalancingUtilization; } - if (fieldName.equals("maxNumReplicas")) { + if ("maxNumReplicas".equals(fieldName)) { return maxNumReplicas; } - if (fieldName.equals("minNumReplicas")) { + if ("minNumReplicas".equals(fieldName)) { return minNumReplicas; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCpuUtilization.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCpuUtilization.java index 5d195b49d90e..6ae88e57a3af 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCpuUtilization.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCpuUtilization.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private AutoscalingPolicyCpuUtilization(Double utilizationTarget) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("utilizationTarget")) { + if ("utilizationTarget".equals(fieldName)) { return utilizationTarget; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCustomMetricUtilization.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCustomMetricUtilization.java index 2098a3495b66..901dd77a5e78 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCustomMetricUtilization.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCustomMetricUtilization.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,13 +44,13 @@ private AutoscalingPolicyCustomMetricUtilization( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("metric")) { + if ("metric".equals(fieldName)) { return metric; } - if (fieldName.equals("utilizationTarget")) { + if ("utilizationTarget".equals(fieldName)) { return utilizationTarget; } - if (fieldName.equals("utilizationTargetType")) { + if ("utilizationTargetType".equals(fieldName)) { return utilizationTargetType; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyLoadBalancingUtilization.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyLoadBalancingUtilization.java index e7b3fa592d42..062a8b69392c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyLoadBalancingUtilization.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyLoadBalancingUtilization.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private AutoscalingPolicyLoadBalancingUtilization(Double utilizationTarget) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("utilizationTarget")) { + if ("utilizationTarget".equals(fieldName)) { return utilizationTarget; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Backend.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Backend.java index 07e1da2dc268..340a4d7a481c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Backend.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Backend.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private Backend( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("balancingMode")) { + if ("balancingMode".equals(fieldName)) { return balancingMode; } - if (fieldName.equals("capacityScaler")) { + if ("capacityScaler".equals(fieldName)) { return capacityScaler; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("group")) { + if ("group".equals(fieldName)) { return group; } - if (fieldName.equals("maxConnections")) { + if ("maxConnections".equals(fieldName)) { return maxConnections; } - if (fieldName.equals("maxConnectionsPerInstance")) { + if ("maxConnectionsPerInstance".equals(fieldName)) { return maxConnectionsPerInstance; } - if (fieldName.equals("maxRate")) { + if ("maxRate".equals(fieldName)) { return maxRate; } - if (fieldName.equals("maxRatePerInstance")) { + if ("maxRatePerInstance".equals(fieldName)) { return maxRatePerInstance; } - if (fieldName.equals("maxUtilization")) { + if ("maxUtilization".equals(fieldName)) { return maxUtilization; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucket.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucket.java index d6656ebab70f..6801ce47652d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucket.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private BackendBucket( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("bucketName")) { + if ("bucketName".equals(fieldName)) { return bucketName; } - if (fieldName.equals("cdnPolicy")) { + if ("cdnPolicy".equals(fieldName)) { return cdnPolicy; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("enableCdn")) { + if ("enableCdn".equals(fieldName)) { return enableCdn; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicy.java index 9f50f75f9113..3f0f87707673 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private BackendBucketCdnPolicy(String signedUrlCacheMaxAgeSec, List sign @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("signedUrlCacheMaxAgeSec")) { + if ("signedUrlCacheMaxAgeSec".equals(fieldName)) { return signedUrlCacheMaxAgeSec; } - if (fieldName.equals("signedUrlKeyNames")) { + if ("signedUrlKeyNames".equals(fieldName)) { return signedUrlKeyNames; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java index d6c9ad6c28d7..8dd2e267ee49 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketList.java index ba81f5d5b612..9d137d27827f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private BackendBucketList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketSettings.java index 2610369f2a1e..92e0aa886ea3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendService.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendService.java index eb8b8690523d..c1a10062e8f3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendService.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -123,70 +123,70 @@ private BackendService( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("affinityCookieTtlSec")) { + if ("affinityCookieTtlSec".equals(fieldName)) { return affinityCookieTtlSec; } - if (fieldName.equals("backends")) { + if ("backends".equals(fieldName)) { return backends; } - if (fieldName.equals("cdnPolicy")) { + if ("cdnPolicy".equals(fieldName)) { return cdnPolicy; } - if (fieldName.equals("connectionDraining")) { + if ("connectionDraining".equals(fieldName)) { return connectionDraining; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("enableCDN")) { + if ("enableCDN".equals(fieldName)) { return enableCDN; } - if (fieldName.equals("fingerprint")) { + if ("fingerprint".equals(fieldName)) { return fingerprint; } - if (fieldName.equals("healthChecks")) { + if ("healthChecks".equals(fieldName)) { return healthChecks; } - if (fieldName.equals("iap")) { + if ("iap".equals(fieldName)) { return iap; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("loadBalancingScheme")) { + if ("loadBalancingScheme".equals(fieldName)) { return loadBalancingScheme; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("port")) { + if ("port".equals(fieldName)) { return port; } - if (fieldName.equals("portName")) { + if ("portName".equals(fieldName)) { return portName; } - if (fieldName.equals("protocol")) { + if ("protocol".equals(fieldName)) { return protocol; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("securityPolicy")) { + if ("securityPolicy".equals(fieldName)) { return securityPolicy; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("sessionAffinity")) { + if ("sessionAffinity".equals(fieldName)) { return sessionAffinity; } - if (fieldName.equals("timeoutSec")) { + if ("timeoutSec".equals(fieldName)) { return timeoutSec; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceAggregatedList.java index 85b75e24ef98..e7764a76e9f2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private BackendServiceAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicy.java index b01803bc70f3..d5449a347a23 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,13 +47,13 @@ private BackendServiceCdnPolicy( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("cacheKeyPolicy")) { + if ("cacheKeyPolicy".equals(fieldName)) { return cacheKeyPolicy; } - if (fieldName.equals("signedUrlCacheMaxAgeSec")) { + if ("signedUrlCacheMaxAgeSec".equals(fieldName)) { return signedUrlCacheMaxAgeSec; } - if (fieldName.equals("signedUrlKeyNames")) { + if ("signedUrlKeyNames".equals(fieldName)) { return signedUrlKeyNames; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java index 0f63728a3ea6..c598dd86600f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceGroupHealth.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceGroupHealth.java index 7c5a4773c546..e85003e7a8b1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceGroupHealth.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceGroupHealth.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private BackendServiceGroupHealth(List healthStatus, String kind) @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("healthStatus")) { + if ("healthStatus".equals(fieldName)) { return healthStatus; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceIAP.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceIAP.java index 7bf7ea7e950b..4067846d064a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceIAP.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceIAP.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,16 +50,16 @@ private BackendServiceIAP( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("enabled")) { + if ("enabled".equals(fieldName)) { return enabled; } - if (fieldName.equals("oauth2ClientId")) { + if ("oauth2ClientId".equals(fieldName)) { return oauth2ClientId; } - if (fieldName.equals("oauth2ClientSecret")) { + if ("oauth2ClientSecret".equals(fieldName)) { return oauth2ClientSecret; } - if (fieldName.equals("oauth2ClientSecretSha256")) { + if ("oauth2ClientSecretSha256".equals(fieldName)) { return oauth2ClientSecretSha256; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceList.java index 64e6578f0610..be693b883e93 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private BackendServiceList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceSettings.java index 73126dc471eb..2c3f31461c39 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesScopedList.java index e0bd03d96420..2535d1c073f4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private BackendServicesScopedList(List backendServices, Warning @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("backendServices")) { + if ("backendServices".equals(fieldName)) { return backendServices; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java index e6fafcd2cd39..885daa78dce8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,13 +44,13 @@ private Binding(Expr condition, List members, String role) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("condition")) { + if ("condition".equals(fieldName)) { return condition; } - if (fieldName.equals("members")) { + if ("members".equals(fieldName)) { return members; } - if (fieldName.equals("role")) { + if ("role".equals(fieldName)) { return role; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRule.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRule.java index 34d363da9d00..9e80f89fcd23 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRule.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRule.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private CacheInvalidationRule(String host, String path) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("host")) { + if ("host".equals(fieldName)) { return host; } - if (fieldName.equals("path")) { + if ("path".equals(fieldName)) { return path; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheKeyPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheKeyPolicy.java index 6c00a5a50383..17424ef883ec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheKeyPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheKeyPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -55,19 +55,19 @@ private CacheKeyPolicy( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("includeHost")) { + if ("includeHost".equals(fieldName)) { return includeHost; } - if (fieldName.equals("includeProtocol")) { + if ("includeProtocol".equals(fieldName)) { return includeProtocol; } - if (fieldName.equals("includeQueryString")) { + if ("includeQueryString".equals(fieldName)) { return includeQueryString; } - if (fieldName.equals("queryStringBlacklist")) { + if ("queryStringBlacklist".equals(fieldName)) { return queryStringBlacklist; } - if (fieldName.equals("queryStringWhitelist")) { + if ("queryStringWhitelist".equals(fieldName)) { return queryStringWhitelist; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Commitment.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Commitment.java index 7cc9b5793ff9..41e7b80b43b2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Commitment.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Commitment.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,43 +87,43 @@ private Commitment( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("endTimestamp")) { + if ("endTimestamp".equals(fieldName)) { return endTimestamp; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("plan")) { + if ("plan".equals(fieldName)) { return plan; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("resources")) { + if ("resources".equals(fieldName)) { return resources; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("startTimestamp")) { + if ("startTimestamp".equals(fieldName)) { return startTimestamp; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } - if (fieldName.equals("statusMessage")) { + if ("statusMessage".equals(fieldName)) { return statusMessage; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentAggregatedList.java index 755176db0c56..097e0a1d5af0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private CommitmentAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentList.java index 0cee3f199acf..8a9c4e06db68 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private CommitmentList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentsScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentsScopedList.java index d9cf023d3679..ad11f6d7c8ff 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentsScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentsScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private CommitmentsScopedList(List commitments, Warning warning) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("commitments")) { + if ("commitments".equals(fieldName)) { return commitments; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Condition.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Condition.java index ba55b39e9a2c..d32c201f5c6d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Condition.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Condition.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -54,22 +54,22 @@ private Condition( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("iam")) { + if ("iam".equals(fieldName)) { return iam; } - if (fieldName.equals("op")) { + if ("op".equals(fieldName)) { return op; } - if (fieldName.equals("svc")) { + if ("svc".equals(fieldName)) { return svc; } - if (fieldName.equals("sys")) { + if ("sys".equals(fieldName)) { return sys; } - if (fieldName.equals("value")) { + if ("value".equals(fieldName)) { return value; } - if (fieldName.equals("values")) { + if ("values".equals(fieldName)) { return values; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ConnectionDraining.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ConnectionDraining.java index cbcf3e4a0732..5249d50816a5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ConnectionDraining.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ConnectionDraining.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private ConnectionDraining(Integer drainingTimeoutSec) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("drainingTimeoutSec")) { + if ("drainingTimeoutSec".equals(fieldName)) { return drainingTimeoutSec; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotDiskHttpRequest.java index 61bb82da6835..3cf1db077eec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -78,37 +78,37 @@ private CreateSnapshotDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("disk")) { + if ("disk".equals(fieldName)) { return disk; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("guestFlush")) { + if ("guestFlush".equals(fieldName)) { return guestFlush; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("snapshotResource")) { + if ("snapshotResource".equals(fieldName)) { return snapshotResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotRegionDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotRegionDiskHttpRequest.java index 394b1e60eccc..48ed8140ee2b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotRegionDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotRegionDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private CreateSnapshotRegionDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("disk")) { + if ("disk".equals(fieldName)) { return disk; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("snapshotResource")) { + if ("snapshotResource".equals(fieldName)) { return snapshotResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKey.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKey.java index 034853f15cce..71c34c8abb61 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKey.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,13 +43,13 @@ private CustomerEncryptionKey(String kmsKeyName, String rawKey, String sha256) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("kmsKeyName")) { + if ("kmsKeyName".equals(fieldName)) { return kmsKeyName; } - if (fieldName.equals("rawKey")) { + if ("rawKey".equals(fieldName)) { return rawKey; } - if (fieldName.equals("sha256")) { + if ("sha256".equals(fieldName)) { return sha256; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKeyProtectedDisk.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKeyProtectedDisk.java index 31796df11626..531c82c152cb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKeyProtectedDisk.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKeyProtectedDisk.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private CustomerEncryptionKeyProtectedDisk( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("diskEncryptionKey")) { + if ("diskEncryptionKey".equals(fieldName)) { return diskEncryptionKey; } - if (fieldName.equals("source")) { + if ("source".equals(fieldName)) { return source; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Data.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Data.java index d74b9ed54b52..8cc54dc55903 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Data.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Data.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private Data(String key, String value) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("value")) { + if ("value".equals(fieldName)) { return value; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAccessConfigInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAccessConfigInstanceHttpRequest.java index 0d0497c6c3a4..6d5b502ced55 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAccessConfigInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAccessConfigInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -78,37 +78,37 @@ private DeleteAccessConfigInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("accessConfig")) { + if ("accessConfig".equals(fieldName)) { return accessConfig; } - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("networkInterface")) { + if ("networkInterface".equals(fieldName)) { return networkInterface; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAddressHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAddressHttpRequest.java index 693eafccbf44..053bfc71206a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAddressHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAddressHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteAddressHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("address")) { + if ("address".equals(fieldName)) { return address; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAutoscalerHttpRequest.java index 0d0e58fd556a..5ed38ffb1a90 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAutoscalerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteAutoscalerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("autoscaler")) { + if ("autoscaler".equals(fieldName)) { return autoscaler; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendBucketHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendBucketHttpRequest.java index bdefaf6a5a18..416fa8083589 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendBucketHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendBucketHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteBackendBucketHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendBucket")) { + if ("backendBucket".equals(fieldName)) { return backendBucket; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendServiceHttpRequest.java index 36c2f268f09b..6ba314eaa2fb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendService")) { + if ("backendService".equals(fieldName)) { return backendService; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteDiskHttpRequest.java index 6f71d205d1ed..07f181745823 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("disk")) { + if ("disk".equals(fieldName)) { return disk; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteFirewallHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteFirewallHttpRequest.java index 170556e99284..e9ea6bd696dd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteFirewallHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteFirewallHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteFirewallHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("firewall")) { + if ("firewall".equals(fieldName)) { return firewall; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteForwardingRuleHttpRequest.java index 42e54201f856..38db0d5b0fa8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteForwardingRuleHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteForwardingRuleHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("forwardingRule")) { + if ("forwardingRule".equals(fieldName)) { return forwardingRule; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalAddressHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalAddressHttpRequest.java index b1106d5bb80e..b0931b74ac99 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalAddressHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalAddressHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteGlobalAddressHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("address")) { + if ("address".equals(fieldName)) { return address; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalForwardingRuleHttpRequest.java index 9035cee23212..eeba4f8b3fb9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalForwardingRuleHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteGlobalForwardingRuleHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("forwardingRule")) { + if ("forwardingRule".equals(fieldName)) { return forwardingRule; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalOperationHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalOperationHttpRequest.java index 6e092ff9013d..842577680fec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalOperationHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalOperationHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private DeleteGlobalOperationHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("operation")) { + if ("operation".equals(fieldName)) { return operation; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHealthCheckHttpRequest.java index 8d3a336d5895..8c0f7a334628 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("healthCheck")) { + if ("healthCheck".equals(fieldName)) { return healthCheck; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpHealthCheckHttpRequest.java index d349a48aa402..144afb9fa5dc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteHttpHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("httpHealthCheck")) { + if ("httpHealthCheck".equals(fieldName)) { return httpHealthCheck; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpsHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpsHealthCheckHttpRequest.java index 8152f210254e..4593c8bb10fc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpsHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpsHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteHttpsHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("httpsHealthCheck")) { + if ("httpsHealthCheck".equals(fieldName)) { return httpsHealthCheck; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteImageHttpRequest.java index c7553ecc3d21..4fb9487f10ac 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteImageHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteImageHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("image")) { + if ("image".equals(fieldName)) { return image; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupHttpRequest.java index 7493d25b35fb..a29efa1c8513 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteInstanceGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroup")) { + if ("instanceGroup".equals(fieldName)) { return instanceGroup; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupManagerHttpRequest.java index 45f5f6490909..75ac048b923e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceHttpRequest.java index 6f9a6197141f..76448ade6b12 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceTemplateHttpRequest.java index e1220a364c62..a121eb70cb50 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceTemplateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteInstanceTemplateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceTemplate")) { + if ("instanceTemplate".equals(fieldName)) { return instanceTemplate; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesInstanceGroupManagerHttpRequest.java index 3f87e1272557..3b8e3790405b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -77,34 +77,34 @@ private DeleteInstancesInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("instanceGroupManagersDeleteInstancesRequestResource")) { + if ("instanceGroupManagersDeleteInstancesRequestResource".equals(fieldName)) { return instanceGroupManagersDeleteInstancesRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesRegionInstanceGroupManagerHttpRequest.java index 45a0bd96edd6..e9b255410f0b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesRegionInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -77,34 +77,34 @@ private DeleteInstancesRegionInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("regionInstanceGroupManagersDeleteInstancesRequestResource")) { + if ("regionInstanceGroupManagersDeleteInstancesRequestResource".equals(fieldName)) { return regionInstanceGroupManagersDeleteInstancesRequestResource; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectAttachmentHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectAttachmentHttpRequest.java index 21d38965684f..e868eab4a693 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectAttachmentHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectAttachmentHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteInterconnectAttachmentHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("interconnectAttachment")) { + if ("interconnectAttachment".equals(fieldName)) { return interconnectAttachment; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectHttpRequest.java index f500dceac067..d3af7424f844 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteInterconnectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("interconnect")) { + if ("interconnect".equals(fieldName)) { return interconnect; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteLicenseHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteLicenseHttpRequest.java index 1b72506cf12b..953e9340b231 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteLicenseHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteLicenseHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteLicenseHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("license")) { + if ("license".equals(fieldName)) { return license; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNetworkHttpRequest.java index 7541e806787a..b3b0eddcd174 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteNetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeGroupHttpRequest.java index 8e77760475e5..99968d1ec00d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteNodeGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("nodeGroup")) { + if ("nodeGroup".equals(fieldName)) { return nodeGroup; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeTemplateHttpRequest.java index 6fad6d6ed887..09b05488cdc8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeTemplateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteNodeTemplateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("nodeTemplate")) { + if ("nodeTemplate".equals(fieldName)) { return nodeTemplate; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodesNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodesNodeGroupHttpRequest.java index cbe19576b777..255c1f1df81c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodesNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodesNodeGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private DeleteNodesNodeGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("nodeGroup")) { + if ("nodeGroup".equals(fieldName)) { return nodeGroup; } - if (fieldName.equals("nodeGroupsDeleteNodesRequestResource")) { + if ("nodeGroupsDeleteNodesRequestResource".equals(fieldName)) { return nodeGroupsDeleteNodesRequestResource; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionAutoscalerHttpRequest.java index 08cc13a54a85..a957091f06bf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionAutoscalerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteRegionAutoscalerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("autoscaler")) { + if ("autoscaler".equals(fieldName)) { return autoscaler; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendServiceHttpRequest.java index 008d140f7a38..5cf4de350a8e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteRegionBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendService")) { + if ("backendService".equals(fieldName)) { return backendService; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionDiskHttpRequest.java index e7711ba261bf..fd6abf1f2f7b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteRegionDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("disk")) { + if ("disk".equals(fieldName)) { return disk; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerHttpRequest.java index e11f8b34363a..05409d533f0b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteRegionInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionOperationHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionOperationHttpRequest.java index 6055704b364e..88d533fe3b4a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionOperationHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionOperationHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private DeleteRegionOperationHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("operation")) { + if ("operation".equals(fieldName)) { return operation; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouteHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouteHttpRequest.java index 386c7b765e77..37ab862ef318 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouteHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouteHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteRouteHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("route")) { + if ("route".equals(fieldName)) { return route; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouterHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouterHttpRequest.java index 5bd48ef27f22..166f6f59e912 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouterHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouterHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteRouterHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("router")) { + if ("router".equals(fieldName)) { return router; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSecurityPolicyHttpRequest.java index 1ba32b36964b..8a186a16cdd6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSecurityPolicyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteSecurityPolicyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("securityPolicy")) { + if ("securityPolicy".equals(fieldName)) { return securityPolicy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendBucketHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendBucketHttpRequest.java index 2897940b6645..e9f68994e525 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendBucketHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendBucketHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private DeleteSignedUrlKeyBackendBucketHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendBucket")) { + if ("backendBucket".equals(fieldName)) { return backendBucket; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("keyName")) { + if ("keyName".equals(fieldName)) { return keyName; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendServiceHttpRequest.java index ad269230da49..a4d7835de840 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private DeleteSignedUrlKeyBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendService")) { + if ("backendService".equals(fieldName)) { return backendService; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("keyName")) { + if ("keyName".equals(fieldName)) { return keyName; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSnapshotHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSnapshotHttpRequest.java index bd2cc210d568..32718d72114d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSnapshotHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSnapshotHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteSnapshotHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("snapshot")) { + if ("snapshot".equals(fieldName)) { return snapshot; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslCertificateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslCertificateHttpRequest.java index d73bc6c2785a..68a7f314b03f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslCertificateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslCertificateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteSslCertificateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("sslCertificate")) { + if ("sslCertificate".equals(fieldName)) { return sslCertificate; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslPolicyHttpRequest.java index 270a2dd6834e..71b392c695b9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslPolicyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteSslPolicyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("sslPolicy")) { + if ("sslPolicy".equals(fieldName)) { return sslPolicy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSubnetworkHttpRequest.java index 4270d7f84e8c..5b75f18fd09b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSubnetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteSubnetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("subnetwork")) { + if ("subnetwork".equals(fieldName)) { return subnetwork; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpProxyHttpRequest.java index 6b2928c2b241..79f5fa11d010 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteTargetHttpProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetHttpProxy")) { + if ("targetHttpProxy".equals(fieldName)) { return targetHttpProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpsProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpsProxyHttpRequest.java index 27f496359c10..bdb745de5f3f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpsProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpsProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteTargetHttpsProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetHttpsProxy")) { + if ("targetHttpsProxy".equals(fieldName)) { return targetHttpsProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetInstanceHttpRequest.java index 7c0999908eec..24e68c75c562 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteTargetInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetInstance")) { + if ("targetInstance".equals(fieldName)) { return targetInstance; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetPoolHttpRequest.java index aca94b513e81..7aa7989d6333 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetPoolHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteTargetPoolHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetPool")) { + if ("targetPool".equals(fieldName)) { return targetPool; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetSslProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetSslProxyHttpRequest.java index 645f7b594a81..cf2315ce1472 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetSslProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetSslProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteTargetSslProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetSslProxy")) { + if ("targetSslProxy".equals(fieldName)) { return targetSslProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetTcpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetTcpProxyHttpRequest.java index 76e48333d234..a73464205466 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetTcpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetTcpProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteTargetTcpProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetTcpProxy")) { + if ("targetTcpProxy".equals(fieldName)) { return targetTcpProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetVpnGatewayHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetVpnGatewayHttpRequest.java index bba660371155..c04e88ecfd81 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetVpnGatewayHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetVpnGatewayHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteTargetVpnGatewayHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetVpnGateway")) { + if ("targetVpnGateway".equals(fieldName)) { return targetVpnGateway; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteUrlMapHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteUrlMapHttpRequest.java index e4be6526e378..72bb8683b016 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteUrlMapHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteUrlMapHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteUrlMapHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("urlMap")) { + if ("urlMap".equals(fieldName)) { return urlMap; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteVpnTunnelHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteVpnTunnelHttpRequest.java index f886123d795a..d651b065c852 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteVpnTunnelHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteVpnTunnelHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DeleteVpnTunnelHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("vpnTunnel")) { + if ("vpnTunnel".equals(fieldName)) { return vpnTunnel; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteZoneOperationHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteZoneOperationHttpRequest.java index 40ddc56cdec5..68a5ae431259 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteZoneOperationHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteZoneOperationHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private DeleteZoneOperationHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("operation")) { + if ("operation".equals(fieldName)) { return operation; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Denied.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Denied.java index 09b997faed1d..51bbaa67b24f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Denied.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Denied.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.ApiMessage; +import com.google.gson.annotations.SerializedName; import java.util.LinkedList; import java.util.List; import java.util.Objects; @@ -26,7 +27,9 @@ @Generated("by GAPIC") @BetaApi public final class Denied implements ApiMessage { + @SerializedName("IPProtocol") private final String iPProtocol; + private final List ports; private Denied() { @@ -41,10 +44,10 @@ private Denied(String iPProtocol, List ports) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("iPProtocol")) { + if ("iPProtocol".equals(fieldName)) { return iPProtocol; } - if (fieldName.equals("ports")) { + if ("ports".equals(fieldName)) { return ports; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecateImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecateImageHttpRequest.java index fd9fbc338322..548f3a46e0c6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecateImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecateImageHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private DeprecateImageHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("deprecationStatusResource")) { + if ("deprecationStatusResource".equals(fieldName)) { return deprecationStatusResource; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("image")) { + if ("image".equals(fieldName)) { return image; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java index c0022caa6ff8..3db5e76c7fe8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,19 +50,19 @@ private DeprecationStatus( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("deleted")) { + if ("deleted".equals(fieldName)) { return deleted; } - if (fieldName.equals("deprecated")) { + if ("deprecated".equals(fieldName)) { return deprecated; } - if (fieldName.equals("obsolete")) { + if ("obsolete".equals(fieldName)) { return obsolete; } - if (fieldName.equals("replacement")) { + if ("replacement".equals(fieldName)) { return replacement; } - if (fieldName.equals("state")) { + if ("state".equals(fieldName)) { return state; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DetachDiskInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DetachDiskInstanceHttpRequest.java index e93c3ac9809f..886585951594 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DetachDiskInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DetachDiskInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private DetachDiskInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("deviceName")) { + if ("deviceName".equals(fieldName)) { return deviceName; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnHostProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnHostProjectHttpRequest.java index e99584fb3776..59728dd8dfc3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnHostProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnHostProjectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private DisableXpnHostProjectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnResourceProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnResourceProjectHttpRequest.java index 8338ca7c7a40..3f7ce8a87118 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnResourceProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnResourceProjectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private DisableXpnResourceProjectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("projectsDisableXpnResourceRequestResource")) { + if ("projectsDisableXpnResourceRequestResource".equals(fieldName)) { return projectsDisableXpnResourceRequestResource; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Disk.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Disk.java index d3ee3ffc678e..d5cfcfae5bf0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Disk.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Disk.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -152,91 +152,91 @@ private Disk( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("diskEncryptionKey")) { + if ("diskEncryptionKey".equals(fieldName)) { return diskEncryptionKey; } - if (fieldName.equals("guestOsFeatures")) { + if ("guestOsFeatures".equals(fieldName)) { return guestOsFeatures; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("labelFingerprint")) { + if ("labelFingerprint".equals(fieldName)) { return labelFingerprint; } - if (fieldName.equals("labels")) { + if ("labels".equals(fieldName)) { return labels; } - if (fieldName.equals("lastAttachTimestamp")) { + if ("lastAttachTimestamp".equals(fieldName)) { return lastAttachTimestamp; } - if (fieldName.equals("lastDetachTimestamp")) { + if ("lastDetachTimestamp".equals(fieldName)) { return lastDetachTimestamp; } - if (fieldName.equals("licenseCodes")) { + if ("licenseCodes".equals(fieldName)) { return licenseCodes; } - if (fieldName.equals("licenses")) { + if ("licenses".equals(fieldName)) { return licenses; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("options")) { + if ("options".equals(fieldName)) { return options; } - if (fieldName.equals("physicalBlockSizeBytes")) { + if ("physicalBlockSizeBytes".equals(fieldName)) { return physicalBlockSizeBytes; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("replicaZones")) { + if ("replicaZones".equals(fieldName)) { return replicaZones; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("sizeGb")) { + if ("sizeGb".equals(fieldName)) { return sizeGb; } - if (fieldName.equals("sourceImage")) { + if ("sourceImage".equals(fieldName)) { return sourceImage; } - if (fieldName.equals("sourceImageEncryptionKey")) { + if ("sourceImageEncryptionKey".equals(fieldName)) { return sourceImageEncryptionKey; } - if (fieldName.equals("sourceImageId")) { + if ("sourceImageId".equals(fieldName)) { return sourceImageId; } - if (fieldName.equals("sourceSnapshot")) { + if ("sourceSnapshot".equals(fieldName)) { return sourceSnapshot; } - if (fieldName.equals("sourceSnapshotEncryptionKey")) { + if ("sourceSnapshotEncryptionKey".equals(fieldName)) { return sourceSnapshotEncryptionKey; } - if (fieldName.equals("sourceSnapshotId")) { + if ("sourceSnapshotId".equals(fieldName)) { return sourceSnapshotId; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } - if (fieldName.equals("type")) { + if ("type".equals(fieldName)) { return type; } - if (fieldName.equals("users")) { + if ("users".equals(fieldName)) { return users; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskAggregatedList.java index e3254b1b0e23..f0f5e503e098 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private DiskAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java index 7c2247cb95b7..acad92e6aea4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskInstantiationConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskInstantiationConfig.java index 94855a2708da..58b651a317ed 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskInstantiationConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskInstantiationConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,16 +47,16 @@ private DiskInstantiationConfig( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("autoDelete")) { + if ("autoDelete".equals(fieldName)) { return autoDelete; } - if (fieldName.equals("customImage")) { + if ("customImage".equals(fieldName)) { return customImage; } - if (fieldName.equals("deviceName")) { + if ("deviceName".equals(fieldName)) { return deviceName; } - if (fieldName.equals("instantiateFrom")) { + if ("instantiateFrom".equals(fieldName)) { return instantiateFrom; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskList.java index 57c94c5297b5..f91a4af380ee 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private DiskList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskMoveRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskMoveRequest.java index a2883c8c4c96..6529028c6341 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskMoveRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskMoveRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private DiskMoveRequest(String destinationZone, String targetDisk) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("destinationZone")) { + if ("destinationZone".equals(fieldName)) { return destinationZone; } - if (fieldName.equals("targetDisk")) { + if ("targetDisk".equals(fieldName)) { return targetDisk; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskSettings.java index f387db537c73..d379ae074f9c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskType.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskType.java index 516285f6e775..4b40f7da18ad 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskType.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskType.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -78,37 +78,37 @@ private DiskType( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("defaultDiskSizeGb")) { + if ("defaultDiskSizeGb".equals(fieldName)) { return defaultDiskSizeGb; } - if (fieldName.equals("deprecated")) { + if ("deprecated".equals(fieldName)) { return deprecated; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("validDiskSize")) { + if ("validDiskSize".equals(fieldName)) { return validDiskSize; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeAggregatedList.java index 74b9171c6866..e20a982d4fba 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private DiskTypeAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java index 45a4d333921f..2edf71da0449 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeList.java index a59a167f827f..cf0188c59a77 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private DiskTypeList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeSettings.java index d264e25069a3..7ecb5c71dd9d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesScopedList.java index fe0767d4eda4..a4a374e3f329 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private DiskTypesScopedList(List diskTypes, Warning warning) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("diskTypes")) { + if ("diskTypes".equals(fieldName)) { return diskTypes; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksResizeRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksResizeRequest.java index 24b6df9cdd91..08a674e6f8e8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksResizeRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksResizeRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private DisksResizeRequest(String sizeGb) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("sizeGb")) { + if ("sizeGb".equals(fieldName)) { return sizeGb; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksScopedList.java index 170342f779f5..ba9e04c6e6e5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private DisksScopedList(List disks, Warning warning) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("disks")) { + if ("disks".equals(fieldName)) { return disks; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicy.java index 65f24d56abef..815d54610257 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private DistributionPolicy(List zones) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("zones")) { + if ("zones".equals(fieldName)) { return zones; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicyZoneConfiguration.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicyZoneConfiguration.java index a67e16a39b5c..e4c34ce44ac8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicyZoneConfiguration.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicyZoneConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private DistributionPolicyZoneConfiguration(String zone) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnHostProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnHostProjectHttpRequest.java index 439065cdbae3..40a782796495 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnHostProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnHostProjectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private EnableXpnHostProjectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnResourceProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnResourceProjectHttpRequest.java index 47b515ca4b1f..066285d79bdc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnResourceProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnResourceProjectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private EnableXpnResourceProjectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("projectsEnableXpnResourceRequestResource")) { + if ("projectsEnableXpnResourceRequestResource".equals(fieldName)) { return projectsEnableXpnResourceRequestResource; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Error.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Error.java index cd9bf54ac692..d9098205b9ce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Error.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Error.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private Error(List errors) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("errors")) { + if ("errors".equals(fieldName)) { return errors; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Errors.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Errors.java index 2c492e0b4846..c7498c0180c5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Errors.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Errors.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,13 +43,13 @@ private Errors(String code, String location, String message) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("code")) { + if ("code".equals(fieldName)) { return code; } - if (fieldName.equals("location")) { + if ("location".equals(fieldName)) { return location; } - if (fieldName.equals("message")) { + if ("message".equals(fieldName)) { return message; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExpandIpCidrRangeSubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExpandIpCidrRangeSubnetworkHttpRequest.java index e0d913f58a59..553f2219cd29 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExpandIpCidrRangeSubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExpandIpCidrRangeSubnetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private ExpandIpCidrRangeSubnetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("subnetwork")) { + if ("subnetwork".equals(fieldName)) { return subnetwork; } - if (fieldName.equals("subnetworksExpandIpCidrRangeRequestResource")) { + if ("subnetworksExpandIpCidrRangeRequestResource".equals(fieldName)) { return subnetworksExpandIpCidrRangeRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Expr.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Expr.java index 883d98d14a8d..4fc6d008b829 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Expr.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Expr.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,16 +46,16 @@ private Expr(String description, String expression, String location, String titl @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("expression")) { + if ("expression".equals(fieldName)) { return expression; } - if (fieldName.equals("location")) { + if ("location".equals(fieldName)) { return location; } - if (fieldName.equals("title")) { + if ("title".equals(fieldName)) { return title; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Firewall.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Firewall.java index 3c971ee584e5..1cc66d0ca924 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Firewall.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Firewall.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -111,61 +111,61 @@ private Firewall( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("allowed")) { + if ("allowed".equals(fieldName)) { return allowed; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("denied")) { + if ("denied".equals(fieldName)) { return denied; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("destinationRanges")) { + if ("destinationRanges".equals(fieldName)) { return destinationRanges; } - if (fieldName.equals("direction")) { + if ("direction".equals(fieldName)) { return direction; } - if (fieldName.equals("disabled")) { + if ("disabled".equals(fieldName)) { return disabled; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("logConfig")) { + if ("logConfig".equals(fieldName)) { return logConfig; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("priority")) { + if ("priority".equals(fieldName)) { return priority; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("sourceRanges")) { + if ("sourceRanges".equals(fieldName)) { return sourceRanges; } - if (fieldName.equals("sourceServiceAccounts")) { + if ("sourceServiceAccounts".equals(fieldName)) { return sourceServiceAccounts; } - if (fieldName.equals("sourceTags")) { + if ("sourceTags".equals(fieldName)) { return sourceTags; } - if (fieldName.equals("targetServiceAccounts")) { + if ("targetServiceAccounts".equals(fieldName)) { return targetServiceAccounts; } - if (fieldName.equals("targetTags")) { + if ("targetTags".equals(fieldName)) { return targetTags; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java index 0ccc05abc045..419257aa83ec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallList.java index 5e2059cffa2c..13dccaa88404 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private FirewallList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallLogConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallLogConfig.java index fc9d64a6d523..b5a3606f0808 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallLogConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallLogConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private FirewallLogConfig(Boolean enable) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("enable")) { + if ("enable".equals(fieldName)) { return enable; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallSettings.java index 2a0f327e0953..b5c7163a9e1b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRule.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRule.java index aabaa7170fe6..1f8380c42c0e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRule.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRule.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.ApiMessage; +import com.google.gson.annotations.SerializedName; import java.util.LinkedList; import java.util.List; import java.util.Objects; @@ -29,8 +30,13 @@ public final class ForwardingRule implements ApiMessage { private final String backendService; private final String creationTimestamp; private final String description; + + @SerializedName("IPAddress") private final String iPAddress; + + @SerializedName("IPProtocol") private final String iPProtocol; + private final String id; private final String ipVersion; private final String kind; @@ -107,58 +113,58 @@ private ForwardingRule( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("backendService")) { + if ("backendService".equals(fieldName)) { return backendService; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("iPAddress")) { + if ("iPAddress".equals(fieldName)) { return iPAddress; } - if (fieldName.equals("iPProtocol")) { + if ("iPProtocol".equals(fieldName)) { return iPProtocol; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("ipVersion")) { + if ("ipVersion".equals(fieldName)) { return ipVersion; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("loadBalancingScheme")) { + if ("loadBalancingScheme".equals(fieldName)) { return loadBalancingScheme; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("networkTier")) { + if ("networkTier".equals(fieldName)) { return networkTier; } - if (fieldName.equals("portRange")) { + if ("portRange".equals(fieldName)) { return portRange; } - if (fieldName.equals("ports")) { + if ("ports".equals(fieldName)) { return ports; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("subnetwork")) { + if ("subnetwork".equals(fieldName)) { return subnetwork; } - if (fieldName.equals("target")) { + if ("target".equals(fieldName)) { return target; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleAggregatedList.java index 1f25d325df24..091bc25300ad 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private ForwardingRuleAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java index a099c30a9b94..ba45653bc3ea 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleList.java index 636b7931cf75..4e23b050922e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private ForwardingRuleList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleSettings.java index a320220676d9..14f7413d3f60 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesScopedList.java index fdb5f17ca1c0..70bde46793ed 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private ForwardingRulesScopedList(List forwardingRules, Warning @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("forwardingRules")) { + if ("forwardingRules".equals(fieldName)) { return forwardingRules; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAcceleratorTypeHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAcceleratorTypeHttpRequest.java index 861c64ea1405..c1585f3bffa9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAcceleratorTypeHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAcceleratorTypeHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetAcceleratorTypeHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("acceleratorType")) { + if ("acceleratorType".equals(fieldName)) { return acceleratorType; } - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAddressHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAddressHttpRequest.java index 73e1b8de267c..3f0837a9be09 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAddressHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAddressHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetAddressHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("address")) { + if ("address".equals(fieldName)) { return address; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAutoscalerHttpRequest.java index 6dce224ca63f..af2eb6d962a9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAutoscalerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetAutoscalerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("autoscaler")) { + if ("autoscaler".equals(fieldName)) { return autoscaler; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendBucketHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendBucketHttpRequest.java index cf2e28002930..5e36f4713a97 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendBucketHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendBucketHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetBackendBucketHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendBucket")) { + if ("backendBucket".equals(fieldName)) { return backendBucket; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendServiceHttpRequest.java index 8d8ca9cbe9b4..9bc1e5f77472 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendService")) { + if ("backendService".equals(fieldName)) { return backendService; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiagnosticsInterconnectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiagnosticsInterconnectHttpRequest.java index d670e419bce6..05a1191ae80a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiagnosticsInterconnectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiagnosticsInterconnectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetDiagnosticsInterconnectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("interconnect")) { + if ("interconnect".equals(fieldName)) { return interconnect; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskHttpRequest.java index 3ed0f637b373..15250e1250b7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("disk")) { + if ("disk".equals(fieldName)) { return disk; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskTypeHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskTypeHttpRequest.java index dc59d19540bb..0a347fe62256 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskTypeHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskTypeHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetDiskTypeHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("diskType")) { + if ("diskType".equals(fieldName)) { return diskType; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFirewallHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFirewallHttpRequest.java index f7941097b523..b57bf274bcd3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFirewallHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFirewallHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetFirewallHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("firewall")) { + if ("firewall".equals(fieldName)) { return firewall; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetForwardingRuleHttpRequest.java index 72a30fbc8dda..f5070391b2cb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetForwardingRuleHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetForwardingRuleHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("forwardingRule")) { + if ("forwardingRule".equals(fieldName)) { return forwardingRule; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFromFamilyImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFromFamilyImageHttpRequest.java index cd3168370454..3a543d978e75 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFromFamilyImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFromFamilyImageHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetFromFamilyImageHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("family")) { + if ("family".equals(fieldName)) { return family; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalAddressHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalAddressHttpRequest.java index 9939700d0fdf..96a846e987b5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalAddressHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalAddressHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetGlobalAddressHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("address")) { + if ("address".equals(fieldName)) { return address; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalForwardingRuleHttpRequest.java index 499754896dc9..d0585449f90f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalForwardingRuleHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetGlobalForwardingRuleHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("forwardingRule")) { + if ("forwardingRule".equals(fieldName)) { return forwardingRule; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalOperationHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalOperationHttpRequest.java index d324b7e0b662..b40509de7a07 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalOperationHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalOperationHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetGlobalOperationHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("operation")) { + if ("operation".equals(fieldName)) { return operation; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthBackendServiceHttpRequest.java index de74c613666a..2a6de76bd93e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private GetHealthBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendService")) { + if ("backendService".equals(fieldName)) { return backendService; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resourceGroupReferenceResource")) { + if ("resourceGroupReferenceResource".equals(fieldName)) { return resourceGroupReferenceResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthCheckHttpRequest.java index f03de6e68a7a..c081e1b1237d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("healthCheck")) { + if ("healthCheck".equals(fieldName)) { return healthCheck; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthRegionBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthRegionBackendServiceHttpRequest.java index d2411b7e6995..40b1ec25a24c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthRegionBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthRegionBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private GetHealthRegionBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendService")) { + if ("backendService".equals(fieldName)) { return backendService; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resourceGroupReferenceResource")) { + if ("resourceGroupReferenceResource".equals(fieldName)) { return resourceGroupReferenceResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthTargetPoolHttpRequest.java index 80adbde9767e..c681471d36e7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthTargetPoolHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private GetHealthTargetPoolHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceReferenceResource")) { + if ("instanceReferenceResource".equals(fieldName)) { return instanceReferenceResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("targetPool")) { + if ("targetPool".equals(fieldName)) { return targetPool; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpHealthCheckHttpRequest.java index f15e79e68f9f..4de821dd4aa9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetHttpHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("httpHealthCheck")) { + if ("httpHealthCheck".equals(fieldName)) { return httpHealthCheck; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpsHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpsHealthCheckHttpRequest.java index 0df43e72848f..a8db326a99bf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpsHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpsHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetHttpsHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("httpsHealthCheck")) { + if ("httpsHealthCheck".equals(fieldName)) { return httpsHealthCheck; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyDiskHttpRequest.java index ea5c11c9686e..7d7ba440c071 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetIamPolicyDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyImageHttpRequest.java index 2d2947c91ab6..a50154c6cef0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyImageHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetIamPolicyImageHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceHttpRequest.java index 97a5060c04aa..0fa39a3be8cf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetIamPolicyInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceTemplateHttpRequest.java index b98f9537863c..39258fea86bf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceTemplateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetIamPolicyInstanceTemplateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyLicenseHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyLicenseHttpRequest.java index 07ab87f88007..fc4c05f38f8a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyLicenseHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyLicenseHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetIamPolicyLicenseHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeGroupHttpRequest.java index c443e0e37ac9..4ac7649ac465 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetIamPolicyNodeGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeTemplateHttpRequest.java index 6b446669ef27..adddbed4f1d0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeTemplateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetIamPolicyNodeTemplateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySnapshotHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySnapshotHttpRequest.java index 30c87d17c91c..f5243465e9fb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySnapshotHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySnapshotHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetIamPolicySnapshotHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySubnetworkHttpRequest.java index 53219277b576..f6f99fabe30f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySubnetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetIamPolicySubnetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetImageHttpRequest.java index 159c4c597af0..bae98d7f0454 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetImageHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetImageHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("image")) { + if ("image".equals(fieldName)) { return image; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupHttpRequest.java index a3ea3a0b3819..4eb437c42cab 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetInstanceGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroup")) { + if ("instanceGroup".equals(fieldName)) { return instanceGroup; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupManagerHttpRequest.java index 1ec4366a7463..69357fd9d89d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceHttpRequest.java index 40609939618e..3eecd260044c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceTemplateHttpRequest.java index 6a605d45dd6d..dc0ed484b345 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceTemplateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetInstanceTemplateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceTemplate")) { + if ("instanceTemplate".equals(fieldName)) { return instanceTemplate; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectAttachmentHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectAttachmentHttpRequest.java index 6b32b78e607c..4aacd06109c0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectAttachmentHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectAttachmentHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetInterconnectAttachmentHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("interconnectAttachment")) { + if ("interconnectAttachment".equals(fieldName)) { return interconnectAttachment; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectHttpRequest.java index 2c8ec025066d..e484c90727a7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetInterconnectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("interconnect")) { + if ("interconnect".equals(fieldName)) { return interconnect; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectLocationHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectLocationHttpRequest.java index 5c4f2c3d6990..c96548dd6df8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectLocationHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectLocationHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetInterconnectLocationHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("interconnectLocation")) { + if ("interconnectLocation".equals(fieldName)) { return interconnectLocation; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseCodeHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseCodeHttpRequest.java index 34e074261a60..e8a243e1733c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseCodeHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseCodeHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetLicenseCodeHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("licenseCode")) { + if ("licenseCode".equals(fieldName)) { return licenseCode; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseHttpRequest.java index cb6cddb8ab7c..636a7f85093e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetLicenseHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("license")) { + if ("license".equals(fieldName)) { return license; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetMachineTypeHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetMachineTypeHttpRequest.java index 5af4426b2ed9..d80387613493 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetMachineTypeHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetMachineTypeHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetMachineTypeHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("machineType")) { + if ("machineType".equals(fieldName)) { return machineType; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNatMappingInfoRoutersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNatMappingInfoRoutersHttpRequest.java index 221a45d082f5..d3bafeb45daa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNatMappingInfoRoutersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNatMappingInfoRoutersHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private GetNatMappingInfoRoutersHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("router")) { + if ("router".equals(fieldName)) { return router; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNetworkHttpRequest.java index 6dbe5865035a..48bcd15628f3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetNetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeGroupHttpRequest.java index a1c59cc87164..19287cd7526b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetNodeGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("nodeGroup")) { + if ("nodeGroup".equals(fieldName)) { return nodeGroup; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTemplateHttpRequest.java index 3cc2991d2cb9..4b575036388f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTemplateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetNodeTemplateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("nodeTemplate")) { + if ("nodeTemplate".equals(fieldName)) { return nodeTemplate; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTypeHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTypeHttpRequest.java index f4388afd78e9..921ef687d465 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTypeHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTypeHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetNodeTypeHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("nodeType")) { + if ("nodeType".equals(fieldName)) { return nodeType; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetProjectHttpRequest.java index ea0958bef2a4..5aecf28b5a51 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetProjectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetProjectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionAutoscalerHttpRequest.java index a7a2a7ab473c..12fcd849bd8e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionAutoscalerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetRegionAutoscalerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("autoscaler")) { + if ("autoscaler".equals(fieldName)) { return autoscaler; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionBackendServiceHttpRequest.java index 32dc24e1172b..8898b3d31586 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetRegionBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendService")) { + if ("backendService".equals(fieldName)) { return backendService; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionCommitmentHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionCommitmentHttpRequest.java index 4e5eb300c90d..d0043b2886ae 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionCommitmentHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionCommitmentHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetRegionCommitmentHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("commitment")) { + if ("commitment".equals(fieldName)) { return commitment; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskHttpRequest.java index c3f4e636a34a..6076d7b29f22 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetRegionDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("disk")) { + if ("disk".equals(fieldName)) { return disk; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskTypeHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskTypeHttpRequest.java index f1a0ca9dcec6..9b255eebbde5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskTypeHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskTypeHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetRegionDiskTypeHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("diskType")) { + if ("diskType".equals(fieldName)) { return diskType; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionHttpRequest.java index e6a53479cce3..0320a396bb3f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetRegionHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupHttpRequest.java index bd32752142b1..6ab9ae30d81b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetRegionInstanceGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroup")) { + if ("instanceGroup".equals(fieldName)) { return instanceGroup; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerHttpRequest.java index d53a58c42f46..6afbb31d2072 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetRegionInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionOperationHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionOperationHttpRequest.java index 9354e73dc6c3..049172581b7e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionOperationHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionOperationHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetRegionOperationHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("operation")) { + if ("operation".equals(fieldName)) { return operation; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouteHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouteHttpRequest.java index 91f70cc51d78..9aa1a8b472dc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouteHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouteHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetRouteHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("route")) { + if ("route".equals(fieldName)) { return route; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterHttpRequest.java index 2da040ec96e3..f0ff7add5784 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetRouterHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("router")) { + if ("router".equals(fieldName)) { return router; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterStatusRouterHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterStatusRouterHttpRequest.java index b359cd4020be..6132f4f002db 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterStatusRouterHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterStatusRouterHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetRouterStatusRouterHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("router")) { + if ("router".equals(fieldName)) { return router; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRuleSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRuleSecurityPolicyHttpRequest.java index 46ec1b28eb63..09384704b119 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRuleSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRuleSecurityPolicyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private GetRuleSecurityPolicyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("priority")) { + if ("priority".equals(fieldName)) { return priority; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("securityPolicy")) { + if ("securityPolicy".equals(fieldName)) { return securityPolicy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSecurityPolicyHttpRequest.java index 0cab721fc061..d7d259959f59 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSecurityPolicyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetSecurityPolicyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("securityPolicy")) { + if ("securityPolicy".equals(fieldName)) { return securityPolicy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceHttpRequest.java index 9ee831ed202b..d877d31d9de8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private GetSerialPortOutputInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("port")) { + if ("port".equals(fieldName)) { return port; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("start")) { + if ("start".equals(fieldName)) { return start; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSnapshotHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSnapshotHttpRequest.java index 5b0822171072..ab1e701ee575 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSnapshotHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSnapshotHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetSnapshotHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("snapshot")) { + if ("snapshot".equals(fieldName)) { return snapshot; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslCertificateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslCertificateHttpRequest.java index f5e8b0c99aa7..714ab4125e71 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslCertificateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslCertificateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetSslCertificateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("sslCertificate")) { + if ("sslCertificate".equals(fieldName)) { return sslCertificate; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslPolicyHttpRequest.java index 6e7dd8c3f033..c394c0639f8e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslPolicyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetSslPolicyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("sslPolicy")) { + if ("sslPolicy".equals(fieldName)) { return sslPolicy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSubnetworkHttpRequest.java index 32037a6780d0..bb20e29642e5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSubnetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetSubnetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("subnetwork")) { + if ("subnetwork".equals(fieldName)) { return subnetwork; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpProxyHttpRequest.java index e62b679f239b..d0edf3f0b656 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetTargetHttpProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("targetHttpProxy")) { + if ("targetHttpProxy".equals(fieldName)) { return targetHttpProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpsProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpsProxyHttpRequest.java index 501ec52d64b2..5dfabe44903d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpsProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpsProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetTargetHttpsProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("targetHttpsProxy")) { + if ("targetHttpsProxy".equals(fieldName)) { return targetHttpsProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetInstanceHttpRequest.java index 9ef98bb1b6d3..275dbcc382ca 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetTargetInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("targetInstance")) { + if ("targetInstance".equals(fieldName)) { return targetInstance; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetPoolHttpRequest.java index 1b37944d89f9..1401a9e66244 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetPoolHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetTargetPoolHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("targetPool")) { + if ("targetPool".equals(fieldName)) { return targetPool; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetSslProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetSslProxyHttpRequest.java index 547104a99a25..ea27cc513178 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetSslProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetSslProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetTargetSslProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("targetSslProxy")) { + if ("targetSslProxy".equals(fieldName)) { return targetSslProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetTcpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetTcpProxyHttpRequest.java index add3781e55d5..9c96dad7caac 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetTcpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetTcpProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetTargetTcpProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("targetTcpProxy")) { + if ("targetTcpProxy".equals(fieldName)) { return targetTcpProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetVpnGatewayHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetVpnGatewayHttpRequest.java index b37f4baf5e50..0e75356b7c3f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetVpnGatewayHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetVpnGatewayHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetTargetVpnGatewayHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("targetVpnGateway")) { + if ("targetVpnGateway".equals(fieldName)) { return targetVpnGateway; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetUrlMapHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetUrlMapHttpRequest.java index af52761d6aa8..cda2e7ed55a0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetUrlMapHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetUrlMapHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetUrlMapHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("urlMap")) { + if ("urlMap".equals(fieldName)) { return urlMap; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetVpnTunnelHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetVpnTunnelHttpRequest.java index ed991eda312e..6f3d3b2ac117 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetVpnTunnelHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetVpnTunnelHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetVpnTunnelHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("vpnTunnel")) { + if ("vpnTunnel".equals(fieldName)) { return vpnTunnel; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnHostProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnHostProjectHttpRequest.java index f163158b66f4..027557d2f483 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnHostProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnHostProjectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetXpnHostProjectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnResourcesProjectsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnResourcesProjectsHttpRequest.java index b053e307ed0c..a0fccd66726e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnResourcesProjectsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnResourcesProjectsHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private GetXpnResourcesProjectsHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("filter")) { + if ("filter".equals(fieldName)) { return filter; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("maxResults")) { + if ("maxResults".equals(fieldName)) { return maxResults; } - if (fieldName.equals("orderBy")) { + if ("orderBy".equals(fieldName)) { return orderBy; } - if (fieldName.equals("pageToken")) { + if ("pageToken".equals(fieldName)) { return pageToken; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneHttpRequest.java index 3232d136a0d3..3b66616396a7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetZoneHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneOperationHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneOperationHttpRequest.java index bd5fd02a5146..5fb4da909532 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneOperationHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneOperationHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private GetZoneOperationHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("operation")) { + if ("operation".equals(fieldName)) { return operation; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java index a5b3e2bb3dc2..9aa48d06041f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressSettings.java index 07dc9b12dd06..7539e81ce69a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java index a37a4525eadc..64156dde5424 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleSettings.java index c4b6840ccfc5..acec8173719d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java index b033aec9633c..cf3ff11bfbfe 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationSettings.java index 8ef2ca882dd6..51772546798b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetLabelsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetLabelsRequest.java index 3c1184f61e5f..a26c792ee44c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetLabelsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetLabelsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private GlobalSetLabelsRequest(String labelFingerprint, Map labe @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("labelFingerprint")) { + if ("labelFingerprint".equals(fieldName)) { return labelFingerprint; } - if (fieldName.equals("labels")) { + if ("labels".equals(fieldName)) { return labels; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetPolicyRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetPolicyRequest.java index 1b4fa06d2019..a7384bb75cac 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetPolicyRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,13 +44,13 @@ private GlobalSetPolicyRequest(List bindings, String etag, Policy polic @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("bindings")) { + if ("bindings".equals(fieldName)) { return bindings; } - if (fieldName.equals("etag")) { + if ("etag".equals(fieldName)) { return etag; } - if (fieldName.equals("policy")) { + if ("policy".equals(fieldName)) { return policy; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GuestOsFeature.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GuestOsFeature.java index 22ec52f78ce5..6b59fa06c2ac 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GuestOsFeature.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GuestOsFeature.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private GuestOsFeature(String type) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("type")) { + if ("type".equals(fieldName)) { return type; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheck.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheck.java index a7c925ef69ab..88bdfc719a47 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheck.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheck.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -94,49 +94,49 @@ private HealthCheck( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("checkIntervalSec")) { + if ("checkIntervalSec".equals(fieldName)) { return checkIntervalSec; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("healthyThreshold")) { + if ("healthyThreshold".equals(fieldName)) { return healthyThreshold; } - if (fieldName.equals("httpHealthCheck")) { + if ("httpHealthCheck".equals(fieldName)) { return httpHealthCheck; } - if (fieldName.equals("httpsHealthCheck")) { + if ("httpsHealthCheck".equals(fieldName)) { return httpsHealthCheck; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("sslHealthCheck")) { + if ("sslHealthCheck".equals(fieldName)) { return sslHealthCheck; } - if (fieldName.equals("tcpHealthCheck")) { + if ("tcpHealthCheck".equals(fieldName)) { return tcpHealthCheck; } - if (fieldName.equals("timeoutSec")) { + if ("timeoutSec".equals(fieldName)) { return timeoutSec; } - if (fieldName.equals("type")) { + if ("type".equals(fieldName)) { return type; } - if (fieldName.equals("unhealthyThreshold")) { + if ("unhealthyThreshold".equals(fieldName)) { return unhealthyThreshold; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java index 2f2476e61bdc..05e323c0cd94 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckList.java index 450fd8a00238..5cc52cfc92a5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private HealthCheckList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckReference.java index a32982dbe395..a5140d50c5e8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckReference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private HealthCheckReference(String healthCheck) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("healthCheck")) { + if ("healthCheck".equals(fieldName)) { return healthCheck; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckSettings.java index 26d932ce81f8..f10e60d3cff0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthStatus.java index b70aabb2e31e..8f98563a36f4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,16 +46,16 @@ private HealthStatus(String healthState, String instance, String ipAddress, Inte @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("healthState")) { + if ("healthState".equals(fieldName)) { return healthState; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("ipAddress")) { + if ("ipAddress".equals(fieldName)) { return ipAddress; } - if (fieldName.equals("port")) { + if ("port".equals(fieldName)) { return port; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HostRule.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HostRule.java index ff96ed62d8cd..2bc70f9be5f5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HostRule.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HostRule.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,13 +44,13 @@ private HostRule(String description, List hosts, String pathMatcher) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("hosts")) { + if ("hosts".equals(fieldName)) { return hosts; } - if (fieldName.equals("pathMatcher")) { + if ("pathMatcher".equals(fieldName)) { return pathMatcher; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck.java index 62fc0e5b3437..f5a76afd301c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,22 +58,22 @@ private HttpHealthCheck( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("host")) { + if ("host".equals(fieldName)) { return host; } - if (fieldName.equals("port")) { + if ("port".equals(fieldName)) { return port; } - if (fieldName.equals("portName")) { + if ("portName".equals(fieldName)) { return portName; } - if (fieldName.equals("proxyHeader")) { + if ("proxyHeader".equals(fieldName)) { return proxyHeader; } - if (fieldName.equals("requestPath")) { + if ("requestPath".equals(fieldName)) { return requestPath; } - if (fieldName.equals("response")) { + if ("response".equals(fieldName)) { return response; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck2.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck2.java index 315a881cebd4..26ccb2b41f19 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck2.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck2.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -86,43 +86,43 @@ private HttpHealthCheck2( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("checkIntervalSec")) { + if ("checkIntervalSec".equals(fieldName)) { return checkIntervalSec; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("healthyThreshold")) { + if ("healthyThreshold".equals(fieldName)) { return healthyThreshold; } - if (fieldName.equals("host")) { + if ("host".equals(fieldName)) { return host; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("port")) { + if ("port".equals(fieldName)) { return port; } - if (fieldName.equals("requestPath")) { + if ("requestPath".equals(fieldName)) { return requestPath; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("timeoutSec")) { + if ("timeoutSec".equals(fieldName)) { return timeoutSec; } - if (fieldName.equals("unhealthyThreshold")) { + if ("unhealthyThreshold".equals(fieldName)) { return unhealthyThreshold; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java index d28d27df6a28..6679f6e219fc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckList.java index 95eb22ea6028..9950ca361d7d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private HttpHealthCheckList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckSettings.java index 889c5a7a07db..f352d44fd012 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpSHealthCheck.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpSHealthCheck.java index 3eb3d32cd09c..dbf56d315f81 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpSHealthCheck.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpSHealthCheck.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,22 +58,22 @@ private HttpSHealthCheck( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("host")) { + if ("host".equals(fieldName)) { return host; } - if (fieldName.equals("port")) { + if ("port".equals(fieldName)) { return port; } - if (fieldName.equals("portName")) { + if ("portName".equals(fieldName)) { return portName; } - if (fieldName.equals("proxyHeader")) { + if ("proxyHeader".equals(fieldName)) { return proxyHeader; } - if (fieldName.equals("requestPath")) { + if ("requestPath".equals(fieldName)) { return requestPath; } - if (fieldName.equals("response")) { + if ("response".equals(fieldName)) { return response; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheck2.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheck2.java index 704fe75934c8..e34452f09ab9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheck2.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheck2.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -86,43 +86,43 @@ private HttpsHealthCheck2( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("checkIntervalSec")) { + if ("checkIntervalSec".equals(fieldName)) { return checkIntervalSec; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("healthyThreshold")) { + if ("healthyThreshold".equals(fieldName)) { return healthyThreshold; } - if (fieldName.equals("host")) { + if ("host".equals(fieldName)) { return host; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("port")) { + if ("port".equals(fieldName)) { return port; } - if (fieldName.equals("requestPath")) { + if ("requestPath".equals(fieldName)) { return requestPath; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("timeoutSec")) { + if ("timeoutSec".equals(fieldName)) { return timeoutSec; } - if (fieldName.equals("unhealthyThreshold")) { + if ("unhealthyThreshold".equals(fieldName)) { return unhealthyThreshold; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java index 645f7b8a1256..9a1cfa86921d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckList.java index b26bfebc3461..614c351219ef 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private HttpsHealthCheckList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckSettings.java index 9aedc09a5232..9451ef907783 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Image.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Image.java index fe5d645900e3..a50140253b98 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Image.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Image.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -148,88 +148,88 @@ private Image( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("archiveSizeBytes")) { + if ("archiveSizeBytes".equals(fieldName)) { return archiveSizeBytes; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("deprecated")) { + if ("deprecated".equals(fieldName)) { return deprecated; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("diskSizeGb")) { + if ("diskSizeGb".equals(fieldName)) { return diskSizeGb; } - if (fieldName.equals("family")) { + if ("family".equals(fieldName)) { return family; } - if (fieldName.equals("guestOsFeatures")) { + if ("guestOsFeatures".equals(fieldName)) { return guestOsFeatures; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("imageEncryptionKey")) { + if ("imageEncryptionKey".equals(fieldName)) { return imageEncryptionKey; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("labelFingerprint")) { + if ("labelFingerprint".equals(fieldName)) { return labelFingerprint; } - if (fieldName.equals("labels")) { + if ("labels".equals(fieldName)) { return labels; } - if (fieldName.equals("licenseCodes")) { + if ("licenseCodes".equals(fieldName)) { return licenseCodes; } - if (fieldName.equals("licenses")) { + if ("licenses".equals(fieldName)) { return licenses; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("rawDisk")) { + if ("rawDisk".equals(fieldName)) { return rawDisk; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("sourceDisk")) { + if ("sourceDisk".equals(fieldName)) { return sourceDisk; } - if (fieldName.equals("sourceDiskEncryptionKey")) { + if ("sourceDiskEncryptionKey".equals(fieldName)) { return sourceDiskEncryptionKey; } - if (fieldName.equals("sourceDiskId")) { + if ("sourceDiskId".equals(fieldName)) { return sourceDiskId; } - if (fieldName.equals("sourceImage")) { + if ("sourceImage".equals(fieldName)) { return sourceImage; } - if (fieldName.equals("sourceImageEncryptionKey")) { + if ("sourceImageEncryptionKey".equals(fieldName)) { return sourceImageEncryptionKey; } - if (fieldName.equals("sourceImageId")) { + if ("sourceImageId".equals(fieldName)) { return sourceImageId; } - if (fieldName.equals("sourceSnapshot")) { + if ("sourceSnapshot".equals(fieldName)) { return sourceSnapshot; } - if (fieldName.equals("sourceSnapshotEncryptionKey")) { + if ("sourceSnapshotEncryptionKey".equals(fieldName)) { return sourceSnapshotEncryptionKey; } - if (fieldName.equals("sourceSnapshotId")) { + if ("sourceSnapshotId".equals(fieldName)) { return sourceSnapshotId; } - if (fieldName.equals("sourceType")) { + if ("sourceType".equals(fieldName)) { return sourceType; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java index 1c32b7ea0f87..cdef2a1d21b7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageList.java index cbd043ed11b3..c924f8143e5d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private ImageList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageSettings.java index b6f98f554857..97f9d48dcbb0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAddressHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAddressHttpRequest.java index 44854ff6fb49..a6ec5c61ee10 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAddressHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAddressHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertAddressHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("addressResource")) { + if ("addressResource".equals(fieldName)) { return addressResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAutoscalerHttpRequest.java index 3d82ab72a020..85b3005a13bb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAutoscalerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertAutoscalerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("autoscalerResource")) { + if ("autoscalerResource".equals(fieldName)) { return autoscalerResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendBucketHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendBucketHttpRequest.java index f2416257483e..3d1012ced19d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendBucketHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendBucketHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertBackendBucketHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendBucketResource")) { + if ("backendBucketResource".equals(fieldName)) { return backendBucketResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendServiceHttpRequest.java index 7bdaa1185c4f..fb70928c65ec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendServiceResource")) { + if ("backendServiceResource".equals(fieldName)) { return backendServiceResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertDiskHttpRequest.java index aa60ae6b958c..ca190c47a3d8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -78,37 +78,37 @@ private InsertDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("diskResource")) { + if ("diskResource".equals(fieldName)) { return diskResource; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("sourceImage")) { + if ("sourceImage".equals(fieldName)) { return sourceImage; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertFirewallHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertFirewallHttpRequest.java index b3894dc14e7d..402cace30083 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertFirewallHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertFirewallHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertFirewallHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("firewallResource")) { + if ("firewallResource".equals(fieldName)) { return firewallResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertForwardingRuleHttpRequest.java index 5ac102ea2b9d..40d6fea574e3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertForwardingRuleHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertForwardingRuleHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("forwardingRuleResource")) { + if ("forwardingRuleResource".equals(fieldName)) { return forwardingRuleResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalAddressHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalAddressHttpRequest.java index 8494ba87d2b7..7583e38333a6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalAddressHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalAddressHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertGlobalAddressHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("addressResource")) { + if ("addressResource".equals(fieldName)) { return addressResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalForwardingRuleHttpRequest.java index ffc889f6a054..0ceec79abbf7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalForwardingRuleHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertGlobalForwardingRuleHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("forwardingRuleResource")) { + if ("forwardingRuleResource".equals(fieldName)) { return forwardingRuleResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHealthCheckHttpRequest.java index e49d8f2d47b7..a845e0069b4b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("healthCheckResource")) { + if ("healthCheckResource".equals(fieldName)) { return healthCheckResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpHealthCheckHttpRequest.java index aa6e4e2dbc5d..c965469abbbf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertHttpHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("httpHealthCheckResource")) { + if ("httpHealthCheckResource".equals(fieldName)) { return httpHealthCheckResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpsHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpsHealthCheckHttpRequest.java index 64ebaef619e6..a687c406c39e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpsHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpsHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertHttpsHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("httpsHealthCheckResource")) { + if ("httpsHealthCheckResource".equals(fieldName)) { return httpsHealthCheckResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertImageHttpRequest.java index fc5fe51b948b..a17a51409f3b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertImageHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -78,37 +78,37 @@ private InsertImageHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("forceCreate")) { + if ("forceCreate".equals(fieldName)) { return forceCreate; } - if (fieldName.equals("imageResource")) { + if ("imageResource".equals(fieldName)) { return imageResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupHttpRequest.java index 31d5d8febca0..9c1cab08ead3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertInstanceGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupResource")) { + if ("instanceGroupResource".equals(fieldName)) { return instanceGroupResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupManagerHttpRequest.java index 869aeaa40d7d..86fcda59cf89 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManagerResource")) { + if ("instanceGroupManagerResource".equals(fieldName)) { return instanceGroupManagerResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceHttpRequest.java index 0a110a065c7e..f9f808784e33 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -78,37 +78,37 @@ private InsertInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceResource")) { + if ("instanceResource".equals(fieldName)) { return instanceResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("sourceInstanceTemplate")) { + if ("sourceInstanceTemplate".equals(fieldName)) { return sourceInstanceTemplate; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceTemplateHttpRequest.java index 950f30b9ee45..28dd14624a82 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceTemplateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertInstanceTemplateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceTemplateResource")) { + if ("instanceTemplateResource".equals(fieldName)) { return instanceTemplateResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectAttachmentHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectAttachmentHttpRequest.java index 8a3e6df68c91..583c8c608787 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectAttachmentHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectAttachmentHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertInterconnectAttachmentHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("interconnectAttachmentResource")) { + if ("interconnectAttachmentResource".equals(fieldName)) { return interconnectAttachmentResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectHttpRequest.java index 9402cf686fc4..9f59164733df 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertInterconnectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("interconnectResource")) { + if ("interconnectResource".equals(fieldName)) { return interconnectResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertLicenseHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertLicenseHttpRequest.java index 577888b8f703..a7995286a44c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertLicenseHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertLicenseHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertLicenseHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("licenseResource")) { + if ("licenseResource".equals(fieldName)) { return licenseResource; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNetworkHttpRequest.java index 1c765b0db7a5..73e4a50b9046 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertNetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("networkResource")) { + if ("networkResource".equals(fieldName)) { return networkResource; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeGroupHttpRequest.java index bae7c2901ed1..b13ac7ded318 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -78,37 +78,37 @@ private InsertNodeGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("initialNodeCount")) { + if ("initialNodeCount".equals(fieldName)) { return initialNodeCount; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("nodeGroupResource")) { + if ("nodeGroupResource".equals(fieldName)) { return nodeGroupResource; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeTemplateHttpRequest.java index 4a0446866a32..2e2acc6796d7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeTemplateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertNodeTemplateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("nodeTemplateResource")) { + if ("nodeTemplateResource".equals(fieldName)) { return nodeTemplateResource; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionAutoscalerHttpRequest.java index 6f68a3783cb2..0a0f64331b7b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionAutoscalerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertRegionAutoscalerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("autoscalerResource")) { + if ("autoscalerResource".equals(fieldName)) { return autoscalerResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendServiceHttpRequest.java index f85f6024141f..19d28c1dbee2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertRegionBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendServiceResource")) { + if ("backendServiceResource".equals(fieldName)) { return backendServiceResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionCommitmentHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionCommitmentHttpRequest.java index b2ac2c51f6a6..b3d980f99255 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionCommitmentHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionCommitmentHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertRegionCommitmentHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("commitmentResource")) { + if ("commitmentResource".equals(fieldName)) { return commitmentResource; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionDiskHttpRequest.java index 410d10f9dfe2..d5c93e66cfd2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -78,37 +78,37 @@ private InsertRegionDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("diskResource")) { + if ("diskResource".equals(fieldName)) { return diskResource; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("sourceImage")) { + if ("sourceImage".equals(fieldName)) { return sourceImage; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerHttpRequest.java index 7e4b4df953c9..1b36ab601a10 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertRegionInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManagerResource")) { + if ("instanceGroupManagerResource".equals(fieldName)) { return instanceGroupManagerResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouteHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouteHttpRequest.java index ef13fefe5651..67a746f01bc8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouteHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouteHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertRouteHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("routeResource")) { + if ("routeResource".equals(fieldName)) { return routeResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouterHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouterHttpRequest.java index 73648b655089..c59278b8aa9c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouterHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouterHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertRouterHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("routerResource")) { + if ("routerResource".equals(fieldName)) { return routerResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSecurityPolicyHttpRequest.java index e4281da1109f..2e17f2bfe875 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSecurityPolicyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertSecurityPolicyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("securityPolicyResource")) { + if ("securityPolicyResource".equals(fieldName)) { return securityPolicyResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslCertificateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslCertificateHttpRequest.java index 6eaf2ac78ddb..6d98b3ce2a2a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslCertificateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslCertificateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertSslCertificateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("sslCertificateResource")) { + if ("sslCertificateResource".equals(fieldName)) { return sslCertificateResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslPolicyHttpRequest.java index 1bb69f83736c..f2a9523226d5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslPolicyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertSslPolicyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("sslPolicyResource")) { + if ("sslPolicyResource".equals(fieldName)) { return sslPolicyResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSubnetworkHttpRequest.java index 2db72649e1a8..0739b50e13a7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSubnetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertSubnetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("subnetworkResource")) { + if ("subnetworkResource".equals(fieldName)) { return subnetworkResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpProxyHttpRequest.java index 0954f10a7667..1f7814a7db18 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertTargetHttpProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetHttpProxyResource")) { + if ("targetHttpProxyResource".equals(fieldName)) { return targetHttpProxyResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpsProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpsProxyHttpRequest.java index af8b42abc271..28e102ae6a04 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpsProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpsProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertTargetHttpsProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetHttpsProxyResource")) { + if ("targetHttpsProxyResource".equals(fieldName)) { return targetHttpsProxyResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetInstanceHttpRequest.java index c6b44391a95e..63189ef89174 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertTargetInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetInstanceResource")) { + if ("targetInstanceResource".equals(fieldName)) { return targetInstanceResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetPoolHttpRequest.java index 42353932d5b9..9f3a8738bea6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetPoolHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertTargetPoolHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetPoolResource")) { + if ("targetPoolResource".equals(fieldName)) { return targetPoolResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetSslProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetSslProxyHttpRequest.java index 8edac35f2e7d..8597dc538c76 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetSslProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetSslProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertTargetSslProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetSslProxyResource")) { + if ("targetSslProxyResource".equals(fieldName)) { return targetSslProxyResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetTcpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetTcpProxyHttpRequest.java index c77a843b7fa4..0aefd24e2803 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetTcpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetTcpProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertTargetTcpProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetTcpProxyResource")) { + if ("targetTcpProxyResource".equals(fieldName)) { return targetTcpProxyResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetVpnGatewayHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetVpnGatewayHttpRequest.java index 9ebec84e2861..027d5cb0cc67 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetVpnGatewayHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetVpnGatewayHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertTargetVpnGatewayHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetVpnGatewayResource")) { + if ("targetVpnGatewayResource".equals(fieldName)) { return targetVpnGatewayResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertUrlMapHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertUrlMapHttpRequest.java index 0a4fd9b8895f..471c6b1af6ba 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertUrlMapHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertUrlMapHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertUrlMapHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("urlMapResource")) { + if ("urlMapResource".equals(fieldName)) { return urlMapResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertVpnTunnelHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertVpnTunnelHttpRequest.java index d99f43f1896e..1b213e7b6486 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertVpnTunnelHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertVpnTunnelHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private InsertVpnTunnelHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("vpnTunnelResource")) { + if ("vpnTunnelResource".equals(fieldName)) { return vpnTunnelResource; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Instance.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Instance.java index db87714459cf..7ed4fbd231f0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Instance.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Instance.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -136,79 +136,79 @@ private Instance( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("canIpForward")) { + if ("canIpForward".equals(fieldName)) { return canIpForward; } - if (fieldName.equals("cpuPlatform")) { + if ("cpuPlatform".equals(fieldName)) { return cpuPlatform; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("deletionProtection")) { + if ("deletionProtection".equals(fieldName)) { return deletionProtection; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("disks")) { + if ("disks".equals(fieldName)) { return disks; } - if (fieldName.equals("guestAccelerators")) { + if ("guestAccelerators".equals(fieldName)) { return guestAccelerators; } - if (fieldName.equals("hostname")) { + if ("hostname".equals(fieldName)) { return hostname; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("labelFingerprint")) { + if ("labelFingerprint".equals(fieldName)) { return labelFingerprint; } - if (fieldName.equals("labels")) { + if ("labels".equals(fieldName)) { return labels; } - if (fieldName.equals("machineType")) { + if ("machineType".equals(fieldName)) { return machineType; } - if (fieldName.equals("metadata")) { + if ("metadata".equals(fieldName)) { return metadata; } - if (fieldName.equals("minCpuPlatform")) { + if ("minCpuPlatform".equals(fieldName)) { return minCpuPlatform; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("networkInterfaces")) { + if ("networkInterfaces".equals(fieldName)) { return networkInterfaces; } - if (fieldName.equals("scheduling")) { + if ("scheduling".equals(fieldName)) { return scheduling; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("serviceAccounts")) { + if ("serviceAccounts".equals(fieldName)) { return serviceAccounts; } - if (fieldName.equals("startRestricted")) { + if ("startRestricted".equals(fieldName)) { return startRestricted; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } - if (fieldName.equals("statusMessage")) { + if ("statusMessage".equals(fieldName)) { return statusMessage; } - if (fieldName.equals("tags")) { + if ("tags".equals(fieldName)) { return tags; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceAggregatedList.java index 520c4fd90d89..de66a78d297e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private InstanceAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java index f124c328c9da..f2bd3aa3b502 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroup.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroup.java index 93e8e1d6db30..b9411a7ecca9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroup.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroup.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,43 +87,43 @@ private InstanceGroup( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("fingerprint")) { + if ("fingerprint".equals(fieldName)) { return fingerprint; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("namedPorts")) { + if ("namedPorts".equals(fieldName)) { return namedPorts; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("size")) { + if ("size".equals(fieldName)) { return size; } - if (fieldName.equals("subnetwork")) { + if ("subnetwork".equals(fieldName)) { return subnetwork; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupAggregatedList.java index ccf256b918a3..a516b7b62596 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private InstanceGroupAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java index a5f0fcaced4a..11efff7ab9d4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupList.java index d0032ffa53d1..8712fc6d66bd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private InstanceGroupList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java index 1a445955a6da..1b8b68a106b2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -107,58 +107,58 @@ private InstanceGroupManager( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("autoHealingPolicies")) { + if ("autoHealingPolicies".equals(fieldName)) { return autoHealingPolicies; } - if (fieldName.equals("baseInstanceName")) { + if ("baseInstanceName".equals(fieldName)) { return baseInstanceName; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("currentActions")) { + if ("currentActions".equals(fieldName)) { return currentActions; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("distributionPolicy")) { + if ("distributionPolicy".equals(fieldName)) { return distributionPolicy; } - if (fieldName.equals("fingerprint")) { + if ("fingerprint".equals(fieldName)) { return fingerprint; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("instanceGroup")) { + if ("instanceGroup".equals(fieldName)) { return instanceGroup; } - if (fieldName.equals("instanceTemplate")) { + if ("instanceTemplate".equals(fieldName)) { return instanceTemplate; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("namedPorts")) { + if ("namedPorts".equals(fieldName)) { return namedPorts; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("targetPools")) { + if ("targetPools".equals(fieldName)) { return targetPools; } - if (fieldName.equals("targetSize")) { + if ("targetSize".equals(fieldName)) { return targetSize; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummary.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummary.java index d192cf844bdd..22696ec34eec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummary.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private InstanceGroupManagerActionsSummary( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("abandoning")) { + if ("abandoning".equals(fieldName)) { return abandoning; } - if (fieldName.equals("creating")) { + if ("creating".equals(fieldName)) { return creating; } - if (fieldName.equals("creatingWithoutRetries")) { + if ("creatingWithoutRetries".equals(fieldName)) { return creatingWithoutRetries; } - if (fieldName.equals("deleting")) { + if ("deleting".equals(fieldName)) { return deleting; } - if (fieldName.equals("none")) { + if ("none".equals(fieldName)) { return none; } - if (fieldName.equals("recreating")) { + if ("recreating".equals(fieldName)) { return recreating; } - if (fieldName.equals("refreshing")) { + if ("refreshing".equals(fieldName)) { return refreshing; } - if (fieldName.equals("restarting")) { + if ("restarting".equals(fieldName)) { return restarting; } - if (fieldName.equals("verifying")) { + if ("verifying".equals(fieldName)) { return verifying; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAggregatedList.java index 3f69694136f6..3c2dc17edfb5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private InstanceGroupManagerAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAutoHealingPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAutoHealingPolicy.java index b6913aa6f81c..83bd6010bd25 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAutoHealingPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAutoHealingPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private InstanceGroupManagerAutoHealingPolicy(String healthCheck, Integer initia @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("healthCheck")) { + if ("healthCheck".equals(fieldName)) { return healthCheck; } - if (fieldName.equals("initialDelaySec")) { + if ("initialDelaySec".equals(fieldName)) { return initialDelaySec; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java index 0217c7f8dfb6..72165023ca75 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerList.java index be00b16bc278..2cbde662078d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private InstanceGroupManagerList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java index 7dd79f24d336..fc81da5b7b32 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersAbandonInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersAbandonInstancesRequest.java index 1f83ead049d7..6d3972e9c44b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersAbandonInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersAbandonInstancesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private InstanceGroupManagersAbandonInstancesRequest(List instances) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instances")) { + if ("instances".equals(fieldName)) { return instances; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersDeleteInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersDeleteInstancesRequest.java index e77d4972364f..ace1e968e539 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersDeleteInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersDeleteInstancesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private InstanceGroupManagersDeleteInstancesRequest(List instances) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instances")) { + if ("instances".equals(fieldName)) { return instances; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersListManagedInstancesResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersListManagedInstancesResponse.java index c30627cdfdf1..0602359285e2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersListManagedInstancesResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersListManagedInstancesResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -39,7 +39,7 @@ private InstanceGroupManagersListManagedInstancesResponse( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("managedInstances")) { + if ("managedInstances".equals(fieldName)) { return managedInstances; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersRecreateInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersRecreateInstancesRequest.java index 399f1b8ce149..f1a6f3cda28a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersRecreateInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersRecreateInstancesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private InstanceGroupManagersRecreateInstancesRequest(List instances) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instances")) { + if ("instances".equals(fieldName)) { return instances; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersScopedList.java index 59a64bb82d66..0c8834f7774e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,10 +42,10 @@ private InstanceGroupManagersScopedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instanceGroupManagers")) { + if ("instanceGroupManagers".equals(fieldName)) { return instanceGroupManagers; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetInstanceTemplateRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetInstanceTemplateRequest.java index a5a25c5e287b..4ac231621c24 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetInstanceTemplateRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetInstanceTemplateRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private InstanceGroupManagersSetInstanceTemplateRequest(String instanceTemplate) @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instanceTemplate")) { + if ("instanceTemplate".equals(fieldName)) { return instanceTemplate; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetTargetPoolsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetTargetPoolsRequest.java index 3543ca8cead8..f8e761258525 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetTargetPoolsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetTargetPoolsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private InstanceGroupManagersSetTargetPoolsRequest(String fingerprint, List instances) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instances")) { + if ("instances".equals(fieldName)) { return instances; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstances.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstances.java index a6c6e93a2983..282d08c7d00c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstances.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstances.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private InstanceGroupsListInstances( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstancesRequest.java index 84f5a6944f18..5c70d106459e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstancesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private InstanceGroupsListInstancesRequest(String instanceState) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instanceState")) { + if ("instanceState".equals(fieldName)) { return instanceState; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsRemoveInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsRemoveInstancesRequest.java index 711aeadded80..4dc9e1ee11d5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsRemoveInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsRemoveInstancesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private InstanceGroupsRemoveInstancesRequest(List instances) @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instances")) { + if ("instances".equals(fieldName)) { return instances; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsScopedList.java index 0daae19be719..d0086228d91c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private InstanceGroupsScopedList(List instanceGroups, Warning war @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instanceGroups")) { + if ("instanceGroups".equals(fieldName)) { return instanceGroups; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsSetNamedPortsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsSetNamedPortsRequest.java index 328cae71674f..021b431a309b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsSetNamedPortsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsSetNamedPortsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private InstanceGroupsSetNamedPortsRequest(String fingerprint, List n @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("fingerprint")) { + if ("fingerprint".equals(fieldName)) { return fingerprint; } - if (fieldName.equals("namedPorts")) { + if ("namedPorts".equals(fieldName)) { return namedPorts; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceList.java index e4bb877c8fc1..abe8f6db0ad9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private InstanceList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceListReferrers.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceListReferrers.java index 98b01c4f8757..c86bc0de725b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceListReferrers.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceListReferrers.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private InstanceListReferrers( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceMoveRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceMoveRequest.java index 88ff621565a8..bee05f9d8bcd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceMoveRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceMoveRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private InstanceMoveRequest(String destinationZone, String targetInstance) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("destinationZone")) { + if ("destinationZone".equals(fieldName)) { return destinationZone; } - if (fieldName.equals("targetInstance")) { + if ("targetInstance".equals(fieldName)) { return targetInstance; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceProperties.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceProperties.java index 6bac3705036e..7cb1dc03d55c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceProperties.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceProperties.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -84,40 +84,40 @@ private InstanceProperties( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("canIpForward")) { + if ("canIpForward".equals(fieldName)) { return canIpForward; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("disks")) { + if ("disks".equals(fieldName)) { return disks; } - if (fieldName.equals("guestAccelerators")) { + if ("guestAccelerators".equals(fieldName)) { return guestAccelerators; } - if (fieldName.equals("labels")) { + if ("labels".equals(fieldName)) { return labels; } - if (fieldName.equals("machineType")) { + if ("machineType".equals(fieldName)) { return machineType; } - if (fieldName.equals("metadata")) { + if ("metadata".equals(fieldName)) { return metadata; } - if (fieldName.equals("minCpuPlatform")) { + if ("minCpuPlatform".equals(fieldName)) { return minCpuPlatform; } - if (fieldName.equals("networkInterfaces")) { + if ("networkInterfaces".equals(fieldName)) { return networkInterfaces; } - if (fieldName.equals("scheduling")) { + if ("scheduling".equals(fieldName)) { return scheduling; } - if (fieldName.equals("serviceAccounts")) { + if ("serviceAccounts".equals(fieldName)) { return serviceAccounts; } - if (fieldName.equals("tags")) { + if ("tags".equals(fieldName)) { return tags; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceReference.java index c535675b686e..bc073a3c35bb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceReference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private InstanceReference(String instance) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java index 4b97344f305f..b4c674af0497 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplate.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplate.java index 8207dc5e8318..0d7098630f54 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplate.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplate.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private InstanceTemplate( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("properties")) { + if ("properties".equals(fieldName)) { return properties; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("sourceInstance")) { + if ("sourceInstance".equals(fieldName)) { return sourceInstance; } - if (fieldName.equals("sourceInstanceParams")) { + if ("sourceInstanceParams".equals(fieldName)) { return sourceInstanceParams; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java index cfdb8d7cc3f8..9c2db2c3a0ce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateList.java index b6978f880b20..22b5a0875af2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private InstanceTemplateList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateSettings.java index 8669dcb98da0..c0d0c456d451 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceWithNamedPorts.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceWithNamedPorts.java index 1de1660357ed..02b4cecca0a4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceWithNamedPorts.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceWithNamedPorts.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,13 +44,13 @@ private InstanceWithNamedPorts(String instance, List namedPorts, Stri @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("namedPorts")) { + if ("namedPorts".equals(fieldName)) { return namedPorts; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesScopedList.java index fd0b8765b8f5..c797dbe34141 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private InstancesScopedList(List instances, Warning warning) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instances")) { + if ("instances".equals(fieldName)) { return instances; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetLabelsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetLabelsRequest.java index 2cc3bef69f5e..3e6b0881320c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetLabelsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetLabelsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private InstancesSetLabelsRequest(String labelFingerprint, Map l @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("labelFingerprint")) { + if ("labelFingerprint".equals(fieldName)) { return labelFingerprint; } - if (fieldName.equals("labels")) { + if ("labels".equals(fieldName)) { return labels; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineResourcesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineResourcesRequest.java index 555b46f8e74c..c81d4dee1d29 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineResourcesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineResourcesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private InstancesSetMachineResourcesRequest(List guestAcceler @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("guestAccelerators")) { + if ("guestAccelerators".equals(fieldName)) { return guestAccelerators; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineTypeRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineTypeRequest.java index a62184708523..6938cd79d50e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineTypeRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineTypeRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private InstancesSetMachineTypeRequest(String machineType) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("machineType")) { + if ("machineType".equals(fieldName)) { return machineType; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMinCpuPlatformRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMinCpuPlatformRequest.java index dc4dc20ceb8e..35b02d1742cd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMinCpuPlatformRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMinCpuPlatformRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private InstancesSetMinCpuPlatformRequest(String minCpuPlatform) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("minCpuPlatform")) { + if ("minCpuPlatform".equals(fieldName)) { return minCpuPlatform; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetServiceAccountRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetServiceAccountRequest.java index cfd7b8b759f0..ecf213d4aaf8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetServiceAccountRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetServiceAccountRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private InstancesSetServiceAccountRequest(String email, List scopes) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("email")) { + if ("email".equals(fieldName)) { return email; } - if (fieldName.equals("scopes")) { + if ("scopes".equals(fieldName)) { return scopes; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesStartWithEncryptionKeyRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesStartWithEncryptionKeyRequest.java index a74a49608705..5ef6a56602ba 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesStartWithEncryptionKeyRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesStartWithEncryptionKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private InstancesStartWithEncryptionKeyRequest(List machineTypes, Warning warning) @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("machineTypes")) { + if ("machineTypes".equals(fieldName)) { return machineTypes; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstance.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstance.java index 29e6d18ac983..46762286bc35 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstance.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -54,19 +54,19 @@ private ManagedInstance( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("currentAction")) { + if ("currentAction".equals(fieldName)) { return currentAction; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("instanceStatus")) { + if ("instanceStatus".equals(fieldName)) { return instanceStatus; } - if (fieldName.equals("lastAttempt")) { + if ("lastAttempt".equals(fieldName)) { return lastAttempt; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstanceLastAttempt.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstanceLastAttempt.java index a6c4ddf12359..9d5af52adf39 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstanceLastAttempt.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstanceLastAttempt.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private ManagedInstanceLastAttempt(Errors errors) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("errors")) { + if ("errors".equals(fieldName)) { return errors; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Metadata.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Metadata.java index 07791b0ea58e..8b62e9b8a4a4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Metadata.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Metadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,13 +44,13 @@ private Metadata(String fingerprint, List items, String kind) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("fingerprint")) { + if ("fingerprint".equals(fieldName)) { return fingerprint; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveDiskProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveDiskProjectHttpRequest.java index c95d807b2326..a49b8b982ae6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveDiskProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveDiskProjectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private MoveDiskProjectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("diskMoveRequestResource")) { + if ("diskMoveRequestResource".equals(fieldName)) { return diskMoveRequestResource; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveInstanceProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveInstanceProjectHttpRequest.java index 63cd98cdf273..83935a87432d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveInstanceProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveInstanceProjectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private MoveInstanceProjectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceMoveRequestResource")) { + if ("instanceMoveRequestResource".equals(fieldName)) { return instanceMoveRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NamedPort.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NamedPort.java index 00a11aaee175..1d1dcec1a9dd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NamedPort.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NamedPort.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private NamedPort(String name, Integer port) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("port")) { + if ("port".equals(fieldName)) { return port; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Network.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Network.java index 1fb358eecce3..a315c8d78154 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Network.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Network.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.ApiMessage; +import com.google.gson.annotations.SerializedName; import java.util.LinkedList; import java.util.List; import java.util.Objects; @@ -30,7 +31,10 @@ public final class Network implements ApiMessage { private final String creationTimestamp; private final String description; private final String gatewayIPv4; + + @SerializedName("IPv4Range") private final String iPv4Range; + private final String id; private final String kind; private final String name; @@ -83,40 +87,40 @@ private Network( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("autoCreateSubnetworks")) { + if ("autoCreateSubnetworks".equals(fieldName)) { return autoCreateSubnetworks; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("gatewayIPv4")) { + if ("gatewayIPv4".equals(fieldName)) { return gatewayIPv4; } - if (fieldName.equals("iPv4Range")) { + if ("iPv4Range".equals(fieldName)) { return iPv4Range; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("peerings")) { + if ("peerings".equals(fieldName)) { return peerings; } - if (fieldName.equals("routingConfig")) { + if ("routingConfig".equals(fieldName)) { return routingConfig; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("subnetworks")) { + if ("subnetworks".equals(fieldName)) { return subnetworks; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java index 2e145d3328f4..0647272d43eb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java index 862917ef2859..caae20606c22 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -67,28 +67,28 @@ private NetworkInterface( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("accessConfigs")) { + if ("accessConfigs".equals(fieldName)) { return accessConfigs; } - if (fieldName.equals("aliasIpRanges")) { + if ("aliasIpRanges".equals(fieldName)) { return aliasIpRanges; } - if (fieldName.equals("fingerprint")) { + if ("fingerprint".equals(fieldName)) { return fingerprint; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("networkIP")) { + if ("networkIP".equals(fieldName)) { return networkIP; } - if (fieldName.equals("subnetwork")) { + if ("subnetwork".equals(fieldName)) { return subnetwork; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkList.java index 9f3244d69c9a..8695b18db360 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private NetworkList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkPeering.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkPeering.java index 358916af8b13..326c77b22d4f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkPeering.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkPeering.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,19 +50,19 @@ private NetworkPeering( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("autoCreateRoutes")) { + if ("autoCreateRoutes".equals(fieldName)) { return autoCreateRoutes; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("state")) { + if ("state".equals(fieldName)) { return state; } - if (fieldName.equals("stateDetails")) { + if ("stateDetails".equals(fieldName)) { return stateDetails; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfig.java index fee7e20c4536..13dd96235d34 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private NetworkRoutingConfig(String routingMode) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("routingMode")) { + if ("routingMode".equals(fieldName)) { return routingMode; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkSettings.java index 68dce009848f..8dc4a8f0a96e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksAddPeeringRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksAddPeeringRequest.java index c70d12129013..af7b8d70fdff 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksAddPeeringRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksAddPeeringRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,13 +43,13 @@ private NetworksAddPeeringRequest(Boolean autoCreateRoutes, String name, String @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("autoCreateRoutes")) { + if ("autoCreateRoutes".equals(fieldName)) { return autoCreateRoutes; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("peerNetwork")) { + if ("peerNetwork".equals(fieldName)) { return peerNetwork; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksRemovePeeringRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksRemovePeeringRequest.java index 397a37cef130..34166d7caccc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksRemovePeeringRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksRemovePeeringRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private NetworksRemovePeeringRequest(String name) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroup.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroup.java index 026d24640901..be9f0040a8e2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroup.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroup.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private NodeGroup( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("nodeTemplate")) { + if ("nodeTemplate".equals(fieldName)) { return nodeTemplate; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("size")) { + if ("size".equals(fieldName)) { return size; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupAggregatedList.java index 2bc5c80cb031..c5cb249f1d55 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private NodeGroupAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java index 980786a857a0..706aaaebb4ac 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupList.java index e342b0b0ebb1..450296e37a0d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private NodeGroupList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupNode.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupNode.java index 9995f246161b..f981664668a4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupNode.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,16 +47,16 @@ private NodeGroupNode(List instances, String name, String nodeType, Stri @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instances")) { + if ("instances".equals(fieldName)) { return instances; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("nodeType")) { + if ("nodeType".equals(fieldName)) { return nodeType; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupSettings.java index 88c8abf2d5e5..e613c3c34d9e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsAddNodesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsAddNodesRequest.java index cd30709cfcf7..f48042182445 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsAddNodesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsAddNodesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private NodeGroupsAddNodesRequest(Integer additionalNodeCount) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("additionalNodeCount")) { + if ("additionalNodeCount".equals(fieldName)) { return additionalNodeCount; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsDeleteNodesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsDeleteNodesRequest.java index 0be377b320ad..35a198eae382 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsDeleteNodesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsDeleteNodesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private NodeGroupsDeleteNodesRequest(List nodes) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("nodes")) { + if ("nodes".equals(fieldName)) { return nodes; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsListNodes.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsListNodes.java index 634b07ae8f2d..7db8a93459eb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsListNodes.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsListNodes.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private NodeGroupsListNodes( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsScopedList.java index 211cf7180881..e0607488ad1c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private NodeGroupsScopedList(List nodeGroups, Warning warning) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("nodeGroups")) { + if ("nodeGroups".equals(fieldName)) { return nodeGroups; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsSetNodeTemplateRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsSetNodeTemplateRequest.java index 23ac44b47122..b640b9faa027 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsSetNodeTemplateRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsSetNodeTemplateRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private NodeGroupsSetNodeTemplateRequest(String nodeTemplate) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("nodeTemplate")) { + if ("nodeTemplate".equals(fieldName)) { return nodeTemplate; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplate.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplate.java index 147d292b9658..dcc1c3d00277 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplate.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplate.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,40 +83,40 @@ private NodeTemplate( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("nodeAffinityLabels")) { + if ("nodeAffinityLabels".equals(fieldName)) { return nodeAffinityLabels; } - if (fieldName.equals("nodeType")) { + if ("nodeType".equals(fieldName)) { return nodeType; } - if (fieldName.equals("nodeTypeFlexibility")) { + if ("nodeTypeFlexibility".equals(fieldName)) { return nodeTypeFlexibility; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } - if (fieldName.equals("statusMessage")) { + if ("statusMessage".equals(fieldName)) { return statusMessage; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateAggregatedList.java index 4910879e246b..f115d2e75a32 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private NodeTemplateAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java index 1d511200ce88..698632e89990 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateList.java index 21f93618d15f..64e8b3c32f73 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private NodeTemplateList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateNodeTypeFlexibility.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateNodeTypeFlexibility.java index 27b2095425c5..7edffab5aba3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateNodeTypeFlexibility.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateNodeTypeFlexibility.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,13 +43,13 @@ private NodeTemplateNodeTypeFlexibility(String cpus, String localSsd, String mem @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("cpus")) { + if ("cpus".equals(fieldName)) { return cpus; } - if (fieldName.equals("localSsd")) { + if ("localSsd".equals(fieldName)) { return localSsd; } - if (fieldName.equals("memory")) { + if ("memory".equals(fieldName)) { return memory; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateSettings.java index 15bbb3efcf5f..ee9fe5d8b719 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesScopedList.java index c701dd941a2e..72bebcfb70a3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private NodeTemplatesScopedList(List nodeTemplates, Warning warnin @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("nodeTemplates")) { + if ("nodeTemplates".equals(fieldName)) { return nodeTemplates; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeType.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeType.java index 0b4af8f65098..6373cf7e5b62 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeType.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeType.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,40 +82,40 @@ private NodeType( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("cpuPlatform")) { + if ("cpuPlatform".equals(fieldName)) { return cpuPlatform; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("deprecated")) { + if ("deprecated".equals(fieldName)) { return deprecated; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("guestCpus")) { + if ("guestCpus".equals(fieldName)) { return guestCpus; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("localSsdGb")) { + if ("localSsdGb".equals(fieldName)) { return localSsdGb; } - if (fieldName.equals("memoryMb")) { + if ("memoryMb".equals(fieldName)) { return memoryMb; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeAggregatedList.java index 54ebcd889c93..3eb1e2a4ce98 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private NodeTypeAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeClient.java index 5ba68d5ac9c1..3d133f475301 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeList.java index fce0b82991a7..8c9729b75c6f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private NodeTypeList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeSettings.java index 0769a2ac0a34..ee6994e2c61f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesScopedList.java index 6b06fd320478..c1409a525602 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private NodeTypesScopedList(List nodeTypes, Warning warning) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("nodeTypes")) { + if ("nodeTypes".equals(fieldName)) { return nodeTypes; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java index 42275cde5fca..1ade2d0ec825 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -127,73 +127,73 @@ private Operation( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("clientOperationId")) { + if ("clientOperationId".equals(fieldName)) { return clientOperationId; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("endTime")) { + if ("endTime".equals(fieldName)) { return endTime; } - if (fieldName.equals("error")) { + if ("error".equals(fieldName)) { return error; } - if (fieldName.equals("httpErrorMessage")) { + if ("httpErrorMessage".equals(fieldName)) { return httpErrorMessage; } - if (fieldName.equals("httpErrorStatusCode")) { + if ("httpErrorStatusCode".equals(fieldName)) { return httpErrorStatusCode; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("insertTime")) { + if ("insertTime".equals(fieldName)) { return insertTime; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("operationType")) { + if ("operationType".equals(fieldName)) { return operationType; } - if (fieldName.equals("progress")) { + if ("progress".equals(fieldName)) { return progress; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("startTime")) { + if ("startTime".equals(fieldName)) { return startTime; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } - if (fieldName.equals("statusMessage")) { + if ("statusMessage".equals(fieldName)) { return statusMessage; } - if (fieldName.equals("targetId")) { + if ("targetId".equals(fieldName)) { return targetId; } - if (fieldName.equals("targetLink")) { + if ("targetLink".equals(fieldName)) { return targetLink; } - if (fieldName.equals("user")) { + if ("user".equals(fieldName)) { return user; } - if (fieldName.equals("warnings")) { + if ("warnings".equals(fieldName)) { return warnings; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationAggregatedList.java index 29bdd2229966..f992f3f88e54 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private OperationAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationList.java index a0dab6ff1a20..ca87ac0063af 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private OperationList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationsScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationsScopedList.java index 2b63e977209a..e60eaa2b00e8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationsScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationsScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private OperationsScopedList(List operations, Warning warning) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("operations")) { + if ("operations".equals(fieldName)) { return operations; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchAutoscalerHttpRequest.java index a198ddc7a21f..41200d3b2f7f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchAutoscalerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,40 +83,40 @@ private PatchAutoscalerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("autoscaler")) { + if ("autoscaler".equals(fieldName)) { return autoscaler; } - if (fieldName.equals("autoscalerResource")) { + if ("autoscalerResource".equals(fieldName)) { return autoscalerResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendBucketHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendBucketHttpRequest.java index 01062e0cff7a..b8580a08a209 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendBucketHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendBucketHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchBackendBucketHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendBucket")) { + if ("backendBucket".equals(fieldName)) { return backendBucket; } - if (fieldName.equals("backendBucketResource")) { + if ("backendBucketResource".equals(fieldName)) { return backendBucketResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendServiceHttpRequest.java index 15025fb9e72c..2fde051d8b92 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendService")) { + if ("backendService".equals(fieldName)) { return backendService; } - if (fieldName.equals("backendServiceResource")) { + if ("backendServiceResource".equals(fieldName)) { return backendServiceResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchFirewallHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchFirewallHttpRequest.java index 6c5cc468db89..db6967de5d5a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchFirewallHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchFirewallHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchFirewallHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("firewall")) { + if ("firewall".equals(fieldName)) { return firewall; } - if (fieldName.equals("firewallResource")) { + if ("firewallResource".equals(fieldName)) { return firewallResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHealthCheckHttpRequest.java index 6976ff03ba11..5fba02ae3e2d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("healthCheck")) { + if ("healthCheck".equals(fieldName)) { return healthCheck; } - if (fieldName.equals("healthCheckResource")) { + if ("healthCheckResource".equals(fieldName)) { return healthCheckResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpHealthCheckHttpRequest.java index db5ec18c1a03..f24aaf7f1346 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchHttpHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("httpHealthCheck")) { + if ("httpHealthCheck".equals(fieldName)) { return httpHealthCheck; } - if (fieldName.equals("httpHealthCheckResource")) { + if ("httpHealthCheckResource".equals(fieldName)) { return httpHealthCheckResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpsHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpsHealthCheckHttpRequest.java index eb4bd3a6e4da..e514278892c1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpsHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpsHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchHttpsHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("httpsHealthCheck")) { + if ("httpsHealthCheck".equals(fieldName)) { return httpsHealthCheck; } - if (fieldName.equals("httpsHealthCheckResource")) { + if ("httpsHealthCheckResource".equals(fieldName)) { return httpsHealthCheckResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInstanceGroupManagerHttpRequest.java index ef33175c2ec1..5ed775ae3b76 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("instanceGroupManagerResource")) { + if ("instanceGroupManagerResource".equals(fieldName)) { return instanceGroupManagerResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectAttachmentHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectAttachmentHttpRequest.java index 260d91ddf112..32a2ee8c9b3d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectAttachmentHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectAttachmentHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchInterconnectAttachmentHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("interconnectAttachment")) { + if ("interconnectAttachment".equals(fieldName)) { return interconnectAttachment; } - if (fieldName.equals("interconnectAttachmentResource")) { + if ("interconnectAttachmentResource".equals(fieldName)) { return interconnectAttachmentResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectHttpRequest.java index d1ab9f2dde63..0d22d5809668 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchInterconnectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("interconnect")) { + if ("interconnect".equals(fieldName)) { return interconnect; } - if (fieldName.equals("interconnectResource")) { + if ("interconnectResource".equals(fieldName)) { return interconnectResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchNetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchNetworkHttpRequest.java index 57a5725f3d63..e5a79745593a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchNetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchNetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchNetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("networkResource")) { + if ("networkResource".equals(fieldName)) { return networkResource; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionAutoscalerHttpRequest.java index eb060b60a519..31ff8b580be5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionAutoscalerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,40 +83,40 @@ private PatchRegionAutoscalerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("autoscaler")) { + if ("autoscaler".equals(fieldName)) { return autoscaler; } - if (fieldName.equals("autoscalerResource")) { + if ("autoscalerResource".equals(fieldName)) { return autoscalerResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendServiceHttpRequest.java index 6257c7d0072b..9c08f8d657e2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchRegionBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendService")) { + if ("backendService".equals(fieldName)) { return backendService; } - if (fieldName.equals("backendServiceResource")) { + if ("backendServiceResource".equals(fieldName)) { return backendServiceResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionInstanceGroupManagerHttpRequest.java index 1639520cefe4..94ec44de135c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchRegionInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("instanceGroupManagerResource")) { + if ("instanceGroupManagerResource".equals(fieldName)) { return instanceGroupManagerResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRouterHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRouterHttpRequest.java index 1bfd0ca1d663..24168c528cfd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRouterHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRouterHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchRouterHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("router")) { + if ("router".equals(fieldName)) { return router; } - if (fieldName.equals("routerResource")) { + if ("routerResource".equals(fieldName)) { return routerResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRuleSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRuleSecurityPolicyHttpRequest.java index 33f98a768827..8314f98c852e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRuleSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRuleSecurityPolicyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private PatchRuleSecurityPolicyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("priority")) { + if ("priority".equals(fieldName)) { return priority; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("securityPolicy")) { + if ("securityPolicy".equals(fieldName)) { return securityPolicy; } - if (fieldName.equals("securityPolicyRuleResource")) { + if ("securityPolicyRuleResource".equals(fieldName)) { return securityPolicyRuleResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSecurityPolicyHttpRequest.java index 65cb5625422a..517557b93afc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSecurityPolicyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchSecurityPolicyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("securityPolicy")) { + if ("securityPolicy".equals(fieldName)) { return securityPolicy; } - if (fieldName.equals("securityPolicyResource")) { + if ("securityPolicyResource".equals(fieldName)) { return securityPolicyResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSslPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSslPolicyHttpRequest.java index 60a6d1a6fc91..237f64d2c66c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSslPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSslPolicyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchSslPolicyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("sslPolicy")) { + if ("sslPolicy".equals(fieldName)) { return sslPolicy; } - if (fieldName.equals("sslPolicyResource")) { + if ("sslPolicyResource".equals(fieldName)) { return sslPolicyResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSubnetworkHttpRequest.java index 122a2be43394..7b5bfd0c2e91 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSubnetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchSubnetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("subnetwork")) { + if ("subnetwork".equals(fieldName)) { return subnetwork; } - if (fieldName.equals("subnetworkResource")) { + if ("subnetworkResource".equals(fieldName)) { return subnetworkResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchUrlMapHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchUrlMapHttpRequest.java index 08e633100260..8fb5fcbdf89a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchUrlMapHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchUrlMapHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private PatchUrlMapHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("urlMap")) { + if ("urlMap".equals(fieldName)) { return urlMap; } - if (fieldName.equals("urlMapResource")) { + if ("urlMapResource".equals(fieldName)) { return urlMapResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathMatcher.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathMatcher.java index a4e45dc8299f..c6682587bacf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathMatcher.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathMatcher.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,16 +48,16 @@ private PathMatcher( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("defaultService")) { + if ("defaultService".equals(fieldName)) { return defaultService; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("pathRules")) { + if ("pathRules".equals(fieldName)) { return pathRules; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathRule.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathRule.java index 1b1fbfdf5620..d9894f25c888 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathRule.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathRule.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private PathRule(List paths, String service) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("paths")) { + if ("paths".equals(fieldName)) { return paths; } - if (fieldName.equals("service")) { + if ("service".equals(fieldName)) { return service; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Policy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Policy.java index a1067f6a3995..9acbe4331782 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Policy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Policy.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private Policy( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("auditConfigs")) { + if ("auditConfigs".equals(fieldName)) { return auditConfigs; } - if (fieldName.equals("bindings")) { + if ("bindings".equals(fieldName)) { return bindings; } - if (fieldName.equals("etag")) { + if ("etag".equals(fieldName)) { return etag; } - if (fieldName.equals("iamOwned")) { + if ("iamOwned".equals(fieldName)) { return iamOwned; } - if (fieldName.equals("rules")) { + if ("rules".equals(fieldName)) { return rules; } - if (fieldName.equals("version")) { + if ("version".equals(fieldName)) { return version; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewRouterHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewRouterHttpRequest.java index c27d00c0cf1b..fe7864dd42b1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewRouterHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewRouterHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private PreviewRouterHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("router")) { + if ("router".equals(fieldName)) { return router; } - if (fieldName.equals("routerResource")) { + if ("routerResource".equals(fieldName)) { return routerResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Project.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Project.java index fc528b82313a..19a5fccd47b4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Project.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Project.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,43 +87,43 @@ private Project( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("commonInstanceMetadata")) { + if ("commonInstanceMetadata".equals(fieldName)) { return commonInstanceMetadata; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("defaultNetworkTier")) { + if ("defaultNetworkTier".equals(fieldName)) { return defaultNetworkTier; } - if (fieldName.equals("defaultServiceAccount")) { + if ("defaultServiceAccount".equals(fieldName)) { return defaultServiceAccount; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("enabledFeatures")) { + if ("enabledFeatures".equals(fieldName)) { return enabledFeatures; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("quotas")) { + if ("quotas".equals(fieldName)) { return quotas; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("usageExportLocation")) { + if ("usageExportLocation".equals(fieldName)) { return usageExportLocation; } - if (fieldName.equals("xpnProjectStatus")) { + if ("xpnProjectStatus".equals(fieldName)) { return xpnProjectStatus; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java index 35eb60a6ebc8..033c79113007 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalAddressName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalAddressName.java index f77ab7520230..4cd40826d853 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalAddressName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalAddressName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalBackendBucketName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalBackendBucketName.java index c5c5a2eaa984..f67572ede419 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalBackendBucketName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalBackendBucketName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalBackendServiceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalBackendServiceName.java index 3791e37b5db2..663631a85229 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalBackendServiceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalBackendServiceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalFirewallName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalFirewallName.java index d09665d9b158..298b4902d879 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalFirewallName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalFirewallName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalForwardingRuleName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalForwardingRuleName.java index 388e48c8cce0..f75e6424337a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalForwardingRuleName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalForwardingRuleName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalHealthCheckName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalHealthCheckName.java index 81a6facb4e00..29fd87d3a730 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalHealthCheckName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalHealthCheckName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalHttpHealthCheckName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalHttpHealthCheckName.java index 682dc02b99bc..46b809891828 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalHttpHealthCheckName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalHttpHealthCheckName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalHttpsHealthCheckName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalHttpsHealthCheckName.java index 3f055fcf6541..865efe7f514f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalHttpsHealthCheckName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalHttpsHealthCheckName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalImageFamilyName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalImageFamilyName.java index e18da0fd0604..54d815687808 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalImageFamilyName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalImageFamilyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalImageName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalImageName.java index f1f3788a36c5..c3b90748c934 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalImageName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalImageName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalImageResourceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalImageResourceName.java index de624f21adf2..ea20f7471a05 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalImageResourceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalImageResourceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInstanceTemplateName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInstanceTemplateName.java index 80b2dd95d91b..b1d5409a00d6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInstanceTemplateName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInstanceTemplateName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInstanceTemplateResourceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInstanceTemplateResourceName.java index 10d71c46b276..b2a992851d6e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInstanceTemplateResourceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInstanceTemplateResourceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInterconnectLocationName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInterconnectLocationName.java index 4c223a494cfc..65acb787d2d5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInterconnectLocationName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInterconnectLocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInterconnectName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInterconnectName.java index 410c23d0dd80..7d979de6f966 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInterconnectName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalInterconnectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseCodeName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseCodeName.java index 8ce94aaefd6c..dad26f01d15a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseCodeName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseCodeName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseCodeResourceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseCodeResourceName.java index f4c695378287..5e289286803a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseCodeResourceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseCodeResourceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseName.java index 440003665896..ba73fc169236 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseResourceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseResourceName.java index d4b05aa6394d..5f4a9655c2d7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseResourceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalLicenseResourceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalNetworkName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalNetworkName.java index 149eab1ece28..065e29e30d1a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalNetworkName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalNetworkName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalOperationName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalOperationName.java index 8c8caf587318..3f1278168f9e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalOperationName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalOperationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalRouteName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalRouteName.java index 6031d9e93ac8..29dd54c51979 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalRouteName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalRouteName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSecurityPolicyName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSecurityPolicyName.java index 4addfd45aaf3..39d1498237ff 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSecurityPolicyName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSecurityPolicyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSnapshotName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSnapshotName.java index 323615f102d9..b84c06c559ec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSnapshotName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSnapshotName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSnapshotResourceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSnapshotResourceName.java index 39956f23d9a1..dca1abf33397 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSnapshotResourceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSnapshotResourceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSslCertificateName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSslCertificateName.java index 442ed11cb134..f45814fff509 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSslCertificateName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSslCertificateName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSslPolicyName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSslPolicyName.java index 2f57466278e6..b7c70c6d96c6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSslPolicyName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalSslPolicyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetHttpProxyName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetHttpProxyName.java index 7d8c97c09b46..580c12220fb4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetHttpProxyName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetHttpProxyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetHttpsProxyName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetHttpsProxyName.java index f2c81a8f47f7..7a7e908917fa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetHttpsProxyName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetHttpsProxyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetSslProxyName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetSslProxyName.java index c564b683d479..c59623a36085 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetSslProxyName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetSslProxyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetTcpProxyName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetTcpProxyName.java index d98e981500a5..30acb16c57ad 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetTcpProxyName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalTargetTcpProxyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalUrlMapName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalUrlMapName.java index 4c3b74da8ed2..5c5f545321a7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalUrlMapName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectGlobalUrlMapName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectName.java index 5e31263fe409..db75e9f56663 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionAddressName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionAddressName.java index 61f3674ae81a..50f4d4b9b908 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionAddressName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionAddressName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionAutoscalerName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionAutoscalerName.java index 034d59be5a98..bd3bb3175b86 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionAutoscalerName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionAutoscalerName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionBackendServiceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionBackendServiceName.java index a67656808d32..10320d79b68c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionBackendServiceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionBackendServiceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionCommitmentName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionCommitmentName.java index 0810acd697c6..8241017701af 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionCommitmentName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionCommitmentName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionDiskName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionDiskName.java index 9537cc4945e1..5324a46c347e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionDiskName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionDiskName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionDiskResourceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionDiskResourceName.java index 2ac10a7917c0..844d987d3f67 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionDiskResourceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionDiskResourceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionDiskTypeName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionDiskTypeName.java index 13de75fcf798..6f93fe6ec974 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionDiskTypeName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionDiskTypeName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionForwardingRuleName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionForwardingRuleName.java index cfe3425c9018..eab18028da7e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionForwardingRuleName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionForwardingRuleName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionInstanceGroupManagerName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionInstanceGroupManagerName.java index 43b2df1ea533..85aa88bc554b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionInstanceGroupManagerName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionInstanceGroupManagerName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionInstanceGroupName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionInstanceGroupName.java index 167f221fcaa9..0bfe5ef6d37a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionInstanceGroupName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionInstanceGroupName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionInterconnectAttachmentName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionInterconnectAttachmentName.java index 73921d87a4a6..c2cbebdd5103 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionInterconnectAttachmentName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionInterconnectAttachmentName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionName.java index 48553c60081a..ef10e8356b0c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionNodeTemplateName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionNodeTemplateName.java index dc72d20cdc03..ba78d5784bea 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionNodeTemplateName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionNodeTemplateName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionNodeTemplateResourceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionNodeTemplateResourceName.java index 42d6a70a70ba..88eeb95e3048 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionNodeTemplateResourceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionNodeTemplateResourceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionOperationName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionOperationName.java index 7d9fe330275a..88e1f00e825d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionOperationName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionOperationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionRouterName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionRouterName.java index ce04795debaa..266845c81db6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionRouterName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionRouterName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionSubnetworkName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionSubnetworkName.java index 90d97dda6e95..ec712fc549d2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionSubnetworkName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionSubnetworkName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionSubnetworkResourceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionSubnetworkResourceName.java index b07f3a0b50a3..b358e718a07f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionSubnetworkResourceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionSubnetworkResourceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionTargetPoolName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionTargetPoolName.java index 082acc5cf58b..0b4ff5242040 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionTargetPoolName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionTargetPoolName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionTargetVpnGatewayName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionTargetVpnGatewayName.java index 82b10f76c043..c3482c6d46eb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionTargetVpnGatewayName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionTargetVpnGatewayName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionVpnTunnelName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionVpnTunnelName.java index ddfc347a16e4..4ac5f1112092 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionVpnTunnelName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectRegionVpnTunnelName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectSettings.java index 3a0cb246e827..6d5697075604 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectTargetHttpProxyName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectTargetHttpProxyName.java index a6b273384d1c..41472e8cf542 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectTargetHttpProxyName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectTargetHttpProxyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectTargetHttpsProxyName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectTargetHttpsProxyName.java index 6cdd279bc647..a441c06a46ae 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectTargetHttpsProxyName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectTargetHttpsProxyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneAcceleratorTypeName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneAcceleratorTypeName.java index 46fbf8743de1..25887a1f0e41 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneAcceleratorTypeName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneAcceleratorTypeName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneAutoscalerName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneAutoscalerName.java index 054cc897fe04..a7b201e671c6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneAutoscalerName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneAutoscalerName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneDiskName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneDiskName.java index 8333b9b9b7e3..53f5c501d498 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneDiskName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneDiskName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneDiskResourceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneDiskResourceName.java index 630ee539473d..47f148e6a831 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneDiskResourceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneDiskResourceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneDiskTypeName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneDiskTypeName.java index b44c864ca485..668395f66b11 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneDiskTypeName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneDiskTypeName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceGroupManagerName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceGroupManagerName.java index ff1290e07c2c..2a19dbf53be0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceGroupManagerName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceGroupManagerName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceGroupName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceGroupName.java index 1cf1d8a0c443..d39bcaae5f2a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceGroupName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceGroupName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceName.java index f0ac839af9d5..558ee35622f7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceResourceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceResourceName.java index a997f92c643a..d03c4fbdb020 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceResourceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneInstanceResourceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneMachineTypeName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneMachineTypeName.java index 67300e28e570..0763ea92d02b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneMachineTypeName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneMachineTypeName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneName.java index f56211584bba..b75e0f35d735 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneNodeGroupName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneNodeGroupName.java index 2498216bd70d..80d72840960b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneNodeGroupName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneNodeGroupName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneNodeGroupResourceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneNodeGroupResourceName.java index e4273f3e205c..e133e4db7dc1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneNodeGroupResourceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneNodeGroupResourceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneNodeTypeName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneNodeTypeName.java index b4adc481478b..af964b8ab13b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneNodeTypeName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneNodeTypeName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneOperationName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneOperationName.java index 965c69311a7f..e3a12eb5147e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneOperationName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneOperationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneTargetInstanceName.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneTargetInstanceName.java index 6e3f1893e3e9..2f1088875950 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneTargetInstanceName.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectZoneTargetInstanceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsDisableXpnResourceRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsDisableXpnResourceRequest.java index cfdf2021f2d7..243510452ca6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsDisableXpnResourceRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsDisableXpnResourceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private ProjectsDisableXpnResourceRequest(XpnResourceId xpnResource) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("xpnResource")) { + if ("xpnResource".equals(fieldName)) { return xpnResource; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsEnableXpnResourceRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsEnableXpnResourceRequest.java index 6711dcfed506..11afd5d75be4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsEnableXpnResourceRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsEnableXpnResourceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private ProjectsEnableXpnResourceRequest(XpnResourceId xpnResource) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("xpnResource")) { + if ("xpnResource".equals(fieldName)) { return xpnResource; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsGetXpnResources.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsGetXpnResources.java index b589734c5802..e51fd622537d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsGetXpnResources.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsGetXpnResources.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -45,13 +45,13 @@ private ProjectsGetXpnResources( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("resources")) { + if ("resources".equals(fieldName)) { return resources; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsListXpnHostsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsListXpnHostsRequest.java index 9f5602b43fc6..f8a06b3a90f2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsListXpnHostsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsListXpnHostsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private ProjectsListXpnHostsRequest(String organization) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("organization")) { + if ("organization".equals(fieldName)) { return organization; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsSetDefaultNetworkTierRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsSetDefaultNetworkTierRequest.java index ee8c7ce78cfd..bac42a90b02b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsSetDefaultNetworkTierRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsSetDefaultNetworkTierRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private ProjectsSetDefaultNetworkTierRequest(String networkTier) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("networkTier")) { + if ("networkTier".equals(fieldName)) { return networkTier; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Quota.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Quota.java index 321b03560fdc..7f8521e2f1fe 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Quota.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Quota.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,16 +46,16 @@ private Quota(Double limit, String metric, String owner, Double usage) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("limit")) { + if ("limit".equals(fieldName)) { return limit; } - if (fieldName.equals("metric")) { + if ("metric".equals(fieldName)) { return metric; } - if (fieldName.equals("owner")) { + if ("owner".equals(fieldName)) { return owner; } - if (fieldName.equals("usage")) { + if ("usage".equals(fieldName)) { return usage; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RawDisk.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RawDisk.java index e32d17996fb1..f55e6eee8fca 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RawDisk.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RawDisk.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,13 +43,13 @@ private RawDisk(String containerType, String sha1Checksum, String source) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("containerType")) { + if ("containerType".equals(fieldName)) { return containerType; } - if (fieldName.equals("sha1Checksum")) { + if ("sha1Checksum".equals(fieldName)) { return sha1Checksum; } - if (fieldName.equals("source")) { + if ("source".equals(fieldName)) { return source; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesInstanceGroupManagerHttpRequest.java index 938f45cd1449..445b65f071de 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -77,34 +77,34 @@ private RecreateInstancesInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("instanceGroupManagersRecreateInstancesRequestResource")) { + if ("instanceGroupManagersRecreateInstancesRequestResource".equals(fieldName)) { return instanceGroupManagersRecreateInstancesRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesRegionInstanceGroupManagerHttpRequest.java index 5d8fc03ea2c8..5b3d7e9a02d3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesRegionInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -76,34 +76,34 @@ private RecreateInstancesRegionInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("regionInstanceGroupManagersRecreateRequestResource")) { + if ("regionInstanceGroupManagersRecreateRequestResource".equals(fieldName)) { return regionInstanceGroupManagersRecreateRequestResource; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Reference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Reference.java index 3628a6bda60c..3b5f0bd6643e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Reference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Reference.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,16 +46,16 @@ private Reference(String kind, String referenceType, String referrer, String tar @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("referenceType")) { + if ("referenceType".equals(fieldName)) { return referenceType; } - if (fieldName.equals("referrer")) { + if ("referrer".equals(fieldName)) { return referrer; } - if (fieldName.equals("target")) { + if ("target".equals(fieldName)) { return target; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Region.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Region.java index 585e918d6309..207ed7a361e2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Region.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Region.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,34 +75,34 @@ private Region( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("deprecated")) { + if ("deprecated".equals(fieldName)) { return deprecated; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("quotas")) { + if ("quotas".equals(fieldName)) { return quotas; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } - if (fieldName.equals("zones")) { + if ("zones".equals(fieldName)) { return zones; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java index 32912291322d..cb5be8614ef0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerList.java index fb4c8517f7b4..9aaeb8f29654 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private RegionAutoscalerList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerSettings.java index dd00fd568c6a..6958d95b20c3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java index 87a6af8a125f..8938c7781941 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceSettings.java index 356f14525e25..6b8b863f8cb0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionClient.java index 040f514eb9ad..c5ff98425a2f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java index 80cb8098baec..f9f4b82b5493 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentSettings.java index 84653ae86c5e..be9082fe4447 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java index c33976d9a79b..77c210bf1a6c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskSettings.java index fdb694f95881..6f74feade14c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeClient.java index 7f986692d126..9e417283fc85 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeList.java index 4469a6b03453..5b98c1e8ecf9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private RegionDiskTypeList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeSettings.java index 0a61ca74e741..3e825b65cd98 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksResizeRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksResizeRequest.java index 55e1eaf40792..afc3b88f778c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksResizeRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksResizeRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private RegionDisksResizeRequest(String sizeGb) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("sizeGb")) { + if ("sizeGb".equals(fieldName)) { return sizeGb; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java index dc6bd9a94592..5c4e6526a97b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupList.java index 1bcdf0ee037e..0c0bd2304fe6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private RegionInstanceGroupList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java index 3667817a8bb5..d5e78b534dfa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerList.java index 6669cecad906..b2b132d90ecc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private RegionInstanceGroupManagerList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerSettings.java index 2d36e19845b6..5687ad73a204 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersAbandonInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersAbandonInstancesRequest.java index 6ce3aea7923d..5c0d8a06189b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersAbandonInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersAbandonInstancesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private RegionInstanceGroupManagersAbandonInstancesRequest(List instance @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instances")) { + if ("instances".equals(fieldName)) { return instances; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersDeleteInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersDeleteInstancesRequest.java index cc793dd30f62..91f8ef8f911f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersDeleteInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersDeleteInstancesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private RegionInstanceGroupManagersDeleteInstancesRequest(List instances @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instances")) { + if ("instances".equals(fieldName)) { return instances; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersListInstancesResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersListInstancesResponse.java index 2be03e45d7ce..bbfef5e280b8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersListInstancesResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersListInstancesResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private RegionInstanceGroupManagersListInstancesResponse(List m @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("managedInstances")) { + if ("managedInstances".equals(fieldName)) { return managedInstances; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersRecreateRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersRecreateRequest.java index 68601f366e48..a7ffd013869a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersRecreateRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersRecreateRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private RegionInstanceGroupManagersRecreateRequest(List instances) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instances")) { + if ("instances".equals(fieldName)) { return instances; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTargetPoolsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTargetPoolsRequest.java index c706866a1e71..23b4e81f0ea6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTargetPoolsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTargetPoolsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,10 +42,10 @@ private RegionInstanceGroupManagersSetTargetPoolsRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("fingerprint")) { + if ("fingerprint".equals(fieldName)) { return fingerprint; } - if (fieldName.equals("targetPools")) { + if ("targetPools".equals(fieldName)) { return targetPools; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTemplateRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTemplateRequest.java index 5529a711192c..39b2de127d4f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTemplateRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTemplateRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private RegionInstanceGroupManagersSetTemplateRequest(String instanceTemplate) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instanceTemplate")) { + if ("instanceTemplate".equals(fieldName)) { return instanceTemplate; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupSettings.java index 469036d0839f..5a97bd7daf60 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstances.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstances.java index 3428e60bf231..39b347049d00 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstances.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstances.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private RegionInstanceGroupsListInstances( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstancesRequest.java index fa62768f170b..cafe134fdcd0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstancesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private RegionInstanceGroupsListInstancesRequest(String instanceState, String po @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instanceState")) { + if ("instanceState".equals(fieldName)) { return instanceState; } - if (fieldName.equals("portName")) { + if ("portName".equals(fieldName)) { return portName; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsSetNamedPortsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsSetNamedPortsRequest.java index 832f3ddf7854..bb39c9d5321b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsSetNamedPortsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsSetNamedPortsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private RegionInstanceGroupsSetNamedPortsRequest(String fingerprint, List labe @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("labelFingerprint")) { + if ("labelFingerprint".equals(fieldName)) { return labelFingerprint; } - if (fieldName.equals("labels")) { + if ("labels".equals(fieldName)) { return labels; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSetPolicyRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSetPolicyRequest.java index a17bf399b4ab..7d77d6ed0d93 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSetPolicyRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSetPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,13 +44,13 @@ private RegionSetPolicyRequest(List bindings, String etag, Policy polic @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("bindings")) { + if ("bindings".equals(fieldName)) { return bindings; } - if (fieldName.equals("etag")) { + if ("etag".equals(fieldName)) { return etag; } - if (fieldName.equals("policy")) { + if ("policy".equals(fieldName)) { return policy; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSettings.java index 051ae55f6d1f..9ce17b933c98 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveHealthCheckTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveHealthCheckTargetPoolHttpRequest.java index 9e372429acbd..5bb5dd9dc50d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveHealthCheckTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveHealthCheckTargetPoolHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private RemoveHealthCheckTargetPoolHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetPool")) { + if ("targetPool".equals(fieldName)) { return targetPool; } - if (fieldName.equals("targetPoolsRemoveHealthCheckRequestResource")) { + if ("targetPoolsRemoveHealthCheckRequestResource".equals(fieldName)) { return targetPoolsRemoveHealthCheckRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstanceTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstanceTargetPoolHttpRequest.java index 6459033db189..bc158d346bea 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstanceTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstanceTargetPoolHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private RemoveInstanceTargetPoolHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetPool")) { + if ("targetPool".equals(fieldName)) { return targetPool; } - if (fieldName.equals("targetPoolsRemoveInstanceRequestResource")) { + if ("targetPoolsRemoveInstanceRequestResource".equals(fieldName)) { return targetPoolsRemoveInstanceRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstancesInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstancesInstanceGroupHttpRequest.java index a997c78245e8..ca3228803b60 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstancesInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstancesInstanceGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,34 +75,34 @@ private RemoveInstancesInstanceGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroup")) { + if ("instanceGroup".equals(fieldName)) { return instanceGroup; } - if (fieldName.equals("instanceGroupsRemoveInstancesRequestResource")) { + if ("instanceGroupsRemoveInstancesRequestResource".equals(fieldName)) { return instanceGroupsRemoveInstancesRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemovePeeringNetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemovePeeringNetworkHttpRequest.java index 8bd762d6c23d..06c6e2ed303c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemovePeeringNetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemovePeeringNetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private RemovePeeringNetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("networksRemovePeeringRequestResource")) { + if ("networksRemovePeeringRequestResource".equals(fieldName)) { return networksRemovePeeringRequestResource; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveRuleSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveRuleSecurityPolicyHttpRequest.java index 359457f9b38d..1b0acdb0eed7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveRuleSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveRuleSecurityPolicyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private RemoveRuleSecurityPolicyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("priority")) { + if ("priority".equals(fieldName)) { return priority; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("securityPolicy")) { + if ("securityPolicy".equals(fieldName)) { return securityPolicy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResetInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResetInstanceHttpRequest.java index 426b99a4e8ae..a6a721e0d280 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResetInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResetInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private ResetInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeDiskHttpRequest.java index 7231c0b99131..c5dfaebb24d6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private ResizeDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("disk")) { + if ("disk".equals(fieldName)) { return disk; } - if (fieldName.equals("disksResizeRequestResource")) { + if ("disksResizeRequestResource".equals(fieldName)) { return disksResizeRequestResource; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeInstanceGroupManagerHttpRequest.java index 9fd2f0fbdd49..00ed71dd5407 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private ResizeInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("size")) { + if ("size".equals(fieldName)) { return size; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionDiskHttpRequest.java index 53c6d1937ea7..b68a4142cac8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private ResizeRegionDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("disk")) { + if ("disk".equals(fieldName)) { return disk; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("regionDisksResizeRequestResource")) { + if ("regionDisksResizeRequestResource".equals(fieldName)) { return regionDisksResizeRequestResource; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionInstanceGroupManagerHttpRequest.java index 9ad8bcb64ff6..753b2bd9fceb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private ResizeRegionInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("size")) { + if ("size".equals(fieldName)) { return size; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceCommitment.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceCommitment.java index c48fcbb28ff5..674fbb561d7a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceCommitment.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceCommitment.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private ResourceCommitment(String amount, String type) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("amount")) { + if ("amount".equals(fieldName)) { return amount; } - if (fieldName.equals("type")) { + if ("type".equals(fieldName)) { return type; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceGroupReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceGroupReference.java index 5b6876d4274b..2028923a81b1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceGroupReference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceGroupReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private ResourceGroupReference(String group) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("group")) { + if ("group".equals(fieldName)) { return group; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Route.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Route.java index 1bd0c004a98f..3331f466f218 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Route.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Route.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -103,55 +103,55 @@ private Route( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("destRange")) { + if ("destRange".equals(fieldName)) { return destRange; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("nextHopGateway")) { + if ("nextHopGateway".equals(fieldName)) { return nextHopGateway; } - if (fieldName.equals("nextHopInstance")) { + if ("nextHopInstance".equals(fieldName)) { return nextHopInstance; } - if (fieldName.equals("nextHopIp")) { + if ("nextHopIp".equals(fieldName)) { return nextHopIp; } - if (fieldName.equals("nextHopNetwork")) { + if ("nextHopNetwork".equals(fieldName)) { return nextHopNetwork; } - if (fieldName.equals("nextHopPeering")) { + if ("nextHopPeering".equals(fieldName)) { return nextHopPeering; } - if (fieldName.equals("nextHopVpnTunnel")) { + if ("nextHopVpnTunnel".equals(fieldName)) { return nextHopVpnTunnel; } - if (fieldName.equals("priority")) { + if ("priority".equals(fieldName)) { return priority; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("tags")) { + if ("tags".equals(fieldName)) { return tags; } - if (fieldName.equals("warnings")) { + if ("warnings".equals(fieldName)) { return warnings; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java index 36e8820d0a00..7823767111cf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteList.java index 1b9f81abd691..c16da4c017f2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private RouteList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteSettings.java index a439d3cfe474..0e7e58b36b80 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Router.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Router.java index aaa3248506cf..04f52cc5986c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Router.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Router.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,40 +83,40 @@ private Router( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("bgp")) { + if ("bgp".equals(fieldName)) { return bgp; } - if (fieldName.equals("bgpPeers")) { + if ("bgpPeers".equals(fieldName)) { return bgpPeers; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("interfaces")) { + if ("interfaces".equals(fieldName)) { return interfaces; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("nats")) { + if ("nats".equals(fieldName)) { return nats; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAdvertisedIpRange.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAdvertisedIpRange.java index 993cfe8968f3..1cdf3d3bf54b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAdvertisedIpRange.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAdvertisedIpRange.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private RouterAdvertisedIpRange(String description, String range) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("range")) { + if ("range".equals(fieldName)) { return range; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAggregatedList.java index dc85b2cc9a5c..4f35d0de9adb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private RouterAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgp.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgp.java index 0801e06fa131..3da413d1872b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgp.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgp.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,16 +51,16 @@ private RouterBgp( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("advertiseMode")) { + if ("advertiseMode".equals(fieldName)) { return advertiseMode; } - if (fieldName.equals("advertisedGroups")) { + if ("advertisedGroups".equals(fieldName)) { return advertisedGroups; } - if (fieldName.equals("advertisedIpRanges")) { + if ("advertisedIpRanges".equals(fieldName)) { return advertisedIpRanges; } - if (fieldName.equals("asn")) { + if ("asn".equals(fieldName)) { return asn; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgpPeer.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgpPeer.java index 6f5216df319d..564c419b4a72 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgpPeer.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgpPeer.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,34 +75,34 @@ private RouterBgpPeer( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("advertiseMode")) { + if ("advertiseMode".equals(fieldName)) { return advertiseMode; } - if (fieldName.equals("advertisedGroups")) { + if ("advertisedGroups".equals(fieldName)) { return advertisedGroups; } - if (fieldName.equals("advertisedIpRanges")) { + if ("advertisedIpRanges".equals(fieldName)) { return advertisedIpRanges; } - if (fieldName.equals("advertisedRoutePriority")) { + if ("advertisedRoutePriority".equals(fieldName)) { return advertisedRoutePriority; } - if (fieldName.equals("interfaceName")) { + if ("interfaceName".equals(fieldName)) { return interfaceName; } - if (fieldName.equals("ipAddress")) { + if ("ipAddress".equals(fieldName)) { return ipAddress; } - if (fieldName.equals("managementType")) { + if ("managementType".equals(fieldName)) { return managementType; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("peerAsn")) { + if ("peerAsn".equals(fieldName)) { return peerAsn; } - if (fieldName.equals("peerIpAddress")) { + if ("peerIpAddress".equals(fieldName)) { return peerIpAddress; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java index 04b9e47db07b..16ddffe3316f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterInterface.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterInterface.java index ca0fde82ec3c..df216cfc4f69 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterInterface.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterInterface.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -54,19 +54,19 @@ private RouterInterface( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("ipRange")) { + if ("ipRange".equals(fieldName)) { return ipRange; } - if (fieldName.equals("linkedInterconnectAttachment")) { + if ("linkedInterconnectAttachment".equals(fieldName)) { return linkedInterconnectAttachment; } - if (fieldName.equals("linkedVpnTunnel")) { + if ("linkedVpnTunnel".equals(fieldName)) { return linkedVpnTunnel; } - if (fieldName.equals("managementType")) { + if ("managementType".equals(fieldName)) { return managementType; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterList.java index 76ad15242c07..e3e0eaf822a4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private RouterList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNat.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNat.java index 665c7e2608ac..c9266a5a947f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNat.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNat.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,34 +75,34 @@ private RouterNat( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("icmpIdleTimeoutSec")) { + if ("icmpIdleTimeoutSec".equals(fieldName)) { return icmpIdleTimeoutSec; } - if (fieldName.equals("minPortsPerVm")) { + if ("minPortsPerVm".equals(fieldName)) { return minPortsPerVm; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("natIpAllocateOption")) { + if ("natIpAllocateOption".equals(fieldName)) { return natIpAllocateOption; } - if (fieldName.equals("natIps")) { + if ("natIps".equals(fieldName)) { return natIps; } - if (fieldName.equals("sourceSubnetworkIpRangesToNat")) { + if ("sourceSubnetworkIpRangesToNat".equals(fieldName)) { return sourceSubnetworkIpRangesToNat; } - if (fieldName.equals("subnetworks")) { + if ("subnetworks".equals(fieldName)) { return subnetworks; } - if (fieldName.equals("tcpEstablishedIdleTimeoutSec")) { + if ("tcpEstablishedIdleTimeoutSec".equals(fieldName)) { return tcpEstablishedIdleTimeoutSec; } - if (fieldName.equals("tcpTransitoryIdleTimeoutSec")) { + if ("tcpTransitoryIdleTimeoutSec".equals(fieldName)) { return tcpTransitoryIdleTimeoutSec; } - if (fieldName.equals("udpIdleTimeoutSec")) { + if ("udpIdleTimeoutSec".equals(fieldName)) { return udpIdleTimeoutSec; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNatSubnetworkToNat.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNatSubnetworkToNat.java index 197907b6d0c3..3ff7f22a93b1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNatSubnetworkToNat.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNatSubnetworkToNat.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -45,13 +45,13 @@ private RouterNatSubnetworkToNat( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("secondaryIpRangeNames")) { + if ("secondaryIpRangeNames".equals(fieldName)) { return secondaryIpRangeNames; } - if (fieldName.equals("sourceIpRangesToNat")) { + if ("sourceIpRangesToNat".equals(fieldName)) { return sourceIpRangesToNat; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterSettings.java index 5683f0663da9..db3b3c409c4f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatus.java index f2fde05238c0..0472249bf16d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -55,19 +55,19 @@ private RouterStatus( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("bestRoutes")) { + if ("bestRoutes".equals(fieldName)) { return bestRoutes; } - if (fieldName.equals("bestRoutesForRouter")) { + if ("bestRoutesForRouter".equals(fieldName)) { return bestRoutesForRouter; } - if (fieldName.equals("bgpPeerStatus")) { + if ("bgpPeerStatus".equals(fieldName)) { return bgpPeerStatus; } - if (fieldName.equals("natStatus")) { + if ("natStatus".equals(fieldName)) { return natStatus; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusBgpPeerStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusBgpPeerStatus.java index 0e24209e0a64..3cb9ab1639e5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusBgpPeerStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusBgpPeerStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,34 +75,34 @@ private RouterStatusBgpPeerStatus( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("advertisedRoutes")) { + if ("advertisedRoutes".equals(fieldName)) { return advertisedRoutes; } - if (fieldName.equals("ipAddress")) { + if ("ipAddress".equals(fieldName)) { return ipAddress; } - if (fieldName.equals("linkedVpnTunnel")) { + if ("linkedVpnTunnel".equals(fieldName)) { return linkedVpnTunnel; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("numLearnedRoutes")) { + if ("numLearnedRoutes".equals(fieldName)) { return numLearnedRoutes; } - if (fieldName.equals("peerIpAddress")) { + if ("peerIpAddress".equals(fieldName)) { return peerIpAddress; } - if (fieldName.equals("state")) { + if ("state".equals(fieldName)) { return state; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } - if (fieldName.equals("uptime")) { + if ("uptime".equals(fieldName)) { return uptime; } - if (fieldName.equals("uptimeSeconds")) { + if ("uptimeSeconds".equals(fieldName)) { return uptimeSeconds; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusNatStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusNatStatus.java index 6e06fe1c15df..b595199b36ef 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusNatStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusNatStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private RouterStatusNatStatus( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("autoAllocatedNatIps")) { + if ("autoAllocatedNatIps".equals(fieldName)) { return autoAllocatedNatIps; } - if (fieldName.equals("minExtraNatIpsNeeded")) { + if ("minExtraNatIpsNeeded".equals(fieldName)) { return minExtraNatIpsNeeded; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("numVmEndpointsWithNatMappings")) { + if ("numVmEndpointsWithNatMappings".equals(fieldName)) { return numVmEndpointsWithNatMappings; } - if (fieldName.equals("userAllocatedNatIpResources")) { + if ("userAllocatedNatIpResources".equals(fieldName)) { return userAllocatedNatIpResources; } - if (fieldName.equals("userAllocatedNatIps")) { + if ("userAllocatedNatIps".equals(fieldName)) { return userAllocatedNatIps; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusResponse.java index 270f2fe8ff9d..0b1fcb3438f3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private RouterStatusResponse(String kind, RouterStatus result) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("result")) { + if ("result".equals(fieldName)) { return result; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersPreviewResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersPreviewResponse.java index cfe2dec432e7..28c3274803d6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersPreviewResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersPreviewResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private RoutersPreviewResponse(Router resource) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersScopedList.java index 6fd0f269bd60..261da9c99efc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private RoutersScopedList(List routers, Warning warning) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("routers")) { + if ("routers".equals(fieldName)) { return routers; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Rule.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Rule.java index 3fe843a86924..17be94744aed 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Rule.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Rule.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -63,25 +63,25 @@ private Rule( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("action")) { + if ("action".equals(fieldName)) { return action; } - if (fieldName.equals("conditions")) { + if ("conditions".equals(fieldName)) { return conditions; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("ins")) { + if ("ins".equals(fieldName)) { return ins; } - if (fieldName.equals("logConfigs")) { + if ("logConfigs".equals(fieldName)) { return logConfigs; } - if (fieldName.equals("notIns")) { + if ("notIns".equals(fieldName)) { return notIns; } - if (fieldName.equals("permissions")) { + if ("permissions".equals(fieldName)) { return permissions; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SSLHealthCheck.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SSLHealthCheck.java index 608db5cc07ce..2ca8180514e6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SSLHealthCheck.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SSLHealthCheck.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,19 +50,19 @@ private SSLHealthCheck( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("port")) { + if ("port".equals(fieldName)) { return port; } - if (fieldName.equals("portName")) { + if ("portName".equals(fieldName)) { return portName; } - if (fieldName.equals("proxyHeader")) { + if ("proxyHeader".equals(fieldName)) { return proxyHeader; } - if (fieldName.equals("request")) { + if ("request".equals(fieldName)) { return request; } - if (fieldName.equals("response")) { + if ("response".equals(fieldName)) { return response; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Scheduling.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Scheduling.java index aaea9369f8bd..0809482b5942 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Scheduling.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Scheduling.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,16 +51,16 @@ private Scheduling( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("automaticRestart")) { + if ("automaticRestart".equals(fieldName)) { return automaticRestart; } - if (fieldName.equals("nodeAffinities")) { + if ("nodeAffinities".equals(fieldName)) { return nodeAffinities; } - if (fieldName.equals("onHostMaintenance")) { + if ("onHostMaintenance".equals(fieldName)) { return onHostMaintenance; } - if (fieldName.equals("preemptible")) { + if ("preemptible".equals(fieldName)) { return preemptible; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SchedulingNodeAffinity.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SchedulingNodeAffinity.java index cf74117a6f3f..6d9c797560c2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SchedulingNodeAffinity.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SchedulingNodeAffinity.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,13 +44,13 @@ private SchedulingNodeAffinity(String key, String operator, List values) @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("operator")) { + if ("operator".equals(fieldName)) { return operator; } - if (fieldName.equals("values")) { + if ("values".equals(fieldName)) { return values; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ScratchDisks.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ScratchDisks.java index e806a83522e6..6f8b4bbd4f98 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ScratchDisks.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ScratchDisks.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private ScratchDisks(Integer diskGb) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("diskGb")) { + if ("diskGb".equals(fieldName)) { return diskGb; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicy.java index 3ee388993b98..706358b9d814 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -67,28 +67,28 @@ private SecurityPolicy( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("fingerprint")) { + if ("fingerprint".equals(fieldName)) { return fingerprint; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("rules")) { + if ("rules".equals(fieldName)) { return rules; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java index 5bc5f1eaaa0f..6f4bc4baf699 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyList.java index 45259a2f93a3..cea23f52136c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,19 +51,19 @@ private SecurityPolicyList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyReference.java index bca36f11aa82..d2406fae5d7f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyReference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private SecurityPolicyReference(String securityPolicy) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("securityPolicy")) { + if ("securityPolicy".equals(fieldName)) { return securityPolicy; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRule.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRule.java index 01fcfa90674c..2939b7552702 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRule.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRule.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,22 +58,22 @@ private SecurityPolicyRule( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("action")) { + if ("action".equals(fieldName)) { return action; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("match")) { + if ("match".equals(fieldName)) { return match; } - if (fieldName.equals("preview")) { + if ("preview".equals(fieldName)) { return preview; } - if (fieldName.equals("priority")) { + if ("priority".equals(fieldName)) { return priority; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcher.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcher.java index aef086230258..c3d8ad275cfa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcher.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcher.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private SecurityPolicyRuleMatcher(SecurityPolicyRuleMatcherConfig config, String @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("config")) { + if ("config".equals(fieldName)) { return config; } - if (fieldName.equals("versionedExpr")) { + if ("versionedExpr".equals(fieldName)) { return versionedExpr; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcherConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcherConfig.java index df43c0cd6dff..1c0818d036a0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcherConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcherConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private SecurityPolicyRuleMatcherConfig(List srcIpRanges) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("srcIpRanges")) { + if ("srcIpRanges".equals(fieldName)) { return srcIpRanges; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicySettings.java index 27d495fecce9..152a602aedd9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicySettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SerialPortOutput.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SerialPortOutput.java index 176456887caf..3ccda0acdb48 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SerialPortOutput.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SerialPortOutput.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,19 +50,19 @@ private SerialPortOutput( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("contents")) { + if ("contents".equals(fieldName)) { return contents; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("next")) { + if ("next".equals(fieldName)) { return next; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("start")) { + if ("start".equals(fieldName)) { return start; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAccount.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAccount.java index feeb24fd7908..16328f484f67 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAccount.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAccount.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private ServiceAccount(String email, List scopes) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("email")) { + if ("email".equals(fieldName)) { return email; } - if (fieldName.equals("scopes")) { + if ("scopes".equals(fieldName)) { return scopes; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetSslProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetSslProxyHttpRequest.java index 94915ed07aa1..a518047522dd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetSslProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetSslProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -76,34 +76,34 @@ private SetBackendServiceTargetSslProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetSslProxiesSetBackendServiceRequestResource")) { + if ("targetSslProxiesSetBackendServiceRequestResource".equals(fieldName)) { return targetSslProxiesSetBackendServiceRequestResource; } - if (fieldName.equals("targetSslProxy")) { + if ("targetSslProxy".equals(fieldName)) { return targetSslProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetTcpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetTcpProxyHttpRequest.java index 5a79262f2ebc..550b49e2e071 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetTcpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetTcpProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -76,34 +76,34 @@ private SetBackendServiceTargetTcpProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetTcpProxiesSetBackendServiceRequestResource")) { + if ("targetTcpProxiesSetBackendServiceRequestResource".equals(fieldName)) { return targetTcpProxiesSetBackendServiceRequestResource; } - if (fieldName.equals("targetTcpProxy")) { + if ("targetTcpProxy".equals(fieldName)) { return targetTcpProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackupTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackupTargetPoolHttpRequest.java index a8ff1c84b873..4588895aa6f3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackupTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackupTargetPoolHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -78,37 +78,37 @@ private SetBackupTargetPoolHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("failoverRatio")) { + if ("failoverRatio".equals(fieldName)) { return failoverRatio; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetPool")) { + if ("targetPool".equals(fieldName)) { return targetPool; } - if (fieldName.equals("targetReferenceResource")) { + if ("targetReferenceResource".equals(fieldName)) { return targetReferenceResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetCommonInstanceMetadataProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetCommonInstanceMetadataProjectHttpRequest.java index 7ef2f549c852..2d361847e68f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetCommonInstanceMetadataProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetCommonInstanceMetadataProjectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetCommonInstanceMetadataProjectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("metadataResource")) { + if ("metadataResource".equals(fieldName)) { return metadataResource; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDefaultNetworkTierProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDefaultNetworkTierProjectHttpRequest.java index 9db020259fec..6d87f83a842b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDefaultNetworkTierProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDefaultNetworkTierProjectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,34 +75,34 @@ private SetDefaultNetworkTierProjectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("projectsSetDefaultNetworkTierRequestResource")) { + if ("projectsSetDefaultNetworkTierRequestResource".equals(fieldName)) { return projectsSetDefaultNetworkTierRequestResource; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDeletionProtectionInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDeletionProtectionInstanceHttpRequest.java index 25ddb9bee5c3..6f932faff349 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDeletionProtectionInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDeletionProtectionInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetDeletionProtectionInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("deletionProtection")) { + if ("deletionProtection".equals(fieldName)) { return deletionProtection; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDiskAutoDeleteInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDiskAutoDeleteInstanceHttpRequest.java index 1d68a7549b97..2311188e9237 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDiskAutoDeleteInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDiskAutoDeleteInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -78,37 +78,37 @@ private SetDiskAutoDeleteInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("autoDelete")) { + if ("autoDelete".equals(fieldName)) { return autoDelete; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("deviceName")) { + if ("deviceName".equals(fieldName)) { return deviceName; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyDiskHttpRequest.java index 389def9aa79b..10af32a97115 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private SetIamPolicyDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("zoneSetPolicyRequestResource")) { + if ("zoneSetPolicyRequestResource".equals(fieldName)) { return zoneSetPolicyRequestResource; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyImageHttpRequest.java index f7f557ef676a..e2e192c0106a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyImageHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private SetIamPolicyImageHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("globalSetPolicyRequestResource")) { + if ("globalSetPolicyRequestResource".equals(fieldName)) { return globalSetPolicyRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceHttpRequest.java index 4aff23508dd4..9aba2b76b962 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private SetIamPolicyInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("zoneSetPolicyRequestResource")) { + if ("zoneSetPolicyRequestResource".equals(fieldName)) { return zoneSetPolicyRequestResource; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceTemplateHttpRequest.java index 49fbf6e4d6aa..c9d316719abf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceTemplateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private SetIamPolicyInstanceTemplateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("globalSetPolicyRequestResource")) { + if ("globalSetPolicyRequestResource".equals(fieldName)) { return globalSetPolicyRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyLicenseHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyLicenseHttpRequest.java index e13806209ef0..1822476554cd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyLicenseHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyLicenseHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private SetIamPolicyLicenseHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("globalSetPolicyRequestResource")) { + if ("globalSetPolicyRequestResource".equals(fieldName)) { return globalSetPolicyRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeGroupHttpRequest.java index 273485b10c8c..48db2b9a1a10 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private SetIamPolicyNodeGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("zoneSetPolicyRequestResource")) { + if ("zoneSetPolicyRequestResource".equals(fieldName)) { return zoneSetPolicyRequestResource; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeTemplateHttpRequest.java index 95908ad38da4..f3dc81f87b7a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeTemplateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private SetIamPolicyNodeTemplateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("regionSetPolicyRequestResource")) { + if ("regionSetPolicyRequestResource".equals(fieldName)) { return regionSetPolicyRequestResource; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySnapshotHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySnapshotHttpRequest.java index 2fa5e5e4e011..cf90c5c13f62 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySnapshotHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySnapshotHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private SetIamPolicySnapshotHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("globalSetPolicyRequestResource")) { + if ("globalSetPolicyRequestResource".equals(fieldName)) { return globalSetPolicyRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySubnetworkHttpRequest.java index e3550ff4978a..bc2f299b80ec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySubnetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private SetIamPolicySubnetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("regionSetPolicyRequestResource")) { + if ("regionSetPolicyRequestResource".equals(fieldName)) { return regionSetPolicyRequestResource; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateInstanceGroupManagerHttpRequest.java index 4b2b5108df78..e495ac09e259 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -77,34 +77,34 @@ private SetInstanceTemplateInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("instanceGroupManagersSetInstanceTemplateRequestResource")) { + if ("instanceGroupManagersSetInstanceTemplateRequestResource".equals(fieldName)) { return instanceGroupManagersSetInstanceTemplateRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateRegionInstanceGroupManagerHttpRequest.java index 6465fd01f274..87684b667789 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateRegionInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -77,34 +77,34 @@ private SetInstanceTemplateRegionInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("regionInstanceGroupManagersSetTemplateRequestResource")) { + if ("regionInstanceGroupManagersSetTemplateRequestResource".equals(fieldName)) { return regionInstanceGroupManagersSetTemplateRequestResource; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsDiskHttpRequest.java index 5169b551ebaf..164035f576eb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetLabelsDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("zoneSetLabelsRequestResource")) { + if ("zoneSetLabelsRequestResource".equals(fieldName)) { return zoneSetLabelsRequestResource; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsImageHttpRequest.java index 71baf086694e..0285d1575cd8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsImageHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private SetLabelsImageHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("globalSetLabelsRequestResource")) { + if ("globalSetLabelsRequestResource".equals(fieldName)) { return globalSetLabelsRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsInstanceHttpRequest.java index 057e08320ac4..f37f58266d16 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetLabelsInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("instancesSetLabelsRequestResource")) { + if ("instancesSetLabelsRequestResource".equals(fieldName)) { return instancesSetLabelsRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionDiskHttpRequest.java index 0ee157f7e2fd..63e671b07fad 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetLabelsRegionDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("regionSetLabelsRequestResource")) { + if ("regionSetLabelsRequestResource".equals(fieldName)) { return regionSetLabelsRequestResource; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsSnapshotHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsSnapshotHttpRequest.java index f61d9205e66d..9ea6df3c5255 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsSnapshotHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsSnapshotHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private SetLabelsSnapshotHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("globalSetLabelsRequestResource")) { + if ("globalSetLabelsRequestResource".equals(fieldName)) { return globalSetLabelsRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineResourcesInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineResourcesInstanceHttpRequest.java index 8f112ba95cea..90476ce3c0a8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineResourcesInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineResourcesInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetMachineResourcesInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("instancesSetMachineResourcesRequestResource")) { + if ("instancesSetMachineResourcesRequestResource".equals(fieldName)) { return instancesSetMachineResourcesRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineTypeInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineTypeInstanceHttpRequest.java index 7badaf6cfdfe..1cb27fcb6c28 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineTypeInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineTypeInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetMachineTypeInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("instancesSetMachineTypeRequestResource")) { + if ("instancesSetMachineTypeRequestResource".equals(fieldName)) { return instancesSetMachineTypeRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMetadataInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMetadataInstanceHttpRequest.java index 55cea5ad9886..f7548984acfe 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMetadataInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMetadataInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetMetadataInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("metadataResource")) { + if ("metadataResource".equals(fieldName)) { return metadataResource; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMinCpuPlatformInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMinCpuPlatformInstanceHttpRequest.java index fdbef21a1e7f..2399fdd1f890 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMinCpuPlatformInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMinCpuPlatformInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetMinCpuPlatformInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("instancesSetMinCpuPlatformRequestResource")) { + if ("instancesSetMinCpuPlatformRequestResource".equals(fieldName)) { return instancesSetMinCpuPlatformRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsInstanceGroupHttpRequest.java index deb3334abff7..911610220385 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsInstanceGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetNamedPortsInstanceGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroup")) { + if ("instanceGroup".equals(fieldName)) { return instanceGroup; } - if (fieldName.equals("instanceGroupsSetNamedPortsRequestResource")) { + if ("instanceGroupsSetNamedPortsRequestResource".equals(fieldName)) { return instanceGroupsSetNamedPortsRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsRegionInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsRegionInstanceGroupHttpRequest.java index 8557570e6ce3..13c5b7ae4fe5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsRegionInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsRegionInstanceGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -76,34 +76,34 @@ private SetNamedPortsRegionInstanceGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroup")) { + if ("instanceGroup".equals(fieldName)) { return instanceGroup; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("regionInstanceGroupsSetNamedPortsRequestResource")) { + if ("regionInstanceGroupsSetNamedPortsRequestResource".equals(fieldName)) { return regionInstanceGroupsSetNamedPortsRequestResource; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNodeTemplateNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNodeTemplateNodeGroupHttpRequest.java index 0d9af9412492..1c6923418279 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNodeTemplateNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNodeTemplateNodeGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetNodeTemplateNodeGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("nodeGroup")) { + if ("nodeGroup".equals(fieldName)) { return nodeGroup; } - if (fieldName.equals("nodeGroupsSetNodeTemplateRequestResource")) { + if ("nodeGroupsSetNodeTemplateRequestResource".equals(fieldName)) { return nodeGroupsSetNodeTemplateRequestResource; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetPrivateIpGoogleAccessSubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetPrivateIpGoogleAccessSubnetworkHttpRequest.java index f94b3e6f4f67..eb0fd0f85cd7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetPrivateIpGoogleAccessSubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetPrivateIpGoogleAccessSubnetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -76,34 +76,34 @@ private SetPrivateIpGoogleAccessSubnetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("subnetwork")) { + if ("subnetwork".equals(fieldName)) { return subnetwork; } - if (fieldName.equals("subnetworksSetPrivateIpGoogleAccessRequestResource")) { + if ("subnetworksSetPrivateIpGoogleAccessRequestResource".equals(fieldName)) { return subnetworksSetPrivateIpGoogleAccessRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetSslProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetSslProxyHttpRequest.java index 940b1957222d..d520f3b46e88 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetSslProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetSslProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,34 +75,34 @@ private SetProxyHeaderTargetSslProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetSslProxiesSetProxyHeaderRequestResource")) { + if ("targetSslProxiesSetProxyHeaderRequestResource".equals(fieldName)) { return targetSslProxiesSetProxyHeaderRequestResource; } - if (fieldName.equals("targetSslProxy")) { + if ("targetSslProxy".equals(fieldName)) { return targetSslProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetTcpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetTcpProxyHttpRequest.java index 97bcded5875d..61652defe23e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetTcpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetTcpProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,34 +75,34 @@ private SetProxyHeaderTargetTcpProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetTcpProxiesSetProxyHeaderRequestResource")) { + if ("targetTcpProxiesSetProxyHeaderRequestResource".equals(fieldName)) { return targetTcpProxiesSetProxyHeaderRequestResource; } - if (fieldName.equals("targetTcpProxy")) { + if ("targetTcpProxy".equals(fieldName)) { return targetTcpProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetQuicOverrideTargetHttpsProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetQuicOverrideTargetHttpsProxyHttpRequest.java index 0ffa00989880..2eb3128ad707 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetQuicOverrideTargetHttpsProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetQuicOverrideTargetHttpsProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -76,34 +76,34 @@ private SetQuicOverrideTargetHttpsProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetHttpsProxiesSetQuicOverrideRequestResource")) { + if ("targetHttpsProxiesSetQuicOverrideRequestResource".equals(fieldName)) { return targetHttpsProxiesSetQuicOverrideRequestResource; } - if (fieldName.equals("targetHttpsProxy")) { + if ("targetHttpsProxy".equals(fieldName)) { return targetHttpsProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSchedulingInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSchedulingInstanceHttpRequest.java index ab2132538887..62fc7b210a46 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSchedulingInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSchedulingInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetSchedulingInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("schedulingResource")) { + if ("schedulingResource".equals(fieldName)) { return schedulingResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSecurityPolicyBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSecurityPolicyBackendServiceHttpRequest.java index 37d099c1411b..898cf644218e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSecurityPolicyBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSecurityPolicyBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetSecurityPolicyBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendService")) { + if ("backendService".equals(fieldName)) { return backendService; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("securityPolicyReferenceResource")) { + if ("securityPolicyReferenceResource".equals(fieldName)) { return securityPolicyReferenceResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetServiceAccountInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetServiceAccountInstanceHttpRequest.java index 913fb653a488..19468526b42b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetServiceAccountInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetServiceAccountInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetServiceAccountInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("instancesSetServiceAccountRequestResource")) { + if ("instancesSetServiceAccountRequestResource".equals(fieldName)) { return instancesSetServiceAccountRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetHttpsProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetHttpsProxyHttpRequest.java index b754e5a5f75a..64fa7aab5e6d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetHttpsProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetHttpsProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -77,34 +77,34 @@ private SetSslCertificatesTargetHttpsProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetHttpsProxiesSetSslCertificatesRequestResource")) { + if ("targetHttpsProxiesSetSslCertificatesRequestResource".equals(fieldName)) { return targetHttpsProxiesSetSslCertificatesRequestResource; } - if (fieldName.equals("targetHttpsProxy")) { + if ("targetHttpsProxy".equals(fieldName)) { return targetHttpsProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetSslProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetSslProxyHttpRequest.java index ce3278ac073e..cf40d2ccc5a2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetSslProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetSslProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -76,34 +76,34 @@ private SetSslCertificatesTargetSslProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetSslProxiesSetSslCertificatesRequestResource")) { + if ("targetSslProxiesSetSslCertificatesRequestResource".equals(fieldName)) { return targetSslProxiesSetSslCertificatesRequestResource; } - if (fieldName.equals("targetSslProxy")) { + if ("targetSslProxy".equals(fieldName)) { return targetSslProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetHttpsProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetHttpsProxyHttpRequest.java index 2b355c09bdc8..8127f41ac629 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetHttpsProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetHttpsProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetSslPolicyTargetHttpsProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("sslPolicyReferenceResource")) { + if ("sslPolicyReferenceResource".equals(fieldName)) { return sslPolicyReferenceResource; } - if (fieldName.equals("targetHttpsProxy")) { + if ("targetHttpsProxy".equals(fieldName)) { return targetHttpsProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetSslProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetSslProxyHttpRequest.java index 187704c3d2dd..3930f02ccffa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetSslProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetSslProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetSslPolicyTargetSslProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("sslPolicyReferenceResource")) { + if ("sslPolicyReferenceResource".equals(fieldName)) { return sslPolicyReferenceResource; } - if (fieldName.equals("targetSslProxy")) { + if ("targetSslProxy".equals(fieldName)) { return targetSslProxy; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTagsInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTagsInstanceHttpRequest.java index c04373e8a529..bbbe05e0db31 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTagsInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTagsInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetTagsInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("tagsResource")) { + if ("tagsResource".equals(fieldName)) { return tagsResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetForwardingRuleHttpRequest.java index 0f4011f2ca43..3092ca988bae 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetForwardingRuleHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetTargetForwardingRuleHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("forwardingRule")) { + if ("forwardingRule".equals(fieldName)) { return forwardingRule; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetReferenceResource")) { + if ("targetReferenceResource".equals(fieldName)) { return targetReferenceResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetGlobalForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetGlobalForwardingRuleHttpRequest.java index 591c84ce4079..ff8e33f634c8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetGlobalForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetGlobalForwardingRuleHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetTargetGlobalForwardingRuleHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("forwardingRule")) { + if ("forwardingRule".equals(fieldName)) { return forwardingRule; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetReferenceResource")) { + if ("targetReferenceResource".equals(fieldName)) { return targetReferenceResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsInstanceGroupManagerHttpRequest.java index de3e6724cc64..6c7f04ee4297 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -76,34 +76,34 @@ private SetTargetPoolsInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("instanceGroupManagersSetTargetPoolsRequestResource")) { + if ("instanceGroupManagersSetTargetPoolsRequestResource".equals(fieldName)) { return instanceGroupManagersSetTargetPoolsRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsRegionInstanceGroupManagerHttpRequest.java index b99e289db6b9..299443fd38b9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsRegionInstanceGroupManagerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -77,34 +77,34 @@ private SetTargetPoolsRegionInstanceGroupManagerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instanceGroupManager")) { + if ("instanceGroupManager".equals(fieldName)) { return instanceGroupManager; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("regionInstanceGroupManagersSetTargetPoolsRequestResource")) { + if ("regionInstanceGroupManagersSetTargetPoolsRequestResource".equals(fieldName)) { return regionInstanceGroupManagersSetTargetPoolsRequestResource; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpProxyHttpRequest.java index fc43374f5e9f..89c839ab126a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetUrlMapTargetHttpProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetHttpProxy")) { + if ("targetHttpProxy".equals(fieldName)) { return targetHttpProxy; } - if (fieldName.equals("urlMapReferenceResource")) { + if ("urlMapReferenceResource".equals(fieldName)) { return urlMapReferenceResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpsProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpsProxyHttpRequest.java index c886f963980f..087e2962f2a8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpsProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpsProxyHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetUrlMapTargetHttpsProxyHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("targetHttpsProxy")) { + if ("targetHttpsProxy".equals(fieldName)) { return targetHttpsProxy; } - if (fieldName.equals("urlMapReferenceResource")) { + if ("urlMapReferenceResource".equals(fieldName)) { return urlMapReferenceResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUsageExportBucketProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUsageExportBucketProjectHttpRequest.java index 4190be522ba5..1f4c02bb44aa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUsageExportBucketProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUsageExportBucketProjectHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,34 +74,34 @@ private SetUsageExportBucketProjectHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("project")) { + if ("project".equals(fieldName)) { return project; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("usageExportLocationResource")) { + if ("usageExportLocationResource".equals(fieldName)) { return usageExportLocationResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SignedUrlKey.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SignedUrlKey.java index 73ba8e15ea11..21c07b195bf4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SignedUrlKey.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SignedUrlKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private SignedUrlKey(String keyName, String keyValue) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("keyName")) { + if ("keyName".equals(fieldName)) { return keyName; } - if (fieldName.equals("keyValue")) { + if ("keyValue".equals(fieldName)) { return keyValue; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SimulateMaintenanceEventInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SimulateMaintenanceEventInstanceHttpRequest.java index e5b6d7614557..b11e8b3fc92b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SimulateMaintenanceEventInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SimulateMaintenanceEventInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private SimulateMaintenanceEventInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Snapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Snapshot.java index 75ae8c811007..38e136280aa6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Snapshot.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Snapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -108,58 +108,58 @@ private Snapshot( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("diskSizeGb")) { + if ("diskSizeGb".equals(fieldName)) { return diskSizeGb; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("labelFingerprint")) { + if ("labelFingerprint".equals(fieldName)) { return labelFingerprint; } - if (fieldName.equals("labels")) { + if ("labels".equals(fieldName)) { return labels; } - if (fieldName.equals("licenseCodes")) { + if ("licenseCodes".equals(fieldName)) { return licenseCodes; } - if (fieldName.equals("licenses")) { + if ("licenses".equals(fieldName)) { return licenses; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("snapshotEncryptionKey")) { + if ("snapshotEncryptionKey".equals(fieldName)) { return snapshotEncryptionKey; } - if (fieldName.equals("sourceDisk")) { + if ("sourceDisk".equals(fieldName)) { return sourceDisk; } - if (fieldName.equals("sourceDiskEncryptionKey")) { + if ("sourceDiskEncryptionKey".equals(fieldName)) { return sourceDiskEncryptionKey; } - if (fieldName.equals("sourceDiskId")) { + if ("sourceDiskId".equals(fieldName)) { return sourceDiskId; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } - if (fieldName.equals("storageBytes")) { + if ("storageBytes".equals(fieldName)) { return storageBytes; } - if (fieldName.equals("storageBytesStatus")) { + if ("storageBytesStatus".equals(fieldName)) { return storageBytesStatus; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java index 378d2766954c..85553b55b7fb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotList.java index b890556c2e3e..3523e66f2b14 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private SnapshotList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java index c70e9ce389b0..1bfd437e19ea 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SourceInstanceParams.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SourceInstanceParams.java index 519563f6da5a..fe9d23596f28 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SourceInstanceParams.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SourceInstanceParams.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private SourceInstanceParams(List diskConfigs) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("diskConfigs")) { + if ("diskConfigs".equals(fieldName)) { return diskConfigs; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificate.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificate.java index 3894f3103963..9eb223041f76 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificate.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificate.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private SslCertificate( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("certificate")) { + if ("certificate".equals(fieldName)) { return certificate; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("privateKey")) { + if ("privateKey".equals(fieldName)) { return privateKey; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java index 512bef62f835..8e5ed73bcfe1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateList.java index 4c81e8e9e41c..6283a40a63db 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private SslCertificateList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateSettings.java index 0943dad381ca..c258d13ad827 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesList.java index 24dcb4dc546b..4848073275f0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private SslPoliciesList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesListAvailableFeaturesResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesListAvailableFeaturesResponse.java index 36e22ef184e4..3297c15cd40d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesListAvailableFeaturesResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesListAvailableFeaturesResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private SslPoliciesListAvailableFeaturesResponse(List features) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("features")) { + if ("features".equals(fieldName)) { return features; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicy.java index fa47a495f521..76f908da46cb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,40 +83,40 @@ private SslPolicy( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("customFeatures")) { + if ("customFeatures".equals(fieldName)) { return customFeatures; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("enabledFeatures")) { + if ("enabledFeatures".equals(fieldName)) { return enabledFeatures; } - if (fieldName.equals("fingerprint")) { + if ("fingerprint".equals(fieldName)) { return fingerprint; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("minTlsVersion")) { + if ("minTlsVersion".equals(fieldName)) { return minTlsVersion; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("profile")) { + if ("profile".equals(fieldName)) { return profile; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warnings")) { + if ("warnings".equals(fieldName)) { return warnings; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java index 4c7021ef17a5..10fb96c1fed5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyReference.java index 39637920f887..688b26fa69bb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyReference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private SslPolicyReference(String sslPolicy) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("sslPolicy")) { + if ("sslPolicy".equals(fieldName)) { return sslPolicy; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicySettings.java index 98e32a6f559e..c68915971db3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicySettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartInstanceHttpRequest.java index 4f3f05adc1a0..8d9527bdd88f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private StartInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartWithEncryptionKeyInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartWithEncryptionKeyInstanceHttpRequest.java index b120c69e1c47..54b7eebfe6f8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartWithEncryptionKeyInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartWithEncryptionKeyInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -76,34 +76,34 @@ private StartWithEncryptionKeyInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("instancesStartWithEncryptionKeyRequestResource")) { + if ("instancesStartWithEncryptionKeyRequestResource".equals(fieldName)) { return instancesStartWithEncryptionKeyRequestResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StopInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StopInstanceHttpRequest.java index 5d126ad32e95..17284af29623 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StopInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StopInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private StopInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Subnetwork.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Subnetwork.java index 4ba9b79ace53..003609079253 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Subnetwork.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Subnetwork.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -91,46 +91,46 @@ private Subnetwork( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("enableFlowLogs")) { + if ("enableFlowLogs".equals(fieldName)) { return enableFlowLogs; } - if (fieldName.equals("fingerprint")) { + if ("fingerprint".equals(fieldName)) { return fingerprint; } - if (fieldName.equals("gatewayAddress")) { + if ("gatewayAddress".equals(fieldName)) { return gatewayAddress; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("ipCidrRange")) { + if ("ipCidrRange".equals(fieldName)) { return ipCidrRange; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("privateIpGoogleAccess")) { + if ("privateIpGoogleAccess".equals(fieldName)) { return privateIpGoogleAccess; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("secondaryIpRanges")) { + if ("secondaryIpRanges".equals(fieldName)) { return secondaryIpRanges; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkAggregatedList.java index 99fd627600a5..73ce4a7e89ee 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private SubnetworkAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java index f4c331ec7472..701b61e42e99 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkList.java index b887d4c2107e..89e06da80520 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private SubnetworkList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSecondaryRange.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSecondaryRange.java index eb0308bdfc60..13f028e619d5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSecondaryRange.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSecondaryRange.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private SubnetworkSecondaryRange(String ipCidrRange, String rangeName) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("ipCidrRange")) { + if ("ipCidrRange".equals(fieldName)) { return ipCidrRange; } - if (fieldName.equals("rangeName")) { + if ("rangeName".equals(fieldName)) { return rangeName; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSettings.java index 60ed3b8637dd..39c44a77cf32 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksExpandIpCidrRangeRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksExpandIpCidrRangeRequest.java index ae59ff1ad14a..58fa7fc53762 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksExpandIpCidrRangeRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksExpandIpCidrRangeRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private SubnetworksExpandIpCidrRangeRequest(String ipCidrRange) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("ipCidrRange")) { + if ("ipCidrRange".equals(fieldName)) { return ipCidrRange; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksScopedList.java index 96992a9f2582..b9678cddbb84 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private SubnetworksScopedList(List subnetworks, Warning warning) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("subnetworks")) { + if ("subnetworks".equals(fieldName)) { return subnetworks; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksSetPrivateIpGoogleAccessRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksSetPrivateIpGoogleAccessRequest.java index e58dad72c307..81754578aaee 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksSetPrivateIpGoogleAccessRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksSetPrivateIpGoogleAccessRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private SubnetworksSetPrivateIpGoogleAccessRequest(Boolean privateIpGoogleAccess @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("privateIpGoogleAccess")) { + if ("privateIpGoogleAccess".equals(fieldName)) { return privateIpGoogleAccess; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SwitchToCustomModeNetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SwitchToCustomModeNetworkHttpRequest.java index 3d4356db6fef..857f65ef7c2d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SwitchToCustomModeNetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SwitchToCustomModeNetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private SwitchToCustomModeNetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TCPHealthCheck.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TCPHealthCheck.java index 81500de7a425..c79defaeb292 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TCPHealthCheck.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TCPHealthCheck.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,19 +50,19 @@ private TCPHealthCheck( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("port")) { + if ("port".equals(fieldName)) { return port; } - if (fieldName.equals("portName")) { + if ("portName".equals(fieldName)) { return portName; } - if (fieldName.equals("proxyHeader")) { + if ("proxyHeader".equals(fieldName)) { return proxyHeader; } - if (fieldName.equals("request")) { + if ("request".equals(fieldName)) { return request; } - if (fieldName.equals("response")) { + if ("response".equals(fieldName)) { return response; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Tags.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Tags.java index 2f075386b386..9a7405e3973c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Tags.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Tags.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private Tags(String fingerprint, List items) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("fingerprint")) { + if ("fingerprint".equals(fieldName)) { return fingerprint; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxy.java index 8671056aade1..73b125982218 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxy.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -62,25 +62,25 @@ private TargetHttpProxy( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("urlMap")) { + if ("urlMap".equals(fieldName)) { return urlMap; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java index df94feaf0590..235e0176e5ef 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyList.java index 7be563795b97..64d51c809d53 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private TargetHttpProxyList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxySettings.java index 1d54e9319a55..74c33bda6d1c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxySettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetQuicOverrideRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetQuicOverrideRequest.java index edec3ea4a7dc..d26ad0e5e39d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetQuicOverrideRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetQuicOverrideRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private TargetHttpsProxiesSetQuicOverrideRequest(String quicOverride) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("quicOverride")) { + if ("quicOverride".equals(fieldName)) { return quicOverride; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetSslCertificatesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetSslCertificatesRequest.java index 8d178ef69f38..3bcdd751018b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetSslCertificatesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetSslCertificatesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private TargetHttpsProxiesSetSslCertificatesRequest(List sslCertificates @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("sslCertificates")) { + if ("sslCertificates".equals(fieldName)) { return sslCertificates; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxy.java index 9952067bc7b8..97c0e50225bf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxy.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,34 +75,34 @@ private TargetHttpsProxy( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("quicOverride")) { + if ("quicOverride".equals(fieldName)) { return quicOverride; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("sslCertificates")) { + if ("sslCertificates".equals(fieldName)) { return sslCertificates; } - if (fieldName.equals("sslPolicy")) { + if ("sslPolicy".equals(fieldName)) { return sslPolicy; } - if (fieldName.equals("urlMap")) { + if ("urlMap".equals(fieldName)) { return urlMap; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java index a8a7b6a752bf..439a5944f737 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyList.java index 7df2ee46c1fc..bba3606b6105 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private TargetHttpsProxyList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxySettings.java index 39620e957ac3..cadcd83543e1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxySettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstance.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstance.java index ae3f4b5cc9ae..934643559cf5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstance.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private TargetInstance( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("natPolicy")) { + if ("natPolicy".equals(fieldName)) { return natPolicy; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceAggregatedList.java index b53ae8011727..4133db4b9797 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private TargetInstanceAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java index 39f585a19143..37644b84a4ba 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceList.java index d788d2efcb71..b53e053f8083 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private TargetInstanceList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceSettings.java index f6342f7adb28..3f708af29ab4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesScopedList.java index e8e25a8d4233..bb62b3f360cd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private TargetInstancesScopedList(List targetInstances, Warning @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("targetInstances")) { + if ("targetInstances".equals(fieldName)) { return targetInstances; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPool.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPool.java index f8dd2d85d8f3..7a5152cf2672 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPool.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPool.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,40 +83,40 @@ private TargetPool( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("backupPool")) { + if ("backupPool".equals(fieldName)) { return backupPool; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("failoverRatio")) { + if ("failoverRatio".equals(fieldName)) { return failoverRatio; } - if (fieldName.equals("healthChecks")) { + if ("healthChecks".equals(fieldName)) { return healthChecks; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("instances")) { + if ("instances".equals(fieldName)) { return instances; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("sessionAffinity")) { + if ("sessionAffinity".equals(fieldName)) { return sessionAffinity; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolAggregatedList.java index 52e333905b9f..5e146d4c3b61 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private TargetPoolAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java index 07d22b930c42..523c6e282375 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolInstanceHealth.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolInstanceHealth.java index 806f8dd20394..0a430e6d8bf7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolInstanceHealth.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolInstanceHealth.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private TargetPoolInstanceHealth(List healthStatus, String kind) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("healthStatus")) { + if ("healthStatus".equals(fieldName)) { return healthStatus; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolList.java index 6e651ebce42f..378a8d20d22f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private TargetPoolList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolSettings.java index 8b08d2f7a5b9..449fb686d9ef 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddHealthCheckRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddHealthCheckRequest.java index 58a0568cf441..ec9a38554792 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddHealthCheckRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddHealthCheckRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private TargetPoolsAddHealthCheckRequest(List healthChecks @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("healthChecks")) { + if ("healthChecks".equals(fieldName)) { return healthChecks; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddInstanceRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddInstanceRequest.java index 7ae63dbde200..ccbce2450c6e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddInstanceRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private TargetPoolsAddInstanceRequest(List instances) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instances")) { + if ("instances".equals(fieldName)) { return instances; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveHealthCheckRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveHealthCheckRequest.java index a04d90436634..9fe4947ec969 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveHealthCheckRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveHealthCheckRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private TargetPoolsRemoveHealthCheckRequest(List healthChe @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("healthChecks")) { + if ("healthChecks".equals(fieldName)) { return healthChecks; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveInstanceRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveInstanceRequest.java index 5fbce595cecb..0a68a6ed779a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveInstanceRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private TargetPoolsRemoveInstanceRequest(List instances) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instances")) { + if ("instances".equals(fieldName)) { return instances; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsScopedList.java index a5c5678db39d..935c558b5c06 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private TargetPoolsScopedList(List targetPools, Warning warning) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("targetPools")) { + if ("targetPools".equals(fieldName)) { return targetPools; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetReference.java index aafe660140e9..6534c7792426 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetReference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private TargetReference(String target) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("target")) { + if ("target".equals(fieldName)) { return target; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetBackendServiceRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetBackendServiceRequest.java index 93585948f5dc..c6aafa137509 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetBackendServiceRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetBackendServiceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private TargetSslProxiesSetBackendServiceRequest(String service) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("service")) { + if ("service".equals(fieldName)) { return service; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetProxyHeaderRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetProxyHeaderRequest.java index 98dc4bf88056..87975d5af8c8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetProxyHeaderRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetProxyHeaderRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private TargetSslProxiesSetProxyHeaderRequest(String proxyHeader) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("proxyHeader")) { + if ("proxyHeader".equals(fieldName)) { return proxyHeader; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetSslCertificatesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetSslCertificatesRequest.java index 3372dbe67843..f8f0e4a95dc8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetSslCertificatesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetSslCertificatesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private TargetSslProxiesSetSslCertificatesRequest(List sslCertificates) @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("sslCertificates")) { + if ("sslCertificates".equals(fieldName)) { return sslCertificates; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxy.java index f88d1e1e77ba..57079782b4a2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxy.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,34 +75,34 @@ private TargetSslProxy( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("proxyHeader")) { + if ("proxyHeader".equals(fieldName)) { return proxyHeader; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("service")) { + if ("service".equals(fieldName)) { return service; } - if (fieldName.equals("sslCertificates")) { + if ("sslCertificates".equals(fieldName)) { return sslCertificates; } - if (fieldName.equals("sslPolicy")) { + if ("sslPolicy".equals(fieldName)) { return sslPolicy; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java index 5f197a2735cb..443a8fb50925 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyList.java index 6f817de8cd9c..3a858dce69b1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private TargetSslProxyList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxySettings.java index 467bb379d507..98a0974de251 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxySettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetBackendServiceRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetBackendServiceRequest.java index 147e6d889373..1411095e9dcf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetBackendServiceRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetBackendServiceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private TargetTcpProxiesSetBackendServiceRequest(String service) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("service")) { + if ("service".equals(fieldName)) { return service; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetProxyHeaderRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetProxyHeaderRequest.java index 9e77f3319352..45897e36da21 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetProxyHeaderRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetProxyHeaderRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private TargetTcpProxiesSetProxyHeaderRequest(String proxyHeader) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("proxyHeader")) { + if ("proxyHeader".equals(fieldName)) { return proxyHeader; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxy.java index b6f7a888ce6c..d9008fc2a744 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxy.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,28 +66,28 @@ private TargetTcpProxy( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("proxyHeader")) { + if ("proxyHeader".equals(fieldName)) { return proxyHeader; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("service")) { + if ("service".equals(fieldName)) { return service; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java index 7c5c8f25f363..0fbcd7c51685 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyList.java index db71afd3fa84..36b676bf85e8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private TargetTcpProxyList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxySettings.java index 505adac4f15c..dbd3807b8b27 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxySettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGateway.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGateway.java index b86fc8968a7e..f066e462c212 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGateway.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGateway.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private TargetVpnGateway( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("forwardingRules")) { + if ("forwardingRules".equals(fieldName)) { return forwardingRules; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } - if (fieldName.equals("tunnels")) { + if ("tunnels".equals(fieldName)) { return tunnels; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayAggregatedList.java index e461f3ffcfe8..25855bea964e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private TargetVpnGatewayAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java index b92ff25fc5c3..745be670bcfd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayList.java index e5ebc775a8eb..fbbb626a28a5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private TargetVpnGatewayList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaySettings.java index 69338e09da37..f887b42a8e62 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaySettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysScopedList.java index 4157b9d5d89c..b8c376d6dc9d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private TargetVpnGatewaysScopedList(List targetVpnGateways, Wa @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("targetVpnGateways")) { + if ("targetVpnGateways".equals(fieldName)) { return targetVpnGateways; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestFailure.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestFailure.java index df706e89fc10..45d43a4fe686 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestFailure.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestFailure.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,16 +46,16 @@ private TestFailure(String actualService, String expectedService, String host, S @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("actualService")) { + if ("actualService".equals(fieldName)) { return actualService; } - if (fieldName.equals("expectedService")) { + if ("expectedService".equals(fieldName)) { return expectedService; } - if (fieldName.equals("host")) { + if ("host".equals(fieldName)) { return host; } - if (fieldName.equals("path")) { + if ("path".equals(fieldName)) { return path; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsDiskHttpRequest.java index 0d8536ddfacc..f6e6fad77924 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private TestIamPermissionsDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("testPermissionsRequestResource")) { + if ("testPermissionsRequestResource".equals(fieldName)) { return testPermissionsRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsImageHttpRequest.java index 69b6998ad6ba..ba767137fd1a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsImageHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private TestIamPermissionsImageHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("testPermissionsRequestResource")) { + if ("testPermissionsRequestResource".equals(fieldName)) { return testPermissionsRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceHttpRequest.java index 38c0b9151a3a..cd6dccb1c123 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private TestIamPermissionsInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("testPermissionsRequestResource")) { + if ("testPermissionsRequestResource".equals(fieldName)) { return testPermissionsRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceTemplateHttpRequest.java index 75f983abeaaf..dbe1e39ea93c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceTemplateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private TestIamPermissionsInstanceTemplateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("testPermissionsRequestResource")) { + if ("testPermissionsRequestResource".equals(fieldName)) { return testPermissionsRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseCodeHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseCodeHttpRequest.java index f1ed4d30d813..aa00df192519 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseCodeHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseCodeHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private TestIamPermissionsLicenseCodeHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("testPermissionsRequestResource")) { + if ("testPermissionsRequestResource".equals(fieldName)) { return testPermissionsRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseHttpRequest.java index 3813b199cda8..765ab9ec32b9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private TestIamPermissionsLicenseHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("testPermissionsRequestResource")) { + if ("testPermissionsRequestResource".equals(fieldName)) { return testPermissionsRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeGroupHttpRequest.java index b98589e335f2..098b43515c04 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeGroupHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private TestIamPermissionsNodeGroupHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("testPermissionsRequestResource")) { + if ("testPermissionsRequestResource".equals(fieldName)) { return testPermissionsRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeTemplateHttpRequest.java index 79ef2f08ae21..b24aec09af70 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeTemplateHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private TestIamPermissionsNodeTemplateHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("testPermissionsRequestResource")) { + if ("testPermissionsRequestResource".equals(fieldName)) { return testPermissionsRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionDiskHttpRequest.java index 8c2f58e277bc..2cd718eff901 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionDiskHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private TestIamPermissionsRegionDiskHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("testPermissionsRequestResource")) { + if ("testPermissionsRequestResource".equals(fieldName)) { return testPermissionsRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSnapshotHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSnapshotHttpRequest.java index 413a62234c0d..657b3a15c47e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSnapshotHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSnapshotHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private TestIamPermissionsSnapshotHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("testPermissionsRequestResource")) { + if ("testPermissionsRequestResource".equals(fieldName)) { return testPermissionsRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSubnetworkHttpRequest.java index c39ed6123ede..2950a9cba818 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSubnetworkHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private TestIamPermissionsSubnetworkHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } - if (fieldName.equals("testPermissionsRequestResource")) { + if ("testPermissionsRequestResource".equals(fieldName)) { return testPermissionsRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsRequest.java index 9778ff311a38..475355b7a7b6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private TestPermissionsRequest(List permissions) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("permissions")) { + if ("permissions".equals(fieldName)) { return permissions; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsResponse.java index 839f17d9ce64..270011665c85 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ private TestPermissionsResponse(List permissions) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("permissions")) { + if ("permissions".equals(fieldName)) { return permissions; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAccessConfigInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAccessConfigInstanceHttpRequest.java index 29f7d04ec065..f5ce946063aa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAccessConfigInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAccessConfigInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -78,37 +78,37 @@ private UpdateAccessConfigInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("accessConfigResource")) { + if ("accessConfigResource".equals(fieldName)) { return accessConfigResource; } - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("networkInterface")) { + if ("networkInterface".equals(fieldName)) { return networkInterface; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAutoscalerHttpRequest.java index c8cf4589f133..a8ef43480449 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAutoscalerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,40 +83,40 @@ private UpdateAutoscalerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("autoscaler")) { + if ("autoscaler".equals(fieldName)) { return autoscaler; } - if (fieldName.equals("autoscalerResource")) { + if ("autoscalerResource".equals(fieldName)) { return autoscalerResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } - if (fieldName.equals("zone")) { + if ("zone".equals(fieldName)) { return zone; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendBucketHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendBucketHttpRequest.java index a3cba193d0bb..6eedd5e93192 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendBucketHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendBucketHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private UpdateBackendBucketHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendBucket")) { + if ("backendBucket".equals(fieldName)) { return backendBucket; } - if (fieldName.equals("backendBucketResource")) { + if ("backendBucketResource".equals(fieldName)) { return backendBucketResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendServiceHttpRequest.java index 3c98531a4da3..9ec11f4936d6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private UpdateBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendService")) { + if ("backendService".equals(fieldName)) { return backendService; } - if (fieldName.equals("backendServiceResource")) { + if ("backendServiceResource".equals(fieldName)) { return backendServiceResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateFirewallHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateFirewallHttpRequest.java index 5198c3948385..977115f8342b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateFirewallHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateFirewallHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private UpdateFirewallHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("firewall")) { + if ("firewall".equals(fieldName)) { return firewall; } - if (fieldName.equals("firewallResource")) { + if ("firewallResource".equals(fieldName)) { return firewallResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHealthCheckHttpRequest.java index 3fbe2f90d087..4446016d90ed 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private UpdateHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("healthCheck")) { + if ("healthCheck".equals(fieldName)) { return healthCheck; } - if (fieldName.equals("healthCheckResource")) { + if ("healthCheckResource".equals(fieldName)) { return healthCheckResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpHealthCheckHttpRequest.java index 0f99507d7bd4..489006ab9205 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private UpdateHttpHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("httpHealthCheck")) { + if ("httpHealthCheck".equals(fieldName)) { return httpHealthCheck; } - if (fieldName.equals("httpHealthCheckResource")) { + if ("httpHealthCheckResource".equals(fieldName)) { return httpHealthCheckResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpsHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpsHealthCheckHttpRequest.java index 4d8801f50375..63b3f6fd399e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpsHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpsHealthCheckHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private UpdateHttpsHealthCheckHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("httpsHealthCheck")) { + if ("httpsHealthCheck".equals(fieldName)) { return httpsHealthCheck; } - if (fieldName.equals("httpsHealthCheckResource")) { + if ("httpsHealthCheckResource".equals(fieldName)) { return httpsHealthCheckResource; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateNetworkInterfaceInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateNetworkInterfaceInstanceHttpRequest.java index 35215417d404..41cac2f9727b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateNetworkInterfaceInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateNetworkInterfaceInstanceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,40 +83,40 @@ private UpdateNetworkInterfaceInstanceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("instance")) { + if ("instance".equals(fieldName)) { return instance; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("networkInterface")) { + if ("networkInterface".equals(fieldName)) { return networkInterface; } - if (fieldName.equals("networkInterfaceResource")) { + if ("networkInterfaceResource".equals(fieldName)) { return networkInterfaceResource; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionAutoscalerHttpRequest.java index 5b7c6a98897b..e38652a6576c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionAutoscalerHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,40 +83,40 @@ private UpdateRegionAutoscalerHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("autoscaler")) { + if ("autoscaler".equals(fieldName)) { return autoscaler; } - if (fieldName.equals("autoscalerResource")) { + if ("autoscalerResource".equals(fieldName)) { return autoscalerResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionBackendServiceHttpRequest.java index a4c19bf549c3..d31c6e483fa8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionBackendServiceHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private UpdateRegionBackendServiceHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("backendService")) { + if ("backendService".equals(fieldName)) { return backendService; } - if (fieldName.equals("backendServiceResource")) { + if ("backendServiceResource".equals(fieldName)) { return backendServiceResource; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRouterHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRouterHttpRequest.java index 66e36332461f..ee9dad0a0f7f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRouterHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRouterHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private UpdateRouterHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("router")) { + if ("router".equals(fieldName)) { return router; } - if (fieldName.equals("routerResource")) { + if ("routerResource".equals(fieldName)) { return routerResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateUrlMapHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateUrlMapHttpRequest.java index a4a7582fbfe5..81e50ca7714a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateUrlMapHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateUrlMapHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private UpdateUrlMapHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fieldMask")) { + if ("fieldMask".equals(fieldName)) { return fieldMask; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("requestId")) { + if ("requestId".equals(fieldName)) { return requestId; } - if (fieldName.equals("urlMap")) { + if ("urlMap".equals(fieldName)) { return urlMap; } - if (fieldName.equals("urlMapResource")) { + if ("urlMapResource".equals(fieldName)) { return urlMapResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMap.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMap.java index 5dcd204fe668..815ab029df18 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMap.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMap.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,37 +79,37 @@ private UrlMap( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("defaultService")) { + if ("defaultService".equals(fieldName)) { return defaultService; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("fingerprint")) { + if ("fingerprint".equals(fieldName)) { return fingerprint; } - if (fieldName.equals("hostRules")) { + if ("hostRules".equals(fieldName)) { return hostRules; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("pathMatchers")) { + if ("pathMatchers".equals(fieldName)) { return pathMatchers; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("tests")) { + if ("tests".equals(fieldName)) { return tests; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java index 5b0e50256652..d7e58e79c3f1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapList.java index 26767800b663..078bfe21f64c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private UrlMapList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapReference.java index eedff2c1705e..f56739183aa4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapReference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private UrlMapReference(String urlMap) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("urlMap")) { + if ("urlMap".equals(fieldName)) { return urlMap; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapSettings.java index 3c89299d6d9d..81532b9aedaa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapTest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapTest.java index 3807f0fcc592..860e64d16f91 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapTest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,16 +46,16 @@ private UrlMapTest(String description, String host, String path, String service) @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("host")) { + if ("host".equals(fieldName)) { return host; } - if (fieldName.equals("path")) { + if ("path".equals(fieldName)) { return path; } - if (fieldName.equals("service")) { + if ("service".equals(fieldName)) { return service; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapValidationResult.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapValidationResult.java index 66c142e88e07..223486366667 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapValidationResult.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapValidationResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,16 +51,16 @@ private UrlMapValidationResult( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("loadErrors")) { + if ("loadErrors".equals(fieldName)) { return loadErrors; } - if (fieldName.equals("loadSucceeded")) { + if ("loadSucceeded".equals(fieldName)) { return loadSucceeded; } - if (fieldName.equals("testFailures")) { + if ("testFailures".equals(fieldName)) { return testFailures; } - if (fieldName.equals("testPassed")) { + if ("testPassed".equals(fieldName)) { return testPassed; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateRequest.java index b966c622365a..0737be7bbc10 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private UrlMapsValidateRequest(UrlMap resource) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("resource")) { + if ("resource".equals(fieldName)) { return resource; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateResponse.java index 5ea9b6d68757..4fbc3ff68938 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ private UrlMapsValidateResponse(UrlMapValidationResult result) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("result")) { + if ("result".equals(fieldName)) { return result; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetwork.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetwork.java index df85592f2e7b..a5f733943a9d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetwork.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetwork.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,16 +51,16 @@ private UsableSubnetwork( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("ipCidrRange")) { + if ("ipCidrRange".equals(fieldName)) { return ipCidrRange; } - if (fieldName.equals("network")) { + if ("network".equals(fieldName)) { return network; } - if (fieldName.equals("secondaryIpRanges")) { + if ("secondaryIpRanges".equals(fieldName)) { return secondaryIpRanges; } - if (fieldName.equals("subnetwork")) { + if ("subnetwork".equals(fieldName)) { return subnetwork; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworkSecondaryRange.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworkSecondaryRange.java index d06cb814782b..9d2701a10d0f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworkSecondaryRange.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworkSecondaryRange.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private UsableSubnetworkSecondaryRange(String ipCidrRange, String rangeName) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("ipCidrRange")) { + if ("ipCidrRange".equals(fieldName)) { return ipCidrRange; } - if (fieldName.equals("rangeName")) { + if ("rangeName".equals(fieldName)) { return rangeName; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworksAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworksAggregatedList.java index da3f6a42b326..5b21b4e4b913 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworksAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworksAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private UsableSubnetworksAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsageExportLocation.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsageExportLocation.java index bc102b38b4a5..10d5c03109a7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsageExportLocation.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsageExportLocation.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private UsageExportLocation(String bucketName, String reportNamePrefix) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("bucketName")) { + if ("bucketName".equals(fieldName)) { return bucketName; } - if (fieldName.equals("reportNamePrefix")) { + if ("reportNamePrefix".equals(fieldName)) { return reportNamePrefix; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ValidateUrlMapHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ValidateUrlMapHttpRequest.java index 1e5b6f4c84f4..0ae43e50fe1e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ValidateUrlMapHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ValidateUrlMapHttpRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,31 +70,31 @@ private ValidateUrlMapHttpRequest( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("access_token")) { + if ("access_token".equals(fieldName)) { return access_token; } - if (fieldName.equals("callback")) { + if ("callback".equals(fieldName)) { return callback; } - if (fieldName.equals("fields")) { + if ("fields".equals(fieldName)) { return fields; } - if (fieldName.equals("key")) { + if ("key".equals(fieldName)) { return key; } - if (fieldName.equals("prettyPrint")) { + if ("prettyPrint".equals(fieldName)) { return prettyPrint; } - if (fieldName.equals("quotaUser")) { + if ("quotaUser".equals(fieldName)) { return quotaUser; } - if (fieldName.equals("urlMap")) { + if ("urlMap".equals(fieldName)) { return urlMap; } - if (fieldName.equals("urlMapsValidateRequestResource")) { + if ("urlMapsValidateRequestResource".equals(fieldName)) { return urlMapsValidateRequestResource; } - if (fieldName.equals("userIp")) { + if ("userIp".equals(fieldName)) { return userIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappings.java index 259102ee3f0e..6a8f4eea0341 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,10 +42,10 @@ private VmEndpointNatMappings( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("instanceName")) { + if ("instanceName".equals(fieldName)) { return instanceName; } - if (fieldName.equals("interfaceNatMappings")) { + if ("interfaceNatMappings".equals(fieldName)) { return interfaceNatMappings; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsInterfaceNatMappings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsInterfaceNatMappings.java index ab2840be4991..99901f4178d3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsInterfaceNatMappings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsInterfaceNatMappings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,16 +51,16 @@ private VmEndpointNatMappingsInterfaceNatMappings( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("natIpPortRanges")) { + if ("natIpPortRanges".equals(fieldName)) { return natIpPortRanges; } - if (fieldName.equals("numTotalNatPorts")) { + if ("numTotalNatPorts".equals(fieldName)) { return numTotalNatPorts; } - if (fieldName.equals("sourceAliasIpRange")) { + if ("sourceAliasIpRange".equals(fieldName)) { return sourceAliasIpRange; } - if (fieldName.equals("sourceVirtualIp")) { + if ("sourceVirtualIp".equals(fieldName)) { return sourceVirtualIp; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsList.java index 7cc878c60579..c04fc6fa9e91 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private VmEndpointNatMappingsList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("result")) { + if ("result".equals(fieldName)) { return result; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnel.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnel.java index bc5600876dc3..034a1cc1bba2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnel.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnel.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -103,55 +103,55 @@ private VpnTunnel( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("detailedStatus")) { + if ("detailedStatus".equals(fieldName)) { return detailedStatus; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("ikeVersion")) { + if ("ikeVersion".equals(fieldName)) { return ikeVersion; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("localTrafficSelector")) { + if ("localTrafficSelector".equals(fieldName)) { return localTrafficSelector; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("peerIp")) { + if ("peerIp".equals(fieldName)) { return peerIp; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("remoteTrafficSelector")) { + if ("remoteTrafficSelector".equals(fieldName)) { return remoteTrafficSelector; } - if (fieldName.equals("router")) { + if ("router".equals(fieldName)) { return router; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("sharedSecret")) { + if ("sharedSecret".equals(fieldName)) { return sharedSecret; } - if (fieldName.equals("sharedSecretHash")) { + if ("sharedSecretHash".equals(fieldName)) { return sharedSecretHash; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } - if (fieldName.equals("targetVpnGateway")) { + if ("targetVpnGateway".equals(fieldName)) { return targetVpnGateway; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelAggregatedList.java index 0d492688936a..aea8722c0b9d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private VpnTunnelAggregatedList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java index 5dc1898cb338..f69be3298ba9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelList.java index 0cef4a10395e..961743962bac 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private VpnTunnelList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelSettings.java index 2191e32b0435..0e644eed7723 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsScopedList.java index 5533080b7d06..e748f4fca7e0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsScopedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private VpnTunnelsScopedList(List vpnTunnels, Warning warning) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("vpnTunnels")) { + if ("vpnTunnels".equals(fieldName)) { return vpnTunnels; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warning.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warning.java index 9e16868d29cf..4e773729aa5b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warning.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warning.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,13 +44,13 @@ private Warning(String code, List data, String message) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("code")) { + if ("code".equals(fieldName)) { return code; } - if (fieldName.equals("data")) { + if ("data".equals(fieldName)) { return data; } - if (fieldName.equals("message")) { + if ("message".equals(fieldName)) { return message; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warnings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warnings.java index d4b0a810f0d4..8283c2508007 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warnings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warnings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,13 +44,13 @@ private Warnings(String code, List data, String message) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("code")) { + if ("code".equals(fieldName)) { return code; } - if (fieldName.equals("data")) { + if ("data".equals(fieldName)) { return data; } - if (fieldName.equals("message")) { + if ("message".equals(fieldName)) { return message; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnHostList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnHostList.java index 2d1b147f4e3f..307089de84bf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnHostList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnHostList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private XpnHostList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnResourceId.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnResourceId.java index 810cc2aa1797..a53a46069cff 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnResourceId.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnResourceId.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,10 +40,10 @@ private XpnResourceId(String id, String type) { @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("type")) { + if ("type".equals(fieldName)) { return type; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Zone.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Zone.java index 98dbd9478489..22e85cd04480 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Zone.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Zone.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,34 +75,34 @@ private Zone( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("availableCpuPlatforms")) { + if ("availableCpuPlatforms".equals(fieldName)) { return availableCpuPlatforms; } - if (fieldName.equals("creationTimestamp")) { + if ("creationTimestamp".equals(fieldName)) { return creationTimestamp; } - if (fieldName.equals("deprecated")) { + if ("deprecated".equals(fieldName)) { return deprecated; } - if (fieldName.equals("description")) { + if ("description".equals(fieldName)) { return description; } - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("name")) { + if ("name".equals(fieldName)) { return name; } - if (fieldName.equals("region")) { + if ("region".equals(fieldName)) { return region; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("status")) { + if ("status".equals(fieldName)) { return status; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneClient.java index 84ca057e4b8e..0599a4740ca7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneList.java index 1ede1d1a5726..2010585f8843 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneList.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,22 +59,22 @@ private ZoneList( @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("id")) { + if ("id".equals(fieldName)) { return id; } - if (fieldName.equals("items")) { + if ("items".equals(fieldName)) { return items; } - if (fieldName.equals("kind")) { + if ("kind".equals(fieldName)) { return kind; } - if (fieldName.equals("nextPageToken")) { + if ("nextPageToken".equals(fieldName)) { return nextPageToken; } - if (fieldName.equals("selfLink")) { + if ("selfLink".equals(fieldName)) { return selfLink; } - if (fieldName.equals("warning")) { + if ("warning".equals(fieldName)) { return warning; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationClient.java index c17fda2b1c4e..dc0774a7bc4a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationSettings.java index 51a063156462..7d0684c08cd6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetLabelsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetLabelsRequest.java index e2a6f547e87b..3daa8b78eef6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetLabelsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetLabelsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,10 +41,10 @@ private ZoneSetLabelsRequest(String labelFingerprint, Map labels @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("labelFingerprint")) { + if ("labelFingerprint".equals(fieldName)) { return labelFingerprint; } - if (fieldName.equals("labels")) { + if ("labels".equals(fieldName)) { return labels; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetPolicyRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetPolicyRequest.java index f73c79d9fdf2..98666cba9fef 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetPolicyRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetPolicyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,13 +44,13 @@ private ZoneSetPolicyRequest(List bindings, String etag, Policy policy) @Override public Object getFieldValue(String fieldName) { - if (fieldName.equals("bindings")) { + if ("bindings".equals(fieldName)) { return bindings; } - if (fieldName.equals("etag")) { + if ("etag".equals(fieldName)) { return etag; } - if (fieldName.equals("policy")) { + if ("policy".equals(fieldName)) { return policy; } return null; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSettings.java index 6cf62c470e32..e903a67bcd24 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java index dd17854d59ca..62f6781bacfe 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypeStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypeStub.java index 3fec3f9376cb..7ca678245d0a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypeStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypeStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypeStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypeStubSettings.java index d08532cf5625..72d5a3ca4d54 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypeStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypeStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java index 3142103f7467..22bf14f60f80 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStubSettings.java index c1bc7afc96e6..b55480be3ec8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java index 7b2c3317a099..d713b8e587c6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStubSettings.java index 8e31ee563a9f..546c6997be9f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStub.java index 022d99aaa476..0b11c5b40aee 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStubSettings.java index 22e4fe2f3e74..acdd245d802a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStub.java index 0235ee87d262..e8463750305d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStubSettings.java index 1f40535a95c8..0d9bd047475c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java index 7dbb791f2576..ff83aef3950d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStubSettings.java index cfa42ce12b49..4e7bc404810f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypeStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypeStub.java index fa2cee066b32..ff33dae971c2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypeStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypeStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypeStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypeStubSettings.java index 5ea654041d24..ed3c6109466e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypeStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypeStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStub.java index 2341273aea62..543b18dea5f9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStubSettings.java index a8c19ccd8a02..c9bc99f66b8b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java index d1d56ff4fc38..362e65f7e3f0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStubSettings.java index f43884c47418..04f0b0b2967e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStub.java index 4e6fe7008536..9082e4ff0093 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStubSettings.java index e0b77e17371b..e05c845daa68 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStub.java index 226fdbdf0d63..f7adbbec36f3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStubSettings.java index 133a6b5339a7..9b520926ca60 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStub.java index e3951231c74f..3fa9174f2d9c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStubSettings.java index 1dc97b948e13..54125f13d802 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStub.java index 3e7064534dc1..9d76b2872586 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStubSettings.java index a31d115f77f6..7ee4a09758a8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStub.java index 84676af100df..8858c6194d48 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStubSettings.java index aba43fda0d05..22a22f9b553b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java index 12849d1a252e..4cfae18316bd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeStub.java index 597842fdabe8..d65510573ca3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java index 43522b0186e6..69365a14f053 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java index 7092da29b4c0..5cc0e5614938 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java index 72e927a72753..c809bd99b192 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java index 5247f8519acd..f0ce30433123 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java index d5c304703394..25f2a59c0cff 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketStub.java index a5b31c2f5fb0..67bce61c7446 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java index 2e6d68cd1908..d8c3a181ec7c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceStub.java index ed2b73e20203..e67026c332fe 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java index 6b35ba6b38f6..26772348f613 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java index 7ebeaf5fc5eb..689ff9876128 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java index 6408a26b6d3a..928e628b530a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeStub.java index 8831d983a454..cc318524d1fb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java index ad34a00a93a9..16199de782e1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallStub.java index 468a6224f60a..f592ee9cc377 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java index d951fb6373f0..3a4bf5f6e844 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java index f6adf2664a38..03caf5adabbb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java index 7bfc99b5d0a8..62da914a4012 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressStub.java index 2b904500960f..b22c934da4b6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java index 8d8918a8af20..584a93b0104b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleStub.java index fa77e0ea9c16..0b34f52ee443 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java index 0b7c72fcd525..b23bc230a52f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationStub.java index ba198e28cb7e..7f8cf57ce81c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java index 8c75c78c8871..6eef2549ec3a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckStub.java index 7a376c55eedd..8b29707770d6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java index 38561aff0603..56a61bba2c97 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckStub.java index 5e95d6cba767..8cde8bdfe4ca 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java index c290e0fc58a7..a34e901537d3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckStub.java index 6005410adb56..ae64022b6cf4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java index 2ab8f66e8e7b..143b1de15f99 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageStub.java index 8e3b546e0df4..c946d32c9fce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java index 4866cc448499..1c68f61d2dbf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java index 248810e6f9cd..8247b0fa6708 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java index 1472a24b1411..5f26d7a7eeee 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java index 62fb100df4d6..eb51bbde5a80 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java index 788a010acc13..698fa8df33b2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java index 4039e7308bc2..0e54b2f419eb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java index fa0f1dca2b34..eb1d219984ed 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateStub.java index cc138ffb68ee..0a6549a48fa6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java index 719bc7630711..5e7ed80b7b6b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java index 75d2bc61be28..cfac96c1de41 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java index 900ee9f7070b..005b9bc35e25 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java index 163d3fc8f470..8b8bdc9a3f46 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationStub.java index e8c631e04b58..5f9e8cb11cfb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectStub.java index c6f3c1b007cb..a3b8c7c66fea 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java index 9209664298a0..347d5fbe9dcd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java index 214b28ee2a1a..851adb6dc07e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeStub.java index 6d6cb808fb5d..5b87604900db 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseStub.java index b9365d99a919..9b34a9667d73 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java index c7bf6f0a3188..cdbb974f6936 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeStub.java index 3481d3b7a886..b927c97a0891 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java index f693074eb19a..bf5a46c9941c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkStub.java index e6749f921a7b..33d352747e58 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java index 804cb153875f..f13957c45b0c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java index f90843cda444..69e6cabc81d9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java index 7b7a640fb586..d1945ac2207a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java index 2120f6bd9abe..fdcb15ac394b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java index 9c48a3455a42..3507770f5f95 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeStub.java index 04aaa41fdc04..e4582dd762a0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java index d89c6781bf52..8c4f2a3843ca 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectStub.java index 756ce5f85529..8c5ba3d6f86d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java index d91f04332155..028dd7ee0d48 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java index 14edae389a0e..bba45e3c6b1d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java index 48330cb23652..33b0dbe1575f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java index dda6e4aa0ab3..bba503ee377e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java index 6c2a461e2d6e..a4f59c2af3b7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java index 5654591bd723..ee7033a26498 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java index 5dfe80b2b250..f663e13f1027 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java index ee8812df9c2c..75d069e610d5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java index da608a53ae8c..4acf4f0ca240 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java index c6e1622f287e..19cac958665a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeStub.java index ea333312e0fa..a709c89e6159 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java index 6bc9048c077d..f6cf1a937e52 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java index adec8f036bd9..1d3cc2486d7a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java index 9db073010795..ef39cdfb0ef9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java index a3449b0d5f30..6146a000a984 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java index 4d229d0d4f04..25091b74575e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationStub.java index b29c529b77b9..45541f5760e3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionStub.java index 873fb2367dac..06f60eb75023 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java index 5f56c2801b66..e8fa8bdb5b38 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteStub.java index 1e148d400c27..2fdf0bd0d5c8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java index 003c575887c0..b875a6777070 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java index 5b51e625c303..1fabc642a139 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java index 937100114a71..4a93225f5329 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyStub.java index fadbef26d3e2..088e54bd8495 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java index c1390a782351..29e105d62789 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotStub.java index 191fc8d9051b..c63bdf9ec090 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java index de7ede7ad904..9adb16e4921e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateStub.java index e1745d8b7bc4..302473618bce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java index e3c7f47d3b12..06b68d1c85a4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyStub.java index 7d2aa520fa59..eb476c418106 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java index 061b00e19d90..47d2c1a62a63 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java index 2a0338c79237..80cad7918e47 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java index 06dccd590665..7f5fae37970a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyStub.java index 9b774747118b..44ed155a14f6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java index 8648d3de3d4d..d1901422ed86 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyStub.java index 019cd7079deb..3fbe48b0d04c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java index 59045c2cfc38..f7edec6f9894 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java index 6c72a4757756..016b8839ef02 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java index cd90fcb13ba4..5b81d1ea2886 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java index 4f7711c7a176..0ff9945df4eb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java index f21ed3ad7be5..e666655bc1c2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyStub.java index ed85e9da385d..12e1ef4be84c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java index 02ba0c5f433d..f355beddcac3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyStub.java index f9730e9be9ad..5fe962bde06f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java index 17d1d515a875..46b4a202bd21 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java index fecf358a7ac4..acad41daa6da 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java index 9567bd5ddb95..ab9bd4cbe8e9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapStub.java index e50d38214193..d5bbf9fa0bfb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java index 2d0cdcfdb55c..96616805bbbe 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java index f5c8756cc4a8..05812a8a9ff4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java index 03605bbea89c..c48aee25f81c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java index ecd6e00616c9..572e3f39edba 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationStub.java index 76ecb0954782..755fa09a8df5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneStub.java index 2e5d57eedf72..a7727977fcb4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStub.java index fd8c36e81bdb..c3b6218c1139 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStubSettings.java index 2694c7227633..3dc2a7f4be90 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStub.java index 0b7430c27f2a..d9ba6a8583a0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStubSettings.java index 5383bcb8957c..aa939c97d53c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java index 202d852ce5a1..52517c11d822 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStubSettings.java index 9befca23171d..0e1aad903d62 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java index 077ebf34ec5c..b2cca5bba6fd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStubSettings.java index 9a0b784a7d69..a7d55573eb55 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java index 0a121dcb46b4..e06e430fa527 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStubSettings.java index 2c07e4469c1a..89dc19dc04e1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStub.java index 6826da8ccf02..c92f7c018a8f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStubSettings.java index 65d938e29e3d..929ef444f52f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java index fa2a25772671..1b0da50e79bc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStubSettings.java index 4533c0858da6..314631ec2407 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationStub.java index f10640d33bb3..10ef9ce583b0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationStubSettings.java index 59ddb4a7ace1..cb4102fa7a6e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStub.java index cb307e07bb6b..c2f7c771b9a6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStubSettings.java index baa6c7f13a43..d1654a486734 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodeStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodeStub.java index e2f43b1fa349..0953d497a039 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodeStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodeStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodeStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodeStubSettings.java index 70ffc2ff4679..94aa9d5638e4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodeStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodeStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStub.java index da237b0d97ef..72a9eb167991 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStubSettings.java index 94f1403e37ea..dcae267c4ab3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypeStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypeStub.java index 3890bfb9c6c9..005a14016c08 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypeStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypeStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypeStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypeStubSettings.java index 191d7d92064e..a80e74da40cd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypeStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypeStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStub.java index e46a6238a8aa..0209b2a07de1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStubSettings.java index 900d2f55491f..bf57d324473c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java index 10555e25c1a2..8960e25088d4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStubSettings.java index 431aba42d04f..d3efef6d7dc1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java index 34cc37c2361d..b85f5710d2d7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStubSettings.java index 00fca4cbf9b0..63f18b45a8c2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypeStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypeStub.java index 70bc6a0de1aa..d77ecc60fdbe 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypeStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypeStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypeStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypeStubSettings.java index 226118fd1eaa..c72ddfdb75a5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypeStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypeStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStub.java index e72422cf47cf..a5afbd05c9ee 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStubSettings.java index d3d074097895..2bac85100c40 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java index c83d400d32ae..8db346166822 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStubSettings.java index 5ec4668c2bd8..bbcd2eb3d03a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java index b10c28c713fe..4b725dfe9527 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStubSettings.java index 63bfddaba331..8c6f3090b032 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java index f7af537a7fb7..2d2c7f95963e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStubSettings.java index f735f227ba65..0086e52824a1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java index 50b83ed2fc9c..5d84d47fc357 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStubSettings.java index 60d74ec4f644..4351304b56f8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypeStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypeStub.java index 3ef40332f420..0e7001d360c7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypeStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypeStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypeStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypeStubSettings.java index 40502bd0ea35..fe6cbd5f0d48 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypeStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypeStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java index f349acbf4047..1e4f2e54eb49 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStubSettings.java index 4019d1794252..224d88b85f24 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java index a885aef44fac..ff7a5de24ec3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStubSettings.java index 39248c040488..43f3dfc8ac75 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStub.java index de3eb337a809..825ab26e68e7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStubSettings.java index bf56763152c7..f1c24a5e7ebf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionStub.java index 6bcf9a4e29fa..f88d2280834e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionStubSettings.java index 6768a9123426..a86f4c0f3ecb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStub.java index a39b9b670eeb..956aae024656 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStubSettings.java index 5aeabc21a44b..f37eaeee99a4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java index 9a305410d015..0bbfb0d71dce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStubSettings.java index e3db468eee36..02b70357c5f9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStub.java index 0d05e66228cd..807fd5060952 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStubSettings.java index 9ecc91ce4926..49db0551ec34 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStub.java index 77e8df4b6ca7..824164e3a28e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStubSettings.java index 48d3e6f24c55..7ad014ccf692 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStub.java index 5faa091d4e6c..3e820287742d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStubSettings.java index 45ab2f27c809..fb736590ccfc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStub.java index dbf578db3371..162443fd6418 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStubSettings.java index 501adab34abb..b9a67d66870c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java index 45893df4e72b..1980048c428a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStubSettings.java index e1ba250980cd..6d892da84215 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStub.java index 60b9a7405540..275dc5133f18 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStubSettings.java index 261830f6f919..fcf84df01b87 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStub.java index 7a22014425f9..6e41b579ebe2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStubSettings.java index d6f18f92aa11..e5afe66bfbcf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java index 733993de1451..d57a48cfcc29 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStubSettings.java index f14eccf1b0c9..ba1e2feb85bf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java index 1124cae057b4..cc0b3a9fe79e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStubSettings.java index 49c25403f7bf..604bea73078c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStub.java index 4197e356e044..e08d1a566eac 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStubSettings.java index 2dac91a9f672..8bd70734100d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStub.java index 4c6a492564a1..c30a2026807d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStubSettings.java index d79a1b414656..81e42575a183 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java index aa8b3f9d2150..93ab073a4505 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStubSettings.java index 2616df0fa097..51ed7223273a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStub.java index 2e5980d94ee1..fa86b6d1cd0e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStubSettings.java index 6127ec98aca7..0042d4c4c708 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java index 0d606eb8e489..88dd0fbbe80b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStubSettings.java index d4028c69474d..be2a5c4d3de3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStub.java index b7c536fee7c6..64caca8766f5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStubSettings.java index cb5d1499bd1d..6c99dad00922 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneStub.java index 75f8b4c3032d..4178683633dd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneStubSettings.java index b797979493ef..2cdd0202e82e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AcceleratorTypeClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AcceleratorTypeClientTest.java index 848698f72f2a..8962f17f0491 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AcceleratorTypeClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AcceleratorTypeClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AddressClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AddressClientTest.java index f9e139fe791c..c36a81a4ff3e 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AddressClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AddressClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AutoscalerClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AutoscalerClientTest.java index 6caa9063fb9d..094588d075dc 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AutoscalerClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AutoscalerClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketClientTest.java index 2a16c128a237..e0175e0fe094 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServiceClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServiceClientTest.java index 3b4e41928dbf..caef050619f6 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServiceClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskClientTest.java index 5ac3d355a3ed..1a19c5c59a4a 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskTypeClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskTypeClientTest.java index 303948a87267..fa24bc21ca3c 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskTypeClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskTypeClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java index 9cc16b22ef72..b000a48f3f0f 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ForwardingRuleClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ForwardingRuleClientTest.java index 1bc88a41c7d6..7bcb49353645 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ForwardingRuleClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ForwardingRuleClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalAddressClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalAddressClientTest.java index e119656eea9a..3e1471aaf21c 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalAddressClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalAddressClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalForwardingRuleClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalForwardingRuleClientTest.java index 2084afe1422e..eb92bfd76e83 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalForwardingRuleClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalForwardingRuleClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalOperationClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalOperationClientTest.java index 0bda5aacd61d..9227dadaef84 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalOperationClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalOperationClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HealthCheckClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HealthCheckClientTest.java index b2acb5aba1ec..83b79f867534 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HealthCheckClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HealthCheckClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpHealthCheckClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpHealthCheckClientTest.java index 9fe0d57c26df..744668a725a4 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpHealthCheckClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpHealthCheckClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpsHealthCheckClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpsHealthCheckClientTest.java index dc6e9235a9d2..597b5a9f5c1e 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpsHealthCheckClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpsHealthCheckClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ImageClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ImageClientTest.java index e4c1f31f34a5..db3b6e1a3a2e 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ImageClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ImageClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java index 6f15af28ae58..55611efc3005 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupClientTest.java index 8505995a144c..af1ee4f7fb90 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerClientTest.java index 1b889128a7e0..78b7e7d2950d 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceTemplateClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceTemplateClientTest.java index dfe4cca95bf3..a064d105473b 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceTemplateClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceTemplateClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectAttachmentClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectAttachmentClientTest.java index 9c18f2ea05ed..d2b3a68a9b61 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectAttachmentClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectAttachmentClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectClientTest.java index edfe19f356c2..8b1fc0ef70ef 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectLocationClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectLocationClientTest.java index 489b69546dab..26c121f06bd2 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectLocationClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectLocationClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseClientTest.java index 4a3efc681b37..a8601f219967 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseCodeClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseCodeClientTest.java index 23764baf9d25..2154dd22e074 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseCodeClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseCodeClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/MachineTypeClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/MachineTypeClientTest.java index de27b3841cd7..922adb0b092e 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/MachineTypeClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/MachineTypeClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkClientTest.java index fffa60668205..544902c5ad13 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeGroupClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeGroupClientTest.java index fd4cd32c0f50..7830a65b8731 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeGroupClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeGroupClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTemplateClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTemplateClientTest.java index b9e53bd1506c..f43dd7ec6191 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTemplateClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTemplateClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTypeClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTypeClientTest.java index 5e5dc1102bce..f492faf29f5a 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTypeClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTypeClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ProjectClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ProjectClientTest.java index fc012079019c..d8e0c9de7d6d 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ProjectClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ProjectClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionAutoscalerClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionAutoscalerClientTest.java index 11c69c56904c..da291a0dacaa 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionAutoscalerClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionAutoscalerClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServiceClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServiceClientTest.java index 8ec0980a4ea2..584bb8ea50bb 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServiceClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionClientTest.java index 898958f3a4a5..0eb0666a1718 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentClientTest.java index 0eb4b183c734..7141e939bb43 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskClientTest.java index 211cbf186c95..eed7b29ae388 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskTypeClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskTypeClientTest.java index 811216befd96..69f1106a512b 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskTypeClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskTypeClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupClientTest.java index 7047fc233333..c28ef2257772 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClientTest.java index 8c663dbc365e..d1d9a987f70e 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionOperationClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionOperationClientTest.java index 5662ccc3fc6f..6eb9d7ad28e5 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionOperationClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionOperationClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouteClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouteClientTest.java index afbe64a60e2a..c35e2d34253d 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouteClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouteClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouterClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouterClientTest.java index f93e7bb2d6df..a44f43aaf040 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouterClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouterClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SecurityPolicyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SecurityPolicyClientTest.java index 2d9fc69a38ac..3bf4a1628b63 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SecurityPolicyClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SecurityPolicyClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotClientTest.java index 4c96e6e8dada..ae2c62192d86 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslCertificateClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslCertificateClientTest.java index 38146e8cc8ae..ce29dc061bf6 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslCertificateClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslCertificateClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslPolicyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslPolicyClientTest.java index e7a813b35093..6b5dce859567 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslPolicyClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslPolicyClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SubnetworkClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SubnetworkClientTest.java index a93c7e7df650..bcd1aea48d0a 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SubnetworkClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SubnetworkClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpProxyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpProxyClientTest.java index cc80d961bc98..c89383fdecf1 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpProxyClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpProxyClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpsProxyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpsProxyClientTest.java index 22d4e617755a..1aa81a8fab64 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpsProxyClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpsProxyClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetInstanceClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetInstanceClientTest.java index 9eb37dcebe8b..5b3c13b8841b 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetInstanceClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetInstanceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetPoolClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetPoolClientTest.java index 26cd0eb2b691..b1c9e7e4e39d 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetPoolClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetPoolClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetSslProxyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetSslProxyClientTest.java index 3b650b1bff9d..4283c4c670b0 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetSslProxyClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetSslProxyClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetTcpProxyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetTcpProxyClientTest.java index 7c56ffccbb68..c422fa0df499 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetTcpProxyClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetTcpProxyClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetVpnGatewayClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetVpnGatewayClientTest.java index e380f9d218bf..a37e859c36e5 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetVpnGatewayClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetVpnGatewayClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/UrlMapClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/UrlMapClientTest.java index 959c60a4991e..f7a3e92d9d34 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/UrlMapClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/UrlMapClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/VpnTunnelClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/VpnTunnelClientTest.java index e396fc5e0ee7..277c15f8343f 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/VpnTunnelClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/VpnTunnelClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ZoneClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ZoneClientTest.java index e4831b42ec6e..dcbec1c63f80 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ZoneClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ZoneClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ZoneOperationClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ZoneOperationClientTest.java index 1a189d2b9e30..bb7b9099db98 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ZoneOperationClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ZoneOperationClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-compute/synth.metadata b/google-cloud-clients/google-cloud-compute/synth.metadata index c9c3aef4a486..431ce8724ba7 100644 --- a/google-cloud-clients/google-cloud-compute/synth.metadata +++ b/google-cloud-clients/google-cloud-compute/synth.metadata @@ -1,18 +1,18 @@ { - "updateTime": "2019-01-11T08:36:38.993872Z", + "updateTime": "2019-01-17T08:37:47.445365Z", "sources": [ { "git": { "name": "discovery-artifact-manager", "remote": "https://github.com/googleapis/discovery-artifact-manager.git", - "sha": "8349004ea788d5abad27dc84761eb94ea3e6fc86" + "sha": "01b82d5d2308f7e0f342d9303e173bd6381607e4" } }, { "generator": { "name": "artman", - "version": "0.16.5", - "dockerImage": "googleapis/artman@sha256:5a96c2c5c6f9570cc9556b63dc9ce1838777fd9166b5b64e43ad8e0ecee2fe2c" + "version": "0.16.6", + "dockerImage": "googleapis/artman@sha256:12722f2ca3fbc3b53cc6aa5f0e569d7d221b46bd876a2136497089dec5e3634e" } } ]