diff --git a/google-api-grpc/grpc-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceGrpc.java b/google-api-grpc/grpc-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceGrpc.java index 7aa36353543d..c7cfc4e7ad96 100644 --- a/google-api-grpc/grpc-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceGrpc.java +++ b/google-api-grpc/grpc-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceGrpc.java @@ -138,7 +138,7 @@ public static abstract class AssetServiceImplBase implements io.grpc.BindableSer /** *
* Exports assets with time and resource types to a given Google Cloud Storage - * location. The output format is newline delimited JSON. + * location. The output format is newline-delimited JSON. * This API implements the [google.longrunning.Operation][google.longrunning.Operation] API allowing users * to keep track of the export. *@@ -206,7 +206,7 @@ protected AssetServiceStub build(io.grpc.Channel channel, /** *
* Exports assets with time and resource types to a given Google Cloud Storage - * location. The output format is newline delimited JSON. + * location. The output format is newline-delimited JSON. * This API implements the [google.longrunning.Operation][google.longrunning.Operation] API allowing users * to keep track of the export. *@@ -257,7 +257,7 @@ protected AssetServiceBlockingStub build(io.grpc.Channel channel, /** *
* Exports assets with time and resource types to a given Google Cloud Storage - * location. The output format is newline delimited JSON. + * location. The output format is newline-delimited JSON. * This API implements the [google.longrunning.Operation][google.longrunning.Operation] API allowing users * to keep track of the export. *@@ -306,7 +306,7 @@ protected AssetServiceFutureStub build(io.grpc.Channel channel, /** *
* Exports assets with time and resource types to a given Google Cloud Storage - * location. The output format is newline delimited JSON. + * location. The output format is newline-delimited JSON. * This API implements the [google.longrunning.Operation][google.longrunning.Operation] API allowing users * to keep track of the export. *diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Asset.java b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Asset.java index 187869b9274f..332ce56b2abd 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Asset.java +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Asset.java @@ -35,9 +35,6 @@ private Asset( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -49,6 +46,13 @@ private Asset( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -87,13 +91,6 @@ private Asset( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,7 +108,6 @@ private Asset( return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_Asset_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_Asset_fieldAccessorTable @@ -279,7 +275,6 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -289,7 +284,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -307,7 +301,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -455,7 +448,6 @@ public static com.google.cloud.asset.v1beta1.Asset parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -463,7 +455,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.asset.v1beta1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -492,7 +483,6 @@ public static final class Builder extends return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_Asset_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_Asset_fieldAccessorTable @@ -515,7 +505,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -537,18 +526,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_Asset_descriptor; } - @java.lang.Override public com.google.cloud.asset.v1beta1.Asset getDefaultInstanceForType() { return com.google.cloud.asset.v1beta1.Asset.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.asset.v1beta1.Asset build() { com.google.cloud.asset.v1beta1.Asset result = buildPartial(); if (!result.isInitialized()) { @@ -557,7 +543,6 @@ public com.google.cloud.asset.v1beta1.Asset build() { return result; } - @java.lang.Override public com.google.cloud.asset.v1beta1.Asset buildPartial() { com.google.cloud.asset.v1beta1.Asset result = new com.google.cloud.asset.v1beta1.Asset(this); result.name_ = name_; @@ -576,39 +561,32 @@ public com.google.cloud.asset.v1beta1.Asset buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.asset.v1beta1.Asset) { return mergeFrom((com.google.cloud.asset.v1beta1.Asset)other); @@ -639,12 +617,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1beta1.Asset other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1170,13 +1146,11 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() { } return iamPolicyBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1198,12 +1172,11 @@ public static com.google.cloud.asset.v1beta1.Asset getDefaultInstance() { private static final com.google.protobuf.Parser
* Required. The relative name of the root asset. It can only be an - * organization ID (e.g. "organizations/123") or a project ID - * (e.g. "projects/12345"). + * organization number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id")"or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -145,8 +141,8 @@ public java.lang.String getParent() {
/**
* * Required. The relative name of the root asset. It can only be an - * organization ID (e.g. "organizations/123") or a project ID - * (e.g. "projects/12345"). + * organization number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id")"or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -173,7 +169,8 @@ public java.lang.String getParent() {
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -188,7 +185,8 @@ public java.lang.String getParent() {
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -202,7 +200,8 @@ public int getAssetNamesCount() {
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -216,7 +215,8 @@ public java.lang.String getAssetNames(int index) {
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -246,7 +246,6 @@ public int getContentTypeValue() {
* .google.cloud.asset.v1beta1.ContentType content_type = 3;
*/
public com.google.cloud.asset.v1beta1.ContentType getContentType() {
- @SuppressWarnings("deprecation")
com.google.cloud.asset.v1beta1.ContentType result = com.google.cloud.asset.v1beta1.ContentType.valueOf(contentType_);
return result == null ? com.google.cloud.asset.v1beta1.ContentType.UNRECOGNIZED : result;
}
@@ -255,9 +254,9 @@ public com.google.cloud.asset.v1beta1.ContentType getContentType() {
private com.google.cloud.asset.v1beta1.TimeWindow readTimeWindow_;
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
@@ -267,9 +266,9 @@ public boolean hasReadTimeWindow() {
}
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
@@ -279,9 +278,9 @@ public com.google.cloud.asset.v1beta1.TimeWindow getReadTimeWindow() {
}
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
@@ -291,7 +290,6 @@ public com.google.cloud.asset.v1beta1.TimeWindowOrBuilder getReadTimeWindowOrBui
}
private byte memoizedIsInitialized = -1;
- @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -301,7 +299,6 @@ public final boolean isInitialized() {
return true;
}
- @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getParentBytes().isEmpty()) {
@@ -319,7 +316,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
unknownFields.writeTo(output);
}
- @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -468,7 +464,6 @@ public static com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest parseF
.parseWithIOException(PARSER, input, extensionRegistry);
}
- @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
@@ -476,7 +471,6 @@ public static Builder newBuilder() {
public static Builder newBuilder(com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
- @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
@@ -504,7 +498,6 @@ public static final class Builder extends
return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_BatchGetAssetsHistoryRequest_descriptor;
}
- @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_BatchGetAssetsHistoryRequest_fieldAccessorTable
@@ -527,7 +520,6 @@ private void maybeForceBuilderInitialization() {
.alwaysUseFieldBuilders) {
}
}
- @java.lang.Override
public Builder clear() {
super.clear();
parent_ = "";
@@ -545,18 +537,15 @@ public Builder clear() {
return this;
}
- @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_BatchGetAssetsHistoryRequest_descriptor;
}
- @java.lang.Override
public com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest getDefaultInstanceForType() {
return com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest.getDefaultInstance();
}
- @java.lang.Override
public com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest build() {
com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest result = buildPartial();
if (!result.isInitialized()) {
@@ -565,7 +554,6 @@ public com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest build() {
return result;
}
- @java.lang.Override
public com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest buildPartial() {
com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest result = new com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest(this);
int from_bitField0_ = bitField0_;
@@ -587,39 +575,32 @@ public com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest buildPartial(
return result;
}
- @java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
- @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
- @java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
- @java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
- @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
- @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
- @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest) {
return mergeFrom((com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest)other);
@@ -656,12 +637,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryReq
return this;
}
- @java.lang.Override
public final boolean isInitialized() {
return true;
}
- @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -685,8 +664,8 @@ public Builder mergeFrom(
/**
* * Required. The relative name of the root asset. It can only be an - * organization ID (e.g. "organizations/123") or a project ID - * (e.g. "projects/12345"). + * organization number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id")"or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -706,8 +685,8 @@ public java.lang.String getParent() {
/**
* * Required. The relative name of the root asset. It can only be an - * organization ID (e.g. "organizations/123") or a project ID - * (e.g. "projects/12345"). + * organization number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id")"or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -728,8 +707,8 @@ public java.lang.String getParent() {
/**
* * Required. The relative name of the root asset. It can only be an - * organization ID (e.g. "organizations/123") or a project ID - * (e.g. "projects/12345"). + * organization number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id")"or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -747,8 +726,8 @@ public Builder setParent(
/**
* * Required. The relative name of the root asset. It can only be an - * organization ID (e.g. "organizations/123") or a project ID - * (e.g. "projects/12345"). + * organization number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id")"or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -762,8 +741,8 @@ public Builder clearParent() {
/**
* * Required. The relative name of the root asset. It can only be an - * organization ID (e.g. "organizations/123") or a project ID - * (e.g. "projects/12345"). + * organization number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id")"or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -793,7 +772,8 @@ private void ensureAssetNamesIsMutable() {
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -808,7 +788,8 @@ private void ensureAssetNamesIsMutable() {
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -822,7 +803,8 @@ public int getAssetNamesCount() {
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -836,7 +818,8 @@ public java.lang.String getAssetNames(int index) {
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -851,7 +834,8 @@ public java.lang.String getAssetNames(int index) {
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -872,7 +856,8 @@ public Builder setAssetNames(
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -893,7 +878,8 @@ public Builder addAssetNames(
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -912,7 +898,8 @@ public Builder addAllAssetNames(
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -929,7 +916,8 @@ public Builder clearAssetNames() {
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -977,7 +965,6 @@ public Builder setContentTypeValue(int value) {
* .google.cloud.asset.v1beta1.ContentType content_type = 3;
*/
public com.google.cloud.asset.v1beta1.ContentType getContentType() {
- @SuppressWarnings("deprecation")
com.google.cloud.asset.v1beta1.ContentType result = com.google.cloud.asset.v1beta1.ContentType.valueOf(contentType_);
return result == null ? com.google.cloud.asset.v1beta1.ContentType.UNRECOGNIZED : result;
}
@@ -1016,9 +1003,9 @@ public Builder clearContentType() {
com.google.cloud.asset.v1beta1.TimeWindow, com.google.cloud.asset.v1beta1.TimeWindow.Builder, com.google.cloud.asset.v1beta1.TimeWindowOrBuilder> readTimeWindowBuilder_;
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
@@ -1028,9 +1015,9 @@ public boolean hasReadTimeWindow() {
}
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
@@ -1044,9 +1031,9 @@ public com.google.cloud.asset.v1beta1.TimeWindow getReadTimeWindow() {
}
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
@@ -1066,9 +1053,9 @@ public Builder setReadTimeWindow(com.google.cloud.asset.v1beta1.TimeWindow value
}
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
@@ -1086,9 +1073,9 @@ public Builder setReadTimeWindow(
}
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
@@ -1110,9 +1097,9 @@ public Builder mergeReadTimeWindow(com.google.cloud.asset.v1beta1.TimeWindow val
}
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
@@ -1130,9 +1117,9 @@ public Builder clearReadTimeWindow() {
}
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
@@ -1144,9 +1131,9 @@ public com.google.cloud.asset.v1beta1.TimeWindow.Builder getReadTimeWindowBuilde
}
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
@@ -1161,9 +1148,9 @@ public com.google.cloud.asset.v1beta1.TimeWindowOrBuilder getReadTimeWindowOrBui
}
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
@@ -1181,13 +1168,11 @@ public com.google.cloud.asset.v1beta1.TimeWindowOrBuilder getReadTimeWindowOrBui
}
return readTimeWindowBuilder_;
}
- @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
- @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
@@ -1209,12 +1194,11 @@ public static com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest getDef
private static final com.google.protobuf.Parser* Required. The relative name of the root asset. It can only be an - * organization ID (e.g. "organizations/123") or a project ID - * (e.g. "projects/12345"). + * organization number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id")"or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -20,8 +20,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
/**
* * Required. The relative name of the root asset. It can only be an - * organization ID (e.g. "organizations/123") or a project ID - * (e.g. "projects/12345"). + * organization number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id")"or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -35,7 +35,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -48,7 +49,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -60,7 +62,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -72,7 +75,8 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
* https://cloud.google.com/apis/design/resource_names#full_resource_name
* Example:
* "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1".
- * The request becomes a no-op if the asset name list is empty.
+ * The request becomes a no-op if the asset name list is empty, and the max
+ * size of the asset name list is 100 in one request.
*
*
* repeated string asset_names = 2;
@@ -99,9 +103,9 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
@@ -109,9 +113,9 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
boolean hasReadTimeWindow();
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
@@ -119,9 +123,9 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
com.google.cloud.asset.v1beta1.TimeWindow getReadTimeWindow();
/**
* - * Required. The time window for the asset history. The returned results - * contain all temporal assets whose time window overlap with - * read_time_window. + * Required. The time window for the asset history. The start time is + * required. The returned results contain all temporal assets whose time + * window overlap with read_time_window. ** *
.google.cloud.asset.v1beta1.TimeWindow read_time_window = 4;
diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryResponse.java b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryResponse.java
index 059c23b69d5b..945a3aa37feb 100644
--- a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryResponse.java
+++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryResponse.java
@@ -33,9 +33,6 @@ private BatchGetAssetsHistoryResponse(
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -47,6 +44,13 @@ private BatchGetAssetsHistoryResponse(
case 0:
done = true;
break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
assets_ = new java.util.ArrayList- * Required. The relative name of the root asset. It can only be an - * organization number (e.g. "organizations/123") or a project number - * (e.g. "projects/12345"). + * Required. The relative name of the root asset. Can only be an organization + * number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id") or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -177,9 +153,9 @@ public java.lang.String getParent() {
}
/**
* - * Required. The relative name of the root asset. It can only be an - * organization number (e.g. "organizations/123") or a project number - * (e.g. "projects/12345"). + * Required. The relative name of the root asset. Can only be an organization + * number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id") or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -202,10 +178,11 @@ public java.lang.String getParent() {
private com.google.protobuf.Timestamp readTime_;
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -215,10 +192,11 @@ public boolean hasReadTime() {
}
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -228,10 +206,11 @@ public com.google.protobuf.Timestamp getReadTime() {
}
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -244,7 +223,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
private com.google.protobuf.LazyStringList assetTypes_;
/**
* - * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -256,7 +235,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { } /** *
- * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -267,7 +246,7 @@ public int getAssetTypesCount() { } /** *
- * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -278,7 +257,7 @@ public java.lang.String getAssetTypes(int index) { } /** *
- * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -289,76 +268,31 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.getByteString(index); } - public static final int CONTENT_TYPES_FIELD_NUMBER = 4; - private java.util.List
- * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. + * Asset content type. If not specified, no content but the asset name will be + * returned. ** - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
+ * .google.cloud.asset.v1beta1.ContentType content_type = 4;
*/
- public java.util.List- * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. + * Asset content type. If not specified, no content but the asset name will be + * returned. ** - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
+ * .google.cloud.asset.v1beta1.ContentType content_type = 4;
*/
- public int getContentTypesCount() {
- return contentTypes_.size();
+ public com.google.cloud.asset.v1beta1.ContentType getContentType() {
+ com.google.cloud.asset.v1beta1.ContentType result = com.google.cloud.asset.v1beta1.ContentType.valueOf(contentType_);
+ return result == null ? com.google.cloud.asset.v1beta1.ContentType.UNRECOGNIZED : result;
}
- /**
- * - * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. - *- * - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
- */
- public com.google.cloud.asset.v1beta1.ContentType getContentTypes(int index) {
- return contentTypes_converter_.convert(contentTypes_.get(index));
- }
- /**
- * - * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. - *- * - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
- */
- public java.util.List- * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. - *- * - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
- */
- public int getContentTypesValue(int index) {
- return contentTypes_.get(index);
- }
- private int contentTypesMemoizedSerializedSize;
public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5;
private com.google.cloud.asset.v1beta1.OutputConfig outputConfig_;
@@ -397,7 +331,6 @@ public com.google.cloud.asset.v1beta1.OutputConfigOrBuilder getOutputConfigOrBui
}
private byte memoizedIsInitialized = -1;
- @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -407,10 +340,8 @@ public final boolean isInitialized() {
return true;
}
- @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (!getParentBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
@@ -420,12 +351,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < assetTypes_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i));
}
- if (getContentTypesList().size() > 0) {
- output.writeUInt32NoTag(34);
- output.writeUInt32NoTag(contentTypesMemoizedSerializedSize);
- }
- for (int i = 0; i < contentTypes_.size(); i++) {
- output.writeEnumNoTag(contentTypes_.get(i));
+ if (contentType_ != com.google.cloud.asset.v1beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(4, contentType_);
}
if (outputConfig_ != null) {
output.writeMessage(5, getOutputConfig());
@@ -433,7 +360,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
unknownFields.writeTo(output);
}
- @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -454,17 +380,9 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getAssetTypesList().size();
}
- {
- int dataSize = 0;
- for (int i = 0; i < contentTypes_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(contentTypes_.get(i));
- }
- size += dataSize;
- if (!getContentTypesList().isEmpty()) { size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32SizeNoTag(dataSize);
- }contentTypesMemoizedSerializedSize = dataSize;
+ if (contentType_ != com.google.cloud.asset.v1beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(4, contentType_);
}
if (outputConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
@@ -495,7 +413,7 @@ public boolean equals(final java.lang.Object obj) {
}
result = result && getAssetTypesList()
.equals(other.getAssetTypesList());
- result = result && contentTypes_.equals(other.contentTypes_);
+ result = result && contentType_ == other.contentType_;
result = result && (hasOutputConfig() == other.hasOutputConfig());
if (hasOutputConfig()) {
result = result && getOutputConfig()
@@ -522,10 +440,8 @@ public int hashCode() {
hash = (37 * hash) + ASSET_TYPES_FIELD_NUMBER;
hash = (53 * hash) + getAssetTypesList().hashCode();
}
- if (getContentTypesCount() > 0) {
- hash = (37 * hash) + CONTENT_TYPES_FIELD_NUMBER;
- hash = (53 * hash) + contentTypes_.hashCode();
- }
+ hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + contentType_;
if (hasOutputConfig()) {
hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getOutputConfig().hashCode();
@@ -605,7 +521,6 @@ public static com.google.cloud.asset.v1beta1.ExportAssetsRequest parseFrom(
.parseWithIOException(PARSER, input, extensionRegistry);
}
- @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
@@ -613,7 +528,6 @@ public static Builder newBuilder() {
public static Builder newBuilder(com.google.cloud.asset.v1beta1.ExportAssetsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
- @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
@@ -641,7 +555,6 @@ public static final class Builder extends
return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_ExportAssetsRequest_descriptor;
}
- @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_ExportAssetsRequest_fieldAccessorTable
@@ -664,7 +577,6 @@ private void maybeForceBuilderInitialization() {
.alwaysUseFieldBuilders) {
}
}
- @java.lang.Override
public Builder clear() {
super.clear();
parent_ = "";
@@ -677,8 +589,8 @@ public Builder clear() {
}
assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
- contentTypes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
+ contentType_ = 0;
+
if (outputConfigBuilder_ == null) {
outputConfig_ = null;
} else {
@@ -688,18 +600,15 @@ public Builder clear() {
return this;
}
- @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_ExportAssetsRequest_descriptor;
}
- @java.lang.Override
public com.google.cloud.asset.v1beta1.ExportAssetsRequest getDefaultInstanceForType() {
return com.google.cloud.asset.v1beta1.ExportAssetsRequest.getDefaultInstance();
}
- @java.lang.Override
public com.google.cloud.asset.v1beta1.ExportAssetsRequest build() {
com.google.cloud.asset.v1beta1.ExportAssetsRequest result = buildPartial();
if (!result.isInitialized()) {
@@ -708,7 +617,6 @@ public com.google.cloud.asset.v1beta1.ExportAssetsRequest build() {
return result;
}
- @java.lang.Override
public com.google.cloud.asset.v1beta1.ExportAssetsRequest buildPartial() {
com.google.cloud.asset.v1beta1.ExportAssetsRequest result = new com.google.cloud.asset.v1beta1.ExportAssetsRequest(this);
int from_bitField0_ = bitField0_;
@@ -724,11 +632,7 @@ public com.google.cloud.asset.v1beta1.ExportAssetsRequest buildPartial() {
bitField0_ = (bitField0_ & ~0x00000004);
}
result.assetTypes_ = assetTypes_;
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- contentTypes_ = java.util.Collections.unmodifiableList(contentTypes_);
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.contentTypes_ = contentTypes_;
+ result.contentType_ = contentType_;
if (outputConfigBuilder_ == null) {
result.outputConfig_ = outputConfig_;
} else {
@@ -739,39 +643,32 @@ public com.google.cloud.asset.v1beta1.ExportAssetsRequest buildPartial() {
return result;
}
- @java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
- @java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
- @java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
- @java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
- @java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
- @java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
- @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.asset.v1beta1.ExportAssetsRequest) {
return mergeFrom((com.google.cloud.asset.v1beta1.ExportAssetsRequest)other);
@@ -800,15 +697,8 @@ public Builder mergeFrom(com.google.cloud.asset.v1beta1.ExportAssetsRequest othe
}
onChanged();
}
- if (!other.contentTypes_.isEmpty()) {
- if (contentTypes_.isEmpty()) {
- contentTypes_ = other.contentTypes_;
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- ensureContentTypesIsMutable();
- contentTypes_.addAll(other.contentTypes_);
- }
- onChanged();
+ if (other.contentType_ != 0) {
+ setContentTypeValue(other.getContentTypeValue());
}
if (other.hasOutputConfig()) {
mergeOutputConfig(other.getOutputConfig());
@@ -818,12 +708,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1beta1.ExportAssetsRequest othe
return this;
}
- @java.lang.Override
public final boolean isInitialized() {
return true;
}
- @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -846,9 +734,9 @@ public Builder mergeFrom(
private java.lang.Object parent_ = "";
/**
* - * Required. The relative name of the root asset. It can only be an - * organization number (e.g. "organizations/123") or a project number - * (e.g. "projects/12345"). + * Required. The relative name of the root asset. Can only be an organization + * number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id") or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -867,9 +755,9 @@ public java.lang.String getParent() {
}
/**
* - * Required. The relative name of the root asset. It can only be an - * organization number (e.g. "organizations/123") or a project number - * (e.g. "projects/12345"). + * Required. The relative name of the root asset. Can only be an organization + * number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id") or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -889,9 +777,9 @@ public java.lang.String getParent() {
}
/**
* - * Required. The relative name of the root asset. It can only be an - * organization number (e.g. "organizations/123") or a project number - * (e.g. "projects/12345"). + * Required. The relative name of the root asset. Can only be an organization + * number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id") or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -908,9 +796,9 @@ public Builder setParent(
}
/**
* - * Required. The relative name of the root asset. It can only be an - * organization number (e.g. "organizations/123") or a project number - * (e.g. "projects/12345"). + * Required. The relative name of the root asset. Can only be an organization + * number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id") or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -923,9 +811,9 @@ public Builder clearParent() {
}
/**
* - * Required. The relative name of the root asset. It can only be an - * organization number (e.g. "organizations/123") or a project number - * (e.g. "projects/12345"). + * Required. The relative name of the root asset. Can only be an organization + * number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id") or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -947,10 +835,11 @@ public Builder setParentBytes(
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -960,10 +849,11 @@ public boolean hasReadTime() {
}
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -977,10 +867,11 @@ public com.google.protobuf.Timestamp getReadTime() {
}
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -1000,10 +891,11 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
}
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -1021,10 +913,11 @@ public Builder setReadTime(
}
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -1046,10 +939,11 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
}
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -1067,10 +961,11 @@ public Builder clearReadTime() {
}
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -1082,10 +977,11 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
}
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -1100,10 +996,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
}
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -1131,7 +1028,7 @@ private void ensureAssetTypesIsMutable() {
}
/**
* - * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -1143,7 +1040,7 @@ private void ensureAssetTypesIsMutable() { } /** *
- * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -1154,7 +1051,7 @@ public int getAssetTypesCount() { } /** *
- * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -1165,7 +1062,7 @@ public java.lang.String getAssetTypes(int index) { } /** *
- * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -1177,7 +1074,7 @@ public java.lang.String getAssetTypes(int index) { } /** *
- * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -1195,7 +1092,7 @@ public Builder setAssetTypes( } /** *
- * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -1213,7 +1110,7 @@ public Builder addAssetTypes( } /** *
- * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -1229,7 +1126,7 @@ public Builder addAllAssetTypes( } /** *
- * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -1243,7 +1140,7 @@ public Builder clearAssetTypes() { } /** *
- * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -1261,180 +1158,71 @@ public Builder addAssetTypesBytes( return this; } - private java.util.List
- * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. - *- * - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
- */
- public java.util.List- * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. - *- * - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
- */
- public int getContentTypesCount() {
- return contentTypes_.size();
- }
+ private int contentType_ = 0;
/**
* - * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. + * Asset content type. If not specified, no content but the asset name will be + * returned. ** - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
+ * .google.cloud.asset.v1beta1.ContentType content_type = 4;
*/
- public com.google.cloud.asset.v1beta1.ContentType getContentTypes(int index) {
- return contentTypes_converter_.convert(contentTypes_.get(index));
+ public int getContentTypeValue() {
+ return contentType_;
}
/**
* - * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. + * Asset content type. If not specified, no content but the asset name will be + * returned. ** - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
+ * .google.cloud.asset.v1beta1.ContentType content_type = 4;
*/
- public Builder setContentTypes(
- int index, com.google.cloud.asset.v1beta1.ContentType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureContentTypesIsMutable();
- contentTypes_.set(index, value.getNumber());
+ public Builder setContentTypeValue(int value) {
+ contentType_ = value;
onChanged();
return this;
}
/**
* - * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. + * Asset content type. If not specified, no content but the asset name will be + * returned. ** - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
+ * .google.cloud.asset.v1beta1.ContentType content_type = 4;
*/
- public Builder addContentTypes(com.google.cloud.asset.v1beta1.ContentType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureContentTypesIsMutable();
- contentTypes_.add(value.getNumber());
- onChanged();
- return this;
+ public com.google.cloud.asset.v1beta1.ContentType getContentType() {
+ com.google.cloud.asset.v1beta1.ContentType result = com.google.cloud.asset.v1beta1.ContentType.valueOf(contentType_);
+ return result == null ? com.google.cloud.asset.v1beta1.ContentType.UNRECOGNIZED : result;
}
/**
* - * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. + * Asset content type. If not specified, no content but the asset name will be + * returned. ** - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
+ * .google.cloud.asset.v1beta1.ContentType content_type = 4;
*/
- public Builder addAllContentTypes(
- java.lang.Iterable extends com.google.cloud.asset.v1beta1.ContentType> values) {
- ensureContentTypesIsMutable();
- for (com.google.cloud.asset.v1beta1.ContentType value : values) {
- contentTypes_.add(value.getNumber());
+ public Builder setContentType(com.google.cloud.asset.v1beta1.ContentType value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+
+ contentType_ = value.getNumber();
onChanged();
return this;
}
/**
* - * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. - *- * - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
- */
- public Builder clearContentTypes() {
- contentTypes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- return this;
- }
- /**
- * - * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. - *- * - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
- */
- public java.util.List- * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. - *- * - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
- */
- public int getContentTypesValue(int index) {
- return contentTypes_.get(index);
- }
- /**
- * - * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. - *- * - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
- */
- public Builder setContentTypesValue(
- int index, int value) {
- ensureContentTypesIsMutable();
- contentTypes_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * - * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. - *- * - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
- */
- public Builder addContentTypesValue(int value) {
- ensureContentTypesIsMutable();
- contentTypes_.add(value);
- onChanged();
- return this;
- }
- /**
- * - * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. + * Asset content type. If not specified, no content but the asset name will be + * returned. ** - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
+ * .google.cloud.asset.v1beta1.ContentType content_type = 4;
*/
- public Builder addAllContentTypesValue(
- java.lang.Iterable- * Required. The relative name of the root asset. It can only be an - * organization number (e.g. "organizations/123") or a project number - * (e.g. "projects/12345"). + * Required. The relative name of the root asset. Can only be an organization + * number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id") or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -19,9 +19,9 @@ public interface ExportAssetsRequestOrBuilder extends
java.lang.String getParent();
/**
* - * Required. The relative name of the root asset. It can only be an - * organization number (e.g. "organizations/123") or a project number - * (e.g. "projects/12345"). + * Required. The relative name of the root asset. Can only be an organization + * number (such as "organizations/123"), or a project id (such as + * "projects/my-project-id") or a project number (such as "projects/12345"). ** *
string parent = 1;
@@ -31,10 +31,11 @@ public interface ExportAssetsRequestOrBuilder extends
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -42,10 +43,11 @@ public interface ExportAssetsRequestOrBuilder extends
boolean hasReadTime();
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -53,10 +55,11 @@ public interface ExportAssetsRequestOrBuilder extends
com.google.protobuf.Timestamp getReadTime();
/**
* - * Timestamp to take an asset snapshot. This can only be current or past - * time. If not specified, the current time will be used. Due to delays in - * resource data collection and indexing, there is a volatile window during - * which running the same query may get different results. + * Timestamp to take an asset snapshot. This can only be set to a timestamp in + * the past or of the current time. If not specified, the current time will be + * used. Due to delays in resource data collection and indexing, there is a + * volatile window during which running the same query may get different + * results. ** *
.google.protobuf.Timestamp read_time = 2;
@@ -65,7 +68,7 @@ public interface ExportAssetsRequestOrBuilder extends
/**
* - * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -75,7 +78,7 @@ public interface ExportAssetsRequestOrBuilder extends getAssetTypesList(); /** *
- * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -84,7 +87,7 @@ public interface ExportAssetsRequestOrBuilder extends int getAssetTypesCount(); /** *
- * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -93,7 +96,7 @@ public interface ExportAssetsRequestOrBuilder extends java.lang.String getAssetTypes(int index); /** *
- * A list of asset types to take a snapshot for. Example: + * A list of asset types of which to take a snapshot for. Example: * "google.compute.disk". If specified, only matching assets will be returned. ** @@ -104,50 +107,22 @@ public interface ExportAssetsRequestOrBuilder extends /** *
- * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. + * Asset content type. If not specified, no content but the asset name will be + * returned. ** - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
+ * .google.cloud.asset.v1beta1.ContentType content_type = 4;
*/
- java.util.List- * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. + * Asset content type. If not specified, no content but the asset name will be + * returned. ** - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
+ * .google.cloud.asset.v1beta1.ContentType content_type = 4;
*/
- int getContentTypesCount();
- /**
- * - * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. - *- * - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
- */
- com.google.cloud.asset.v1beta1.ContentType getContentTypes(int index);
- /**
- * - * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. - *- * - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
- */
- java.util.List- * A list of asset content types. If specified, only matching content will be - * returned. Otherwise, no content but the asset name will be returned. - *- * - *
repeated .google.cloud.asset.v1beta1.ContentType content_types = 4;
- */
- int getContentTypesValue(int index);
+ com.google.cloud.asset.v1beta1.ContentType getContentType();
/**
* diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponse.java b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponse.java index 04ebf64bcc05..ed3d84e6a982 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponse.java +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponse.java @@ -34,9 +34,6 @@ private ExportAssetsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private ExportAssetsResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (readTime_ != null) { @@ -74,13 +78,6 @@ private ExportAssetsResponse( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,7 +95,6 @@ private ExportAssetsResponse( return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_ExportAssetsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_ExportAssetsResponse_fieldAccessorTable @@ -110,7 +106,7 @@ private ExportAssetsResponse( private com.google.protobuf.Timestamp readTime_; /** *- * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -120,7 +116,7 @@ public boolean hasReadTime() { } /** *- * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -130,7 +126,7 @@ public com.google.protobuf.Timestamp getReadTime() { } /** *- * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -143,7 +139,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private com.google.cloud.asset.v1beta1.OutputConfig outputConfig_; /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** @@ -154,7 +150,7 @@ public boolean hasOutputConfig() { } /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** @@ -165,7 +161,7 @@ public com.google.cloud.asset.v1beta1.OutputConfig getOutputConfig() { } /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** @@ -176,7 +172,6 @@ public com.google.cloud.asset.v1beta1.OutputConfigOrBuilder getOutputConfigOrBui } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -186,7 +181,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (readTime_ != null) { @@ -198,7 +192,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -332,7 +325,6 @@ public static com.google.cloud.asset.v1beta1.ExportAssetsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -340,7 +332,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.asset.v1beta1.ExportAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -370,7 +361,6 @@ public static final class Builder extends return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_ExportAssetsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_ExportAssetsResponse_fieldAccessorTable @@ -393,7 +383,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (readTimeBuilder_ == null) { @@ -411,18 +400,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_ExportAssetsResponse_descriptor; } - @java.lang.Override public com.google.cloud.asset.v1beta1.ExportAssetsResponse getDefaultInstanceForType() { return com.google.cloud.asset.v1beta1.ExportAssetsResponse.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.asset.v1beta1.ExportAssetsResponse build() { com.google.cloud.asset.v1beta1.ExportAssetsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -431,7 +417,6 @@ public com.google.cloud.asset.v1beta1.ExportAssetsResponse build() { return result; } - @java.lang.Override public com.google.cloud.asset.v1beta1.ExportAssetsResponse buildPartial() { com.google.cloud.asset.v1beta1.ExportAssetsResponse result = new com.google.cloud.asset.v1beta1.ExportAssetsResponse(this); if (readTimeBuilder_ == null) { @@ -448,39 +433,32 @@ public com.google.cloud.asset.v1beta1.ExportAssetsResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.asset.v1beta1.ExportAssetsResponse) { return mergeFrom((com.google.cloud.asset.v1beta1.ExportAssetsResponse)other); @@ -503,12 +481,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1beta1.ExportAssetsResponse oth return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -532,7 +508,7 @@ public Builder mergeFrom( com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** *- * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -542,7 +518,7 @@ public boolean hasReadTime() { } /** *- * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -556,7 +532,7 @@ public com.google.protobuf.Timestamp getReadTime() { } /** *- * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -576,7 +552,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { } /** *- * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -594,7 +570,7 @@ public Builder setReadTime( } /** *- * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -616,7 +592,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { } /** *- * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -634,7 +610,7 @@ public Builder clearReadTime() { } /** *- * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -646,7 +622,7 @@ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { } /** *- * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -661,7 +637,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { } /** *- * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -685,7 +661,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { com.google.cloud.asset.v1beta1.OutputConfig, com.google.cloud.asset.v1beta1.OutputConfig.Builder, com.google.cloud.asset.v1beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** @@ -696,7 +672,7 @@ public boolean hasOutputConfig() { } /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** @@ -711,7 +687,7 @@ public com.google.cloud.asset.v1beta1.OutputConfig getOutputConfig() { } /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** @@ -732,7 +708,7 @@ public Builder setOutputConfig(com.google.cloud.asset.v1beta1.OutputConfig value } /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** @@ -751,7 +727,7 @@ public Builder setOutputConfig( } /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** @@ -774,7 +750,7 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1beta1.OutputConfig val } /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** @@ -793,7 +769,7 @@ public Builder clearOutputConfig() { } /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** @@ -806,7 +782,7 @@ public com.google.cloud.asset.v1beta1.OutputConfig.Builder getOutputConfigBuilde } /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** @@ -822,7 +798,7 @@ public com.google.cloud.asset.v1beta1.OutputConfigOrBuilder getOutputConfigOrBui } /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** @@ -841,13 +817,11 @@ public com.google.cloud.asset.v1beta1.OutputConfigOrBuilder getOutputConfigOrBui } return outputConfigBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -869,12 +843,11 @@ public static com.google.cloud.asset.v1beta1.ExportAssetsResponse getDefaultInst private static final com.google.protobuf.ParserPARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ExportAssetsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportAssetsResponse(input, extensionRegistry); + return new ExportAssetsResponse(input, extensionRegistry); } }; @@ -887,7 +860,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.asset.v1beta1.ExportAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponseOrBuilder.java index 273a1d9e89e7..ac4d355e6c05 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponseOrBuilder.java @@ -9,7 +9,7 @@ public interface ExportAssetsResponseOrBuilder extends /** * - * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -17,7 +17,7 @@ public interface ExportAssetsResponseOrBuilder extends boolean hasReadTime(); /** *- * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -25,7 +25,7 @@ public interface ExportAssetsResponseOrBuilder extends com.google.protobuf.Timestamp getReadTime(); /** *- * Required. Time the snapshot was taken. + * Time the snapshot was taken. ** *.google.protobuf.Timestamp read_time = 1;
@@ -34,7 +34,7 @@ public interface ExportAssetsResponseOrBuilder extends /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** @@ -43,7 +43,7 @@ public interface ExportAssetsResponseOrBuilder extends boolean hasOutputConfig(); /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** @@ -52,7 +52,7 @@ public interface ExportAssetsResponseOrBuilder extends com.google.cloud.asset.v1beta1.OutputConfig getOutputConfig(); /** *- * Required. Output configuration indicating where the results were output to. + * Output configuration indicating where the results were output to. * All results are in JSON format. ** diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestination.java b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestination.java index 213c84e267d4..ba6b29a17806 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestination.java +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestination.java @@ -33,9 +33,6 @@ private GcsDestination( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private GcsDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - uri_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private GcsDestination( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private GcsDestination( return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_GcsDestination_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_GcsDestination_fieldAccessorTable @@ -134,7 +130,6 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -144,7 +139,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getUriBytes().isEmpty()) { @@ -153,7 +147,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -268,7 +261,6 @@ public static com.google.cloud.asset.v1beta1.GcsDestination parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -276,7 +268,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.asset.v1beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -304,7 +295,6 @@ public static final class Builder extends return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_GcsDestination_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_GcsDestination_fieldAccessorTable @@ -327,7 +317,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); uri_ = ""; @@ -335,18 +324,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_GcsDestination_descriptor; } - @java.lang.Override public com.google.cloud.asset.v1beta1.GcsDestination getDefaultInstanceForType() { return com.google.cloud.asset.v1beta1.GcsDestination.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.asset.v1beta1.GcsDestination build() { com.google.cloud.asset.v1beta1.GcsDestination result = buildPartial(); if (!result.isInitialized()) { @@ -355,7 +341,6 @@ public com.google.cloud.asset.v1beta1.GcsDestination build() { return result; } - @java.lang.Override public com.google.cloud.asset.v1beta1.GcsDestination buildPartial() { com.google.cloud.asset.v1beta1.GcsDestination result = new com.google.cloud.asset.v1beta1.GcsDestination(this); result.uri_ = uri_; @@ -363,39 +348,32 @@ public com.google.cloud.asset.v1beta1.GcsDestination buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.asset.v1beta1.GcsDestination) { return mergeFrom((com.google.cloud.asset.v1beta1.GcsDestination)other); @@ -416,12 +394,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1beta1.GcsDestination other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -543,13 +519,11 @@ public Builder setUriBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -571,12 +545,11 @@ public static com.google.cloud.asset.v1beta1.GcsDestination getDefaultInstance() private static final com.google.protobuf.ParserPARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public GcsDestination parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); + return new GcsDestination(input, extensionRegistry); } }; @@ -589,7 +562,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.asset.v1beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfig.java b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfig.java index b034f0192a89..fc65c32fd39d 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfig.java +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfig.java @@ -32,9 +32,6 @@ private OutputConfig( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,6 +43,13 @@ private OutputConfig( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { com.google.cloud.asset.v1beta1.GcsDestination.Builder subBuilder = null; if (destinationCase_ == 1) { @@ -60,13 +64,6 @@ private OutputConfig( destinationCase_ = 1; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,7 +81,6 @@ private OutputConfig( return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_OutputConfig_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_OutputConfig_fieldAccessorTable @@ -167,7 +163,6 @@ public com.google.cloud.asset.v1beta1.GcsDestinationOrBuilder getGcsDestinationO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -177,7 +172,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { @@ -186,7 +180,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -317,7 +310,6 @@ public static com.google.cloud.asset.v1beta1.OutputConfig parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -325,7 +317,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.asset.v1beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -353,7 +344,6 @@ public static final class Builder extends return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_OutputConfig_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_OutputConfig_fieldAccessorTable @@ -376,7 +366,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); destinationCase_ = 0; @@ -384,18 +373,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.asset.v1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1beta1_OutputConfig_descriptor; } - @java.lang.Override public com.google.cloud.asset.v1beta1.OutputConfig getDefaultInstanceForType() { return com.google.cloud.asset.v1beta1.OutputConfig.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.asset.v1beta1.OutputConfig build() { com.google.cloud.asset.v1beta1.OutputConfig result = buildPartial(); if (!result.isInitialized()) { @@ -404,7 +390,6 @@ public com.google.cloud.asset.v1beta1.OutputConfig build() { return result; } - @java.lang.Override public com.google.cloud.asset.v1beta1.OutputConfig buildPartial() { com.google.cloud.asset.v1beta1.OutputConfig result = new com.google.cloud.asset.v1beta1.OutputConfig(this); if (destinationCase_ == 1) { @@ -419,39 +404,32 @@ public com.google.cloud.asset.v1beta1.OutputConfig buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.asset.v1beta1.OutputConfig) { return mergeFrom((com.google.cloud.asset.v1beta1.OutputConfig)other); @@ -477,12 +455,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1beta1.OutputConfig other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -687,13 +663,11 @@ public com.google.cloud.asset.v1beta1.GcsDestinationOrBuilder getGcsDestinationO onChanged();; return gcsDestinationBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -715,12 +689,11 @@ public static com.google.cloud.asset.v1beta1.OutputConfig getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public OutputConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); + return new OutputConfig(input, extensionRegistry); } }; @@ -733,7 +706,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.asset.v1beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Resource.java b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Resource.java index fdddfefe18f6..465771c7a156 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Resource.java +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Resource.java @@ -37,9 +37,6 @@ private Resource( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -51,6 +48,13 @@ private Resource( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -94,13 +98,6 @@ private Resource( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -118,7 +115,6 @@ private Resource( return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_Resource_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_Resource_fieldAccessorTable @@ -403,7 +399,6 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -413,7 +408,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getVersionBytes().isEmpty()) { @@ -437,7 +431,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -593,7 +586,6 @@ public static com.google.cloud.asset.v1beta1.Resource parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -601,7 +593,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.asset.v1beta1.Resource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -629,7 +620,6 @@ public static final class Builder extends return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_Resource_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_Resource_fieldAccessorTable @@ -652,7 +642,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); version_ = ""; @@ -674,18 +663,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_Resource_descriptor; } - @java.lang.Override public com.google.cloud.asset.v1beta1.Resource getDefaultInstanceForType() { return com.google.cloud.asset.v1beta1.Resource.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.asset.v1beta1.Resource build() { com.google.cloud.asset.v1beta1.Resource result = buildPartial(); if (!result.isInitialized()) { @@ -694,7 +680,6 @@ public com.google.cloud.asset.v1beta1.Resource build() { return result; } - @java.lang.Override public com.google.cloud.asset.v1beta1.Resource buildPartial() { com.google.cloud.asset.v1beta1.Resource result = new com.google.cloud.asset.v1beta1.Resource(this); result.version_ = version_; @@ -711,39 +696,32 @@ public com.google.cloud.asset.v1beta1.Resource buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.asset.v1beta1.Resource) { return mergeFrom((com.google.cloud.asset.v1beta1.Resource)other); @@ -783,12 +761,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1beta1.Resource other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1488,13 +1464,11 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() { } return dataBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1516,12 +1490,11 @@ public static com.google.cloud.asset.v1beta1.Resource getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public Resource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Resource(input, extensionRegistry); + return new Resource(input, extensionRegistry); } }; @@ -1534,7 +1507,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.asset.v1beta1.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAsset.java b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAsset.java index 517dccf7aa28..1fa19c5ec39b 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAsset.java +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAsset.java @@ -34,9 +34,6 @@ private TemporalAsset( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private TemporalAsset( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { com.google.cloud.asset.v1beta1.TimeWindow.Builder subBuilder = null; if (window_ != null) { @@ -79,13 +83,6 @@ private TemporalAsset( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +100,6 @@ private TemporalAsset( return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_TemporalAsset_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_TemporalAsset_fieldAccessorTable @@ -191,7 +187,6 @@ public com.google.cloud.asset.v1beta1.AssetOrBuilder getAssetOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -201,7 +196,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (window_ != null) { @@ -216,7 +210,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -359,7 +352,6 @@ public static com.google.cloud.asset.v1beta1.TemporalAsset parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -367,7 +359,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.asset.v1beta1.TemporalAsset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -396,7 +387,6 @@ public static final class Builder extends return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_TemporalAsset_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_TemporalAsset_fieldAccessorTable @@ -419,7 +409,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (windowBuilder_ == null) { @@ -439,18 +428,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_TemporalAsset_descriptor; } - @java.lang.Override public com.google.cloud.asset.v1beta1.TemporalAsset getDefaultInstanceForType() { return com.google.cloud.asset.v1beta1.TemporalAsset.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.asset.v1beta1.TemporalAsset build() { com.google.cloud.asset.v1beta1.TemporalAsset result = buildPartial(); if (!result.isInitialized()) { @@ -459,7 +445,6 @@ public com.google.cloud.asset.v1beta1.TemporalAsset build() { return result; } - @java.lang.Override public com.google.cloud.asset.v1beta1.TemporalAsset buildPartial() { com.google.cloud.asset.v1beta1.TemporalAsset result = new com.google.cloud.asset.v1beta1.TemporalAsset(this); if (windowBuilder_ == null) { @@ -477,39 +462,32 @@ public com.google.cloud.asset.v1beta1.TemporalAsset buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.asset.v1beta1.TemporalAsset) { return mergeFrom((com.google.cloud.asset.v1beta1.TemporalAsset)other); @@ -535,12 +513,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1beta1.TemporalAsset other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -902,13 +878,11 @@ public com.google.cloud.asset.v1beta1.AssetOrBuilder getAssetOrBuilder() { } return assetBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -930,12 +904,11 @@ public static com.google.cloud.asset.v1beta1.TemporalAsset getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public TemporalAsset parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TemporalAsset(input, extensionRegistry); + return new TemporalAsset(input, extensionRegistry); } }; @@ -948,7 +921,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.asset.v1beta1.TemporalAsset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindow.java b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindow.java index 796a4681564f..1bc5d2c38b9a 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindow.java +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindow.java @@ -32,9 +32,6 @@ private TimeWindow( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,6 +43,13 @@ private TimeWindow( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (startTime_ != null) { @@ -72,13 +76,6 @@ private TimeWindow( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +93,6 @@ private TimeWindow( return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_TimeWindow_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_TimeWindow_fieldAccessorTable @@ -109,7 +105,6 @@ private TimeWindow( /** * * Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -120,7 +115,6 @@ public boolean hasStartTime() { /** ** Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -131,7 +125,6 @@ public com.google.protobuf.Timestamp getStartTime() { /** ** Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -145,7 +138,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
@@ -156,7 +149,7 @@ public boolean hasEndTime() { /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
@@ -167,7 +160,7 @@ public com.google.protobuf.Timestamp getEndTime() { /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
@@ -177,7 +170,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -187,7 +179,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { @@ -199,7 +190,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -333,7 +323,6 @@ public static com.google.cloud.asset.v1beta1.TimeWindow parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -341,7 +330,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.asset.v1beta1.TimeWindow prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -369,7 +357,6 @@ public static final class Builder extends return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_TimeWindow_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_TimeWindow_fieldAccessorTable @@ -392,7 +379,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (startTimeBuilder_ == null) { @@ -410,18 +396,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.asset.v1beta1.AssetProto.internal_static_google_cloud_asset_v1beta1_TimeWindow_descriptor; } - @java.lang.Override public com.google.cloud.asset.v1beta1.TimeWindow getDefaultInstanceForType() { return com.google.cloud.asset.v1beta1.TimeWindow.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.asset.v1beta1.TimeWindow build() { com.google.cloud.asset.v1beta1.TimeWindow result = buildPartial(); if (!result.isInitialized()) { @@ -430,7 +413,6 @@ public com.google.cloud.asset.v1beta1.TimeWindow build() { return result; } - @java.lang.Override public com.google.cloud.asset.v1beta1.TimeWindow buildPartial() { com.google.cloud.asset.v1beta1.TimeWindow result = new com.google.cloud.asset.v1beta1.TimeWindow(this); if (startTimeBuilder_ == null) { @@ -447,39 +429,32 @@ public com.google.cloud.asset.v1beta1.TimeWindow buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.asset.v1beta1.TimeWindow) { return mergeFrom((com.google.cloud.asset.v1beta1.TimeWindow)other); @@ -502,12 +477,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1beta1.TimeWindow other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -532,7 +505,6 @@ public Builder mergeFrom( /** ** Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -543,7 +515,6 @@ public boolean hasStartTime() { /** ** Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -558,7 +529,6 @@ public com.google.protobuf.Timestamp getStartTime() { /** ** Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -579,7 +549,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { /** ** Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -598,7 +567,6 @@ public Builder setStartTime( /** ** Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -621,7 +589,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { /** ** Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -640,7 +607,6 @@ public Builder clearStartTime() { /** ** Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -653,7 +619,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { /** ** Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -669,7 +634,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { /** ** Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -694,7 +658,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
@@ -705,7 +669,7 @@ public boolean hasEndTime() { /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
@@ -720,7 +684,7 @@ public com.google.protobuf.Timestamp getEndTime() { /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
@@ -741,7 +705,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
@@ -760,7 +724,7 @@ public Builder setEndTime( /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
@@ -783,7 +747,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
@@ -802,7 +766,7 @@ public Builder clearEndTime() { /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
@@ -815,7 +779,7 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
@@ -831,7 +795,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
@@ -849,13 +813,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } return endTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -877,12 +839,11 @@ public static com.google.cloud.asset.v1beta1.TimeWindow getDefaultInstance() { private static final com.google.protobuf.ParserPARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public TimeWindow parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TimeWindow(input, extensionRegistry); + return new TimeWindow(input, extensionRegistry); } }; @@ -895,7 +856,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.asset.v1beta1.TimeWindow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindowOrBuilder.java b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindowOrBuilder.java index bdff1bf2e9cb..ed8fb4bc6080 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindowOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindowOrBuilder.java @@ -10,7 +10,6 @@ public interface TimeWindowOrBuilder extends /** * * Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -19,7 +18,6 @@ public interface TimeWindowOrBuilder extends /** ** Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -28,7 +26,6 @@ public interface TimeWindowOrBuilder extends /** ** Start time of the time window (inclusive). - * Infinite past if not specified. ** *.google.protobuf.Timestamp start_time = 1;
@@ -38,7 +35,7 @@ public interface TimeWindowOrBuilder extends /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
@@ -47,7 +44,7 @@ public interface TimeWindowOrBuilder extends /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
@@ -56,7 +53,7 @@ public interface TimeWindowOrBuilder extends /** ** End time of the time window (exclusive). - * Infinite future if not specified. + * Current timestamp if not specified. ** *.google.protobuf.Timestamp end_time = 2;
diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/proto/google/cloud/asset/v1beta1/asset_service.proto b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/proto/google/cloud/asset/v1beta1/asset_service.proto index da859d102f3b..b64502f68e42 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/proto/google/cloud/asset/v1beta1/asset_service.proto +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/proto/google/cloud/asset/v1beta1/asset_service.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -32,7 +33,7 @@ option php_namespace = "Google\\Cloud\\Asset\\V1beta1"; // Asset service definition. service AssetService { // Exports assets with time and resource types to a given Google Cloud Storage - // location. The output format is newline delimited JSON. + // location. The output format is newline-delimited JSON. // This API implements the [google.longrunning.Operation][google.longrunning.Operation] API allowing users // to keep track of the export. rpc ExportAssets(ExportAssetsRequest) returns (google.longrunning.Operation) { @@ -63,24 +64,25 @@ service AssetService { // Export asset request. message ExportAssetsRequest { - // Required. The relative name of the root asset. It can only be an - // organization number (e.g. "organizations/123") or a project number - // (e.g. "projects/12345"). + // Required. The relative name of the root asset. Can only be an organization + // number (such as "organizations/123"), or a project id (such as + // "projects/my-project-id") or a project number (such as "projects/12345"). string parent = 1; - // Timestamp to take an asset snapshot. This can only be current or past - // time. If not specified, the current time will be used. Due to delays in - // resource data collection and indexing, there is a volatile window during - // which running the same query may get different results. + // Timestamp to take an asset snapshot. This can only be set to a timestamp in + // the past or of the current time. If not specified, the current time will be + // used. Due to delays in resource data collection and indexing, there is a + // volatile window during which running the same query may get different + // results. google.protobuf.Timestamp read_time = 2; - // A list of asset types to take a snapshot for. Example: + // A list of asset types of which to take a snapshot for. Example: // "google.compute.disk". If specified, only matching assets will be returned. repeated string asset_types = 3; - // A list of asset content types. If specified, only matching content will be - // returned. Otherwise, no content but the asset name will be returned. - repeated ContentType content_types = 4; + // Asset content type. If not specified, no content but the asset name will be + // returned. + ContentType content_type = 4; // Required. Output configuration indicating where the results will be output // to. All results will be in newline delimited JSON format. @@ -91,10 +93,10 @@ message ExportAssetsRequest { // [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned // [google.longrunning.Operation.response][google.longrunning.Operation.response] field. message ExportAssetsResponse { - // Required. Time the snapshot was taken. + // Time the snapshot was taken. google.protobuf.Timestamp read_time = 1; - // Required. Output configuration indicating where the results were output to. + // Output configuration indicating where the results were output to. // All results are in JSON format. OutputConfig output_config = 2; } @@ -102,8 +104,8 @@ message ExportAssetsResponse { // Batch get assets history request. message BatchGetAssetsHistoryRequest { // Required. The relative name of the root asset. It can only be an - // organization ID (e.g. "organizations/123") or a project ID - // (e.g. "projects/12345"). + // organization number (such as "organizations/123"), or a project id (such as + // "projects/my-project-id")"or a project number (such as "projects/12345"). string parent = 1; // A list of the full names of the assets. See: @@ -111,15 +113,16 @@ message BatchGetAssetsHistoryRequest { // Example: // "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1". // - // The request becomes a no-op if the asset name list is empty. + // The request becomes a no-op if the asset name list is empty, and the max + // size of the asset name list is 100 in one request. repeated string asset_names = 2; // Required. The content type. ContentType content_type = 3; - // Required. The time window for the asset history. The returned results - // contain all temporal assets whose time window overlap with - // read_time_window. + // Required. The time window for the asset history. The start time is + // required. The returned results contain all temporal assets whose time + // window overlap with read_time_window. TimeWindow read_time_window = 4; } diff --git a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/proto/google/cloud/asset/v1beta1/assets.proto b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/proto/google/cloud/asset/v1beta1/assets.proto index ca4f144f08ab..db270b0879fa 100644 --- a/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/proto/google/cloud/asset/v1beta1/assets.proto +++ b/google-api-grpc/proto-google-cloud-asset-v1beta1/src/main/proto/google/cloud/asset/v1beta1/assets.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -46,11 +47,10 @@ message TemporalAsset { // A time window of [start_time, end_time). message TimeWindow { // Start time of the time window (inclusive). - // Infinite past if not specified. google.protobuf.Timestamp start_time = 1; // End time of the time window (exclusive). - // Infinite future if not specified. + // Current timestamp if not specified. google.protobuf.Timestamp end_time = 2; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java index 39376e0c6f04..7df820d2d8a4 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java @@ -34,9 +34,6 @@ private AnnotationPayload( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private AnnotationPayload( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -88,13 +92,6 @@ private AnnotationPayload( displayName_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,7 +109,6 @@ private AnnotationPayload( return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable @@ -331,7 +327,6 @@ public java.lang.String getDisplayName() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -341,7 +336,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getAnnotationSpecIdBytes().isEmpty()) { @@ -359,7 +353,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -516,7 +509,6 @@ public static com.google.cloud.automl.v1beta1.AnnotationPayload parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -524,7 +516,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.AnnotationPayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -552,7 +543,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_fieldAccessorTable @@ -575,7 +565,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); annotationSpecId_ = ""; @@ -587,18 +576,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.AnnotationPayload getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.AnnotationPayload.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.AnnotationPayload build() { com.google.cloud.automl.v1beta1.AnnotationPayload result = buildPartial(); if (!result.isInitialized()) { @@ -607,7 +593,6 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.AnnotationPayload buildPartial() { com.google.cloud.automl.v1beta1.AnnotationPayload result = new com.google.cloud.automl.v1beta1.AnnotationPayload(this); if (detailCase_ == 2) { @@ -631,39 +616,32 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.AnnotationPayload) { return mergeFrom((com.google.cloud.automl.v1beta1.AnnotationPayload)other); @@ -701,12 +679,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.AnnotationPayload other return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1291,13 +1267,11 @@ public Builder setDisplayNameBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1319,12 +1293,11 @@ public static com.google.cloud.automl.v1beta1.AnnotationPayload getDefaultInstan private static final com.google.protobuf.ParserPARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public AnnotationPayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotationPayload(input, extensionRegistry); + return new AnnotationPayload(input, extensionRegistry); } }; @@ -1337,7 +1310,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.AnnotationPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java index 25a3487d2f9b..8385f6815ec2 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java @@ -37,7 +37,7 @@ public static void registerAllExtensions( "slation\030\002 \001(\01322.google.cloud.automl.v1be" + "ta1.TranslationAnnotationH\000\022O\n\016classific" + "ation\030\003 \001(\01325.google.cloud.automl.v1beta" + - "1.ClassificationAnnotationH\000\022\032\n\022annotati" + + "1.ClassificationAnnotationH\000\022\032\n\022annotati", "on_spec_id\030\001 \001(\t\022\024\n\014display_name\030\005 \001(\tB\010" + "\n\006detailBf\n\037com.google.cloud.automl.v1be" + "ta1P\001ZAgoogle.golang.org/genproto/google" + diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java index bcf6df796576..5b8584508667 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java @@ -117,7 +117,7 @@ public static void registerAllExtensions( "oogle/cloud/automl/v1beta1/model.proto\0322" + "google/cloud/automl/v1beta1/model_evalua" + "tion.proto\032,google/cloud/automl/v1beta1/" + - "operations.proto\032#google/longrunning/ope" + + "operations.proto\032#google/longrunning/ope", "rations.proto\032 google/protobuf/field_mas" + "k.proto\"]\n\024CreateDatasetRequest\022\016\n\006paren" + "t\030\001 \001(\t\0225\n\007dataset\030\002 \001(\0132$.google.cloud." + @@ -127,7 +127,7 @@ public static void registerAllExtensions( "_size\030\004 \001(\005\022\022\n\npage_token\030\006 \001(\t\"g\n\024ListD" + "atasetsResponse\0226\n\010datasets\030\001 \003(\0132$.goog" + "le.cloud.automl.v1beta1.Dataset\022\027\n\017next_" + - "page_token\030\002 \001(\t\"$\n\024DeleteDatasetRequest" + + "page_token\030\002 \001(\t\"$\n\024DeleteDatasetRequest", "\022\014\n\004name\030\001 \001(\t\"a\n\021ImportDataRequest\022\014\n\004n" + "ame\030\001 \001(\t\022>\n\014input_config\030\003 \001(\0132(.google" + ".cloud.automl.v1beta1.InputConfig\"c\n\021Exp" + @@ -137,7 +137,7 @@ public static void registerAllExtensions( "parent\030\001 \001(\t\0221\n\005model\030\004 \001(\0132\".google.clo" + "ud.automl.v1beta1.Model\"\037\n\017GetModelReque" + "st\022\014\n\004name\030\001 \001(\t\"Z\n\021ListModelsRequest\022\016\n" + - "\006parent\030\001 \001(\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_si" + + "\006parent\030\001 \001(\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_si", "ze\030\004 \001(\005\022\022\n\npage_token\030\006 \001(\t\"`\n\022ListMode" + "lsResponse\0221\n\005model\030\001 \003(\0132\".google.cloud" + ".automl.v1beta1.Model\022\027\n\017next_page_token" + @@ -147,7 +147,7 @@ public static void registerAllExtensions( "GetModelEvaluationRequest\022\014\n\004name\030\001 \001(\t\"" + "d\n\033ListModelEvaluationsRequest\022\016\n\006parent" + "\030\001 \001(\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(" + - "\005\022\022\n\npage_token\030\006 \001(\t\"\177\n\034ListModelEvalua" + + "\005\022\022\n\npage_token\030\006 \001(\t\"\177\n\034ListModelEvalua", "tionsResponse\022F\n\020model_evaluation\030\001 \003(\0132" + ",.google.cloud.automl.v1beta1.ModelEvalu" + "ation\022\027\n\017next_page_token\030\002 \001(\t2\336\022\n\006AutoM" + @@ -157,7 +157,7 @@ public static void registerAllExtensions( "1beta1/{parent=projects/*/locations/*}/d" + "atasets:\007dataset\022\235\001\n\nGetDataset\022..google" + ".cloud.automl.v1beta1.GetDatasetRequest\032" + - "$.google.cloud.automl.v1beta1.Dataset\"9\202" + + "$.google.cloud.automl.v1beta1.Dataset\"9\202", "\323\344\223\0023\0221/v1beta1/{name=projects/*/locatio" + "ns/*/datasets/*}\022\256\001\n\014ListDatasets\0220.goog" + "le.cloud.automl.v1beta1.ListDatasetsRequ" + @@ -167,7 +167,7 @@ public static void registerAllExtensions( "leteDataset\0221.google.cloud.automl.v1beta" + "1.DeleteDatasetRequest\032\035.google.longrunn" + "ing.Operation\"9\202\323\344\223\0023*1/v1beta1/{name=pr" + - "ojects/*/locations/*/datasets/*}\022\244\001\n\nImp" + + "ojects/*/locations/*/datasets/*}\022\244\001\n\nImp", "ortData\022..google.cloud.automl.v1beta1.Im" + "portDataRequest\032\035.google.longrunning.Ope" + "ration\"G\202\323\344\223\002A\"\202\323\344\223\0028\"//v1beta1" + "/{parent=projects/*/locations/*}/models:" + "\005model\022\225\001\n\010GetModel\022,.google.cloud.autom" + @@ -187,7 +187,7 @@ public static void registerAllExtensions( "\001\n\nListModels\022..google.cloud.automl.v1be" + "ta1.ListModelsRequest\032/.google.cloud.aut" + "oml.v1beta1.ListModelsResponse\"7\202\323\344\223\0021\022/" + - "/v1beta1/{parent=projects/*/locations/*}" + + "/v1beta1/{parent=projects/*/locations/*}", "/models\022\226\001\n\013DeleteModel\022/.google.cloud.a" + "utoml.v1beta1.DeleteModelRequest\032\035.googl" + "e.longrunning.Operation\"7\202\323\344\223\0021*//v1beta" + @@ -197,7 +197,7 @@ public static void registerAllExtensions( "unning.Operation\"A\202\323\344\223\002;\"6/v1beta1/{name" + "=projects/*/locations/*/models/*}:deploy" + ":\001*\022\246\001\n\rUndeployModel\0221.google.cloud.aut" + - "oml.v1beta1.UndeployModelRequest\032\035.googl" + + "oml.v1beta1.UndeployModelRequest\032\035.googl", "e.longrunning.Operation\"C\202\323\344\223\002=\"8/v1beta" + "1/{name=projects/*/locations/*/models/*}" + ":undeploy:\001*\022\306\001\n\022GetModelEvaluation\0226.go" + @@ -207,7 +207,7 @@ public static void registerAllExtensions( "e=projects/*/locations/*/models/*/modelE" + "valuations/*}\022\327\001\n\024ListModelEvaluations\0228" + ".google.cloud.automl.v1beta1.ListModelEv" + - "aluationsRequest\0329.google.cloud.automl.v" + + "aluationsRequest\0329.google.cloud.automl.v", "1beta1.ListModelEvaluationsResponse\"J\202\323\344" + "\223\002D\022B/v1beta1/{parent=projects/*/locatio" + "ns/*/models/*}/modelEvaluationsBs\n\037com.g" + diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java index 2243f89db585..f878e0ca3c0f 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java @@ -196,9 +196,6 @@ private ClassificationAnnotation( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -210,11 +207,6 @@ private ClassificationAnnotation( case 0: done = true; break; - case 13: { - - score_ = input.readFloat(); - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -222,6 +214,11 @@ private ClassificationAnnotation( } break; } + case 13: { + + score_ = input.readFloat(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -239,7 +236,6 @@ private ClassificationAnnotation( return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable @@ -265,7 +261,6 @@ public float getScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -275,7 +270,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (score_ != 0F) { @@ -284,7 +278,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -403,7 +396,6 @@ public static com.google.cloud.automl.v1beta1.ClassificationProto.Classification .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -411,7 +403,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -439,7 +430,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable @@ -462,7 +452,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); score_ = 0F; @@ -470,18 +459,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation build() { com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation result = buildPartial(); if (!result.isInitialized()) { @@ -490,7 +476,6 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotat return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation buildPartial() { com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation result = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation(this); result.score_ = score_; @@ -498,39 +483,32 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotat return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) { return mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation)other); @@ -550,12 +528,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.Cla return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -623,13 +599,11 @@ public Builder clearScore() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -651,12 +625,11 @@ public static com.google.cloud.automl.v1beta1.ClassificationProto.Classification private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ClassificationAnnotation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassificationAnnotation(input, extensionRegistry); + return new ClassificationAnnotation(input, extensionRegistry); } }; @@ -669,7 +642,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -850,9 +822,6 @@ private ClassificationEvaluationMetrics( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -864,6 +833,13 @@ private ClassificationEvaluationMetrics( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 13: { auPrc_ = input.readFloat(); @@ -905,13 +881,6 @@ private ClassificationEvaluationMetrics( annotationSpecId_.add(s); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -935,7 +904,6 @@ private ClassificationEvaluationMetrics( return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_fieldAccessorTable @@ -1050,9 +1018,6 @@ private ConfidenceMetricsEntry( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1064,6 +1029,13 @@ private ConfidenceMetricsEntry( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 13: { confidenceThreshold_ = input.readFloat(); @@ -1099,13 +1071,6 @@ private ConfidenceMetricsEntry( f1ScoreAt1_ = input.readFloat(); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1123,7 +1088,6 @@ private ConfidenceMetricsEntry( return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable @@ -1227,7 +1191,6 @@ public float getF1ScoreAt1() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1237,7 +1200,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (confidenceThreshold_ != 0F) { @@ -1264,7 +1226,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -1449,7 +1410,6 @@ public static com.google.cloud.automl.v1beta1.ClassificationProto.Classification .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -1457,7 +1417,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -1485,7 +1444,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable @@ -1508,7 +1466,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); confidenceThreshold_ = 0F; @@ -1528,18 +1485,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry build() { com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry result = buildPartial(); if (!result.isInitialized()) { @@ -1548,7 +1502,6 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry buildPartial() { com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry result = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry(this); result.confidenceThreshold_ = confidenceThreshold_; @@ -1562,39 +1515,32 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) { return mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry)other); @@ -1632,12 +1578,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.Cla return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1933,13 +1877,11 @@ public Builder clearF1ScoreAt1() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1961,12 +1903,11 @@ public static com.google.cloud.automl.v1beta1.ClassificationProto.Classification private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ConfidenceMetricsEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfidenceMetricsEntry(input, extensionRegistry); + return new ConfidenceMetricsEntry(input, extensionRegistry); } }; @@ -1979,7 +1920,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2120,9 +2060,6 @@ private ConfusionMatrix( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -2134,6 +2071,13 @@ private ConfusionMatrix( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { @@ -2152,13 +2096,6 @@ private ConfusionMatrix( input.readMessage(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.parser(), extensionRegistry)); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2182,7 +2119,6 @@ private ConfusionMatrix( return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable @@ -2255,9 +2191,6 @@ private Row( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -2269,6 +2202,13 @@ private Row( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 8: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { exampleCount_ = new java.util.ArrayList (); @@ -2290,13 +2230,6 @@ private Row( input.popLimit(limit); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2317,7 +2250,6 @@ private Row( return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable @@ -2367,7 +2299,6 @@ public int getExampleCount(int index) { private int exampleCountMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2377,7 +2308,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -2391,7 +2321,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -2519,7 +2448,6 @@ public static com.google.cloud.automl.v1beta1.ClassificationProto.Classification .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -2527,7 +2455,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -2555,7 +2482,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_fieldAccessorTable @@ -2578,7 +2504,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); exampleCount_ = java.util.Collections.emptyList(); @@ -2586,18 +2511,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_Row_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row build() { com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row result = buildPartial(); if (!result.isInitialized()) { @@ -2606,7 +2528,6 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row buildPartial() { com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row result = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row(this); int from_bitField0_ = bitField0_; @@ -2619,39 +2540,32 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row) { return mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row)other); @@ -2678,12 +2592,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.Cla return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2810,13 +2722,11 @@ public Builder clearExampleCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -2838,12 +2748,11 @@ public static com.google.cloud.automl.v1beta1.ClassificationProto.Classification private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override public Row parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Row(input, extensionRegistry); + return new Row(input, extensionRegistry); } }; @@ -2856,7 +2765,6 @@ public com.google.protobuf.Parser
getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.Row getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -2984,7 +2892,6 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -2994,7 +2901,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < annotationSpecId_.size(); i++) { @@ -3006,7 +2912,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -3138,7 +3043,6 @@ public static com.google.cloud.automl.v1beta1.ClassificationProto.Classification .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -3146,7 +3050,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -3174,7 +3077,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_fieldAccessorTable @@ -3198,7 +3100,6 @@ private void maybeForceBuilderInitialization() { getRowFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -3212,18 +3113,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix build() { com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix result = buildPartial(); if (!result.isInitialized()) { @@ -3232,7 +3130,6 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix buildPartial() { com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix result = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix(this); int from_bitField0_ = bitField0_; @@ -3254,39 +3151,32 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix) { return mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix)other); @@ -3339,12 +3229,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.Cla return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3877,13 +3765,11 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat } return rowBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -3905,12 +3791,11 @@ public static com.google.cloud.automl.v1beta1.ClassificationProto.Classification private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ConfusionMatrix parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfusionMatrix(input, extensionRegistry); + return new ConfusionMatrix(input, extensionRegistry); } }; @@ -3923,7 +3808,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4105,7 +3989,6 @@ public java.lang.String getAnnotationSpecId(int index) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -4115,7 +3998,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (auPrc_ != 0F) { @@ -4136,7 +4018,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -4303,7 +4184,6 @@ public static com.google.cloud.automl.v1beta1.ClassificationProto.Classification .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -4311,7 +4191,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -4340,7 +4219,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_fieldAccessorTable @@ -4364,7 +4242,6 @@ private void maybeForceBuilderInitialization() { getConfidenceMetricsEntryFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); auPrc_ = 0F; @@ -4388,18 +4265,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.ClassificationProto.internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics build() { com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics result = buildPartial(); if (!result.isInitialized()) { @@ -4408,7 +4282,6 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics buildPartial() { com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics result = new com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics(this); int from_bitField0_ = bitField0_; @@ -4439,39 +4312,32 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics) { return mergeFrom((com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics)other); @@ -4533,12 +4399,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ClassificationProto.Cla return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5273,13 +5137,11 @@ public Builder addAnnotationSpecIdBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -5301,12 +5163,11 @@ public static com.google.cloud.automl.v1beta1.ClassificationProto.Classification private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ClassificationEvaluationMetrics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassificationEvaluationMetrics(input, extensionRegistry); + return new ClassificationEvaluationMetrics(input, extensionRegistry); } }; @@ -5319,7 +5180,6 @@ public com.google.protobuf.Parser getParserForT return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -5369,7 +5229,7 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat "metrics_entry\030\003 \003(\0132S.google.cloud.autom" + "l.v1beta1.ClassificationEvaluationMetric" + "s.ConfidenceMetricsEntry\022f\n\020confusion_ma" + - "trix\030\004 \001(\0132L.google.cloud.automl.v1beta1" + + "trix\030\004 \001(\0132L.google.cloud.automl.v1beta1", ".ClassificationEvaluationMetrics.Confusi" + "onMatrix\022\032\n\022annotation_spec_id\030\005 \003(\t\032\254\001\n" + "\026ConfidenceMetricsEntry\022\034\n\024confidence_th" + @@ -5379,7 +5239,7 @@ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluat "e_at1\030\007 \001(\002\032\252\001\n\017ConfusionMatrix\022\032\n\022annot" + "ation_spec_id\030\001 \003(\t\022]\n\003row\030\002 \003(\0132P.googl" + "e.cloud.automl.v1beta1.ClassificationEva" + - "luationMetrics.ConfusionMatrix.Row\032\034\n\003Ro" + + "luationMetrics.ConfusionMatrix.Row\032\034\n\003Ro", "w\022\025\n\rexample_count\030\001 \003(\005*Y\n\022Classificati" + "onType\022#\n\037CLASSIFICATION_TYPE_UNSPECIFIE" + "D\020\000\022\016\n\nMULTICLASS\020\001\022\016\n\nMULTILABEL\020\002By\n\037c" + diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java index 5883ece7e2b1..5057fda97784 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java @@ -33,9 +33,6 @@ private CreateDatasetRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private CreateDatasetRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -66,13 +70,6 @@ private CreateDatasetRequest( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private CreateDatasetRequest( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable @@ -174,7 +170,6 @@ public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -184,7 +179,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { @@ -196,7 +190,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -324,7 +317,6 @@ public static com.google.cloud.automl.v1beta1.CreateDatasetRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -332,7 +324,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.CreateDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -360,7 +351,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_fieldAccessorTable @@ -383,7 +373,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); parent_ = ""; @@ -397,18 +386,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateDatasetRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.CreateDatasetRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.CreateDatasetRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.CreateDatasetRequest build() { com.google.cloud.automl.v1beta1.CreateDatasetRequest result = buildPartial(); if (!result.isInitialized()) { @@ -417,7 +403,6 @@ public com.google.cloud.automl.v1beta1.CreateDatasetRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.CreateDatasetRequest buildPartial() { com.google.cloud.automl.v1beta1.CreateDatasetRequest result = new com.google.cloud.automl.v1beta1.CreateDatasetRequest(this); result.parent_ = parent_; @@ -430,39 +415,32 @@ public com.google.cloud.automl.v1beta1.CreateDatasetRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.CreateDatasetRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.CreateDatasetRequest)other); @@ -486,12 +464,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.CreateDatasetRequest ot return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -751,13 +727,11 @@ public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { } return datasetBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -779,12 +753,11 @@ public static com.google.cloud.automl.v1beta1.CreateDatasetRequest getDefaultIns private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public CreateDatasetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDatasetRequest(input, extensionRegistry); + return new CreateDatasetRequest(input, extensionRegistry); } }; @@ -797,7 +770,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.CreateDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java index c29a1dcafa16..65ae98f46036 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelOperationMetadata.java @@ -32,9 +32,6 @@ private CreateModelOperationMetadata( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -69,7 +66,6 @@ private CreateModelOperationMetadata( return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_fieldAccessorTable @@ -78,7 +74,6 @@ private CreateModelOperationMetadata( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -88,13 +83,11 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -202,7 +195,6 @@ public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata parse .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -210,7 +202,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.CreateModelOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -238,7 +229,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_fieldAccessorTable @@ -261,24 +251,20 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata build() { com.google.cloud.automl.v1beta1.CreateModelOperationMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -287,46 +273,38 @@ public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata buildPartial() { com.google.cloud.automl.v1beta1.CreateModelOperationMetadata result = new com.google.cloud.automl.v1beta1.CreateModelOperationMetadata(this); onBuilt(); return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) { return mergeFrom((com.google.cloud.automl.v1beta1.CreateModelOperationMetadata)other); @@ -343,12 +321,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.CreateModelOperationMet return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -366,13 +342,11 @@ public Builder mergeFrom( } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -394,12 +368,11 @@ public static com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getDe private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public CreateModelOperationMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateModelOperationMetadata(input, extensionRegistry); + return new CreateModelOperationMetadata(input, extensionRegistry); } }; @@ -412,7 +385,6 @@ public com.google.protobuf.Parser getParserForType return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java index e06ce9da62c1..c07f882e740f 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java @@ -33,9 +33,6 @@ private CreateModelRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private CreateModelRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -66,13 +70,6 @@ private CreateModelRequest( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private CreateModelRequest( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable @@ -174,7 +170,6 @@ public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -184,7 +179,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { @@ -196,7 +190,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -324,7 +317,6 @@ public static com.google.cloud.automl.v1beta1.CreateModelRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -332,7 +324,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.CreateModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -360,7 +351,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable @@ -383,7 +373,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); parent_ = ""; @@ -397,18 +386,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.CreateModelRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.CreateModelRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.CreateModelRequest build() { com.google.cloud.automl.v1beta1.CreateModelRequest result = buildPartial(); if (!result.isInitialized()) { @@ -417,7 +403,6 @@ public com.google.cloud.automl.v1beta1.CreateModelRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.CreateModelRequest buildPartial() { com.google.cloud.automl.v1beta1.CreateModelRequest result = new com.google.cloud.automl.v1beta1.CreateModelRequest(this); result.parent_ = parent_; @@ -430,39 +415,32 @@ public com.google.cloud.automl.v1beta1.CreateModelRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.CreateModelRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.CreateModelRequest)other); @@ -486,12 +464,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.CreateModelRequest othe return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -751,13 +727,11 @@ public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder() { } return modelBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -779,12 +753,11 @@ public static com.google.cloud.automl.v1beta1.CreateModelRequest getDefaultInsta private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public CreateModelRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateModelRequest(input, extensionRegistry); + return new CreateModelRequest(input, extensionRegistry); } }; @@ -797,7 +770,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.CreateModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java index 848003d0ba68..8cf1085cd32d 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java @@ -47,7 +47,7 @@ public static void registerAllExtensions( "\000\022\025\n\rthumbnail_uri\030\004 \001(\tB\006\n\004data\"F\n\013Text" + "Snippet\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_type\030\002 " + "\001(\t\022\023\n\013content_uri\030\004 \001(\t\"\222\001\n\016ExamplePayl" + - "oad\0223\n\005image\030\001 \001(\0132\".google.cloud.automl" + + "oad\0223\n\005image\030\001 \001(\0132\".google.cloud.automl", ".v1beta1.ImageH\000\022@\n\014text_snippet\030\002 \001(\0132(" + ".google.cloud.automl.v1beta1.TextSnippet" + "H\000B\t\n\007payloadBf\n\037com.google.cloud.automl" + diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java index f7d5beefea1f..4e563d7a5b00 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java @@ -36,9 +36,6 @@ private Dataset( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -50,6 +47,13 @@ private Dataset( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -122,13 +126,6 @@ private Dataset( datasetMetadataCase_ = 25; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -146,7 +143,6 @@ private Dataset( return com.google.cloud.automl.v1beta1.DatasetOuterClass.internal_static_google_cloud_automl_v1beta1_Dataset_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.DatasetOuterClass.internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable @@ -447,7 +443,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -457,7 +452,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -484,7 +478,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -674,7 +667,6 @@ public static com.google.cloud.automl.v1beta1.Dataset parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -682,7 +674,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.Dataset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -711,7 +702,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.DatasetOuterClass.internal_static_google_cloud_automl_v1beta1_Dataset_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.DatasetOuterClass.internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable @@ -734,7 +724,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -754,18 +743,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.DatasetOuterClass.internal_static_google_cloud_automl_v1beta1_Dataset_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.Dataset getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.Dataset build() { com.google.cloud.automl.v1beta1.Dataset result = buildPartial(); if (!result.isInitialized()) { @@ -774,7 +760,6 @@ public com.google.cloud.automl.v1beta1.Dataset build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.Dataset buildPartial() { com.google.cloud.automl.v1beta1.Dataset result = new com.google.cloud.automl.v1beta1.Dataset(this); if (datasetMetadataCase_ == 23) { @@ -811,39 +796,32 @@ public com.google.cloud.automl.v1beta1.Dataset buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.Dataset) { return mergeFrom((com.google.cloud.automl.v1beta1.Dataset)other); @@ -891,12 +869,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Dataset other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1834,13 +1810,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } return createTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1862,12 +1836,11 @@ public static com.google.cloud.automl.v1beta1.Dataset getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public Dataset parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Dataset(input, extensionRegistry); + return new Dataset(input, extensionRegistry); } }; @@ -1880,7 +1853,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.Dataset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java index 92df1adf3912..fd9f12739aac 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java @@ -37,7 +37,7 @@ public static void registerAllExtensions( "oto\032&google/cloud/automl/v1beta1/text.pr" + "oto\032-google/cloud/automl/v1beta1/transla" + "tion.proto\032\037google/protobuf/timestamp.pr" + - "oto\"\314\003\n\007Dataset\022_\n\034translation_dataset_m" + + "oto\"\314\003\n\007Dataset\022_\n\034translation_dataset_m", "etadata\030\027 \001(\01327.google.cloud.automl.v1be" + "ta1.TranslationDatasetMetadataH\000\022p\n%imag" + "e_classification_dataset_metadata\030\030 \001(\0132" + @@ -47,7 +47,7 @@ public static void registerAllExtensions( "e.cloud.automl.v1beta1.TextClassificatio" + "nDatasetMetadataH\000\022\014\n\004name\030\001 \001(\t\022\024\n\014disp" + "lay_name\030\002 \001(\t\022\025\n\rexample_count\030\025 \001(\005\022/\n" + - "\013create_time\030\016 \001(\0132\032.google.protobuf.Tim" + + "\013create_time\030\016 \001(\0132\032.google.protobuf.Tim", "estampB\022\n\020dataset_metadataBf\n\037com.google" + ".cloud.automl.v1beta1P\001ZAgoogle.golang.o" + "rg/genproto/googleapis/cloud/automl/v1be" + diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java index d2e054df4971..c34b0ce841e2 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java @@ -33,9 +33,6 @@ private DeleteDatasetRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private DeleteDatasetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private DeleteDatasetRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private DeleteDatasetRequest( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable @@ -128,7 +124,6 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,7 +133,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -147,7 +141,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -262,7 +255,6 @@ public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -270,7 +262,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.DeleteDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -298,7 +289,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable @@ -321,7 +311,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -329,18 +318,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.DeleteDatasetRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.DeleteDatasetRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.DeleteDatasetRequest build() { com.google.cloud.automl.v1beta1.DeleteDatasetRequest result = buildPartial(); if (!result.isInitialized()) { @@ -349,7 +335,6 @@ public com.google.cloud.automl.v1beta1.DeleteDatasetRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.DeleteDatasetRequest buildPartial() { com.google.cloud.automl.v1beta1.DeleteDatasetRequest result = new com.google.cloud.automl.v1beta1.DeleteDatasetRequest(this); result.name_ = name_; @@ -357,39 +342,32 @@ public com.google.cloud.automl.v1beta1.DeleteDatasetRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.DeleteDatasetRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.DeleteDatasetRequest)other); @@ -410,12 +388,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeleteDatasetRequest ot return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -522,13 +498,11 @@ public Builder setNameBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -550,12 +524,11 @@ public static com.google.cloud.automl.v1beta1.DeleteDatasetRequest getDefaultIns private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public DeleteDatasetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDatasetRequest(input, extensionRegistry); + return new DeleteDatasetRequest(input, extensionRegistry); } }; @@ -568,7 +541,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.DeleteDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java index 522715397cb9..4ff1556700ef 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java @@ -33,9 +33,6 @@ private DeleteModelRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private DeleteModelRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private DeleteModelRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private DeleteModelRequest( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable @@ -128,7 +124,6 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,7 +133,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -147,7 +141,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -262,7 +255,6 @@ public static com.google.cloud.automl.v1beta1.DeleteModelRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -270,7 +262,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.DeleteModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -298,7 +289,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable @@ -321,7 +311,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -329,18 +318,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.DeleteModelRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.DeleteModelRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.DeleteModelRequest build() { com.google.cloud.automl.v1beta1.DeleteModelRequest result = buildPartial(); if (!result.isInitialized()) { @@ -349,7 +335,6 @@ public com.google.cloud.automl.v1beta1.DeleteModelRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.DeleteModelRequest buildPartial() { com.google.cloud.automl.v1beta1.DeleteModelRequest result = new com.google.cloud.automl.v1beta1.DeleteModelRequest(this); result.name_ = name_; @@ -357,39 +342,32 @@ public com.google.cloud.automl.v1beta1.DeleteModelRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.DeleteModelRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.DeleteModelRequest)other); @@ -410,12 +388,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeleteModelRequest othe return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -522,13 +498,11 @@ public Builder setNameBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -550,12 +524,11 @@ public static com.google.cloud.automl.v1beta1.DeleteModelRequest getDefaultInsta private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public DeleteModelRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteModelRequest(input, extensionRegistry); + return new DeleteModelRequest(input, extensionRegistry); } }; @@ -568,7 +541,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.DeleteModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java index 839904468f2c..eb81d48bd6c4 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java @@ -33,9 +33,6 @@ private DeployModelRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private DeployModelRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private DeployModelRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private DeployModelRequest( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable @@ -128,7 +124,6 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,7 +133,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -147,7 +141,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -262,7 +255,6 @@ public static com.google.cloud.automl.v1beta1.DeployModelRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -270,7 +262,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.DeployModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -298,7 +289,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable @@ -321,7 +311,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -329,18 +318,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.DeployModelRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.DeployModelRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.DeployModelRequest build() { com.google.cloud.automl.v1beta1.DeployModelRequest result = buildPartial(); if (!result.isInitialized()) { @@ -349,7 +335,6 @@ public com.google.cloud.automl.v1beta1.DeployModelRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.DeployModelRequest buildPartial() { com.google.cloud.automl.v1beta1.DeployModelRequest result = new com.google.cloud.automl.v1beta1.DeployModelRequest(this); result.name_ = name_; @@ -357,39 +342,32 @@ public com.google.cloud.automl.v1beta1.DeployModelRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.DeployModelRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.DeployModelRequest)other); @@ -410,12 +388,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeployModelRequest othe return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -522,13 +498,11 @@ public Builder setNameBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -550,12 +524,11 @@ public static com.google.cloud.automl.v1beta1.DeployModelRequest getDefaultInsta private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public DeployModelRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeployModelRequest(input, extensionRegistry); + return new DeployModelRequest(input, extensionRegistry); } }; @@ -568,7 +541,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.DeployModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java index e7b5ca4d2558..94309b8540f3 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java @@ -32,9 +32,6 @@ private ExamplePayload( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,6 +43,13 @@ private ExamplePayload( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { com.google.cloud.automl.v1beta1.Image.Builder subBuilder = null; if (payloadCase_ == 1) { @@ -74,13 +78,6 @@ private ExamplePayload( payloadCase_ = 2; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,7 +95,6 @@ private ExamplePayload( return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_ExamplePayload_fieldAccessorTable @@ -221,7 +217,6 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTextSnippetOrBuil } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -231,7 +226,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (payloadCase_ == 1) { @@ -243,7 +237,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -386,7 +379,6 @@ public static com.google.cloud.automl.v1beta1.ExamplePayload parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -394,7 +386,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExamplePayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -422,7 +413,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_ExamplePayload_fieldAccessorTable @@ -445,7 +435,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); payloadCase_ = 0; @@ -453,18 +442,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ExamplePayload getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ExamplePayload.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ExamplePayload build() { com.google.cloud.automl.v1beta1.ExamplePayload result = buildPartial(); if (!result.isInitialized()) { @@ -473,7 +459,6 @@ public com.google.cloud.automl.v1beta1.ExamplePayload build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ExamplePayload buildPartial() { com.google.cloud.automl.v1beta1.ExamplePayload result = new com.google.cloud.automl.v1beta1.ExamplePayload(this); if (payloadCase_ == 1) { @@ -495,39 +480,32 @@ public com.google.cloud.automl.v1beta1.ExamplePayload buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ExamplePayload) { return mergeFrom((com.google.cloud.automl.v1beta1.ExamplePayload)other); @@ -557,12 +535,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExamplePayload other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -939,13 +915,11 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTextSnippetOrBuil onChanged();; return textSnippetBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -967,12 +941,11 @@ public static com.google.cloud.automl.v1beta1.ExamplePayload getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ExamplePayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ExamplePayload(input, extensionRegistry); + return new ExamplePayload(input, extensionRegistry); } }; @@ -985,7 +958,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ExamplePayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java index cfce354503ae..1a0ff7107a2a 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java @@ -33,9 +33,6 @@ private ExportDataRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private ExportDataRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -66,13 +70,6 @@ private ExportDataRequest( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ExportDataRequest( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ExportDataRequest_fieldAccessorTable @@ -174,7 +170,6 @@ public com.google.cloud.automl.v1beta1.OutputConfigOrBuilder getOutputConfigOrBu } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -184,7 +179,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -196,7 +190,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -324,7 +317,6 @@ public static com.google.cloud.automl.v1beta1.ExportDataRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -332,7 +324,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExportDataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -360,7 +351,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ExportDataRequest_fieldAccessorTable @@ -383,7 +373,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -397,18 +386,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ExportDataRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ExportDataRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ExportDataRequest build() { com.google.cloud.automl.v1beta1.ExportDataRequest result = buildPartial(); if (!result.isInitialized()) { @@ -417,7 +403,6 @@ public com.google.cloud.automl.v1beta1.ExportDataRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ExportDataRequest buildPartial() { com.google.cloud.automl.v1beta1.ExportDataRequest result = new com.google.cloud.automl.v1beta1.ExportDataRequest(this); result.name_ = name_; @@ -430,39 +415,32 @@ public com.google.cloud.automl.v1beta1.ExportDataRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ExportDataRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.ExportDataRequest)other); @@ -486,12 +464,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportDataRequest other return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -751,13 +727,11 @@ public com.google.cloud.automl.v1beta1.OutputConfigOrBuilder getOutputConfigOrBu } return outputConfigBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -779,12 +753,11 @@ public static com.google.cloud.automl.v1beta1.ExportDataRequest getDefaultInstan private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ExportDataRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportDataRequest(input, extensionRegistry); + return new ExportDataRequest(input, extensionRegistry); } }; @@ -797,7 +770,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ExportDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java index 4f44c04ba45e..92c61603f975 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java @@ -33,9 +33,6 @@ private GcsDestination( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private GcsDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - outputUriPrefix_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private GcsDestination( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + outputUriPrefix_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private GcsDestination( return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsDestination_fieldAccessorTable @@ -138,7 +134,6 @@ public java.lang.String getOutputUriPrefix() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -148,7 +143,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getOutputUriPrefixBytes().isEmpty()) { @@ -157,7 +151,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -272,7 +265,6 @@ public static com.google.cloud.automl.v1beta1.GcsDestination parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -280,7 +272,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -308,7 +299,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsDestination_fieldAccessorTable @@ -331,7 +321,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); outputUriPrefix_ = ""; @@ -339,18 +328,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GcsDestination getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.GcsDestination build() { com.google.cloud.automl.v1beta1.GcsDestination result = buildPartial(); if (!result.isInitialized()) { @@ -359,7 +345,6 @@ public com.google.cloud.automl.v1beta1.GcsDestination build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GcsDestination buildPartial() { com.google.cloud.automl.v1beta1.GcsDestination result = new com.google.cloud.automl.v1beta1.GcsDestination(this); result.outputUriPrefix_ = outputUriPrefix_; @@ -367,39 +352,32 @@ public com.google.cloud.automl.v1beta1.GcsDestination buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.GcsDestination) { return mergeFrom((com.google.cloud.automl.v1beta1.GcsDestination)other); @@ -420,12 +398,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.GcsDestination other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -557,13 +533,11 @@ public Builder setOutputUriPrefixBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -585,12 +559,11 @@ public static com.google.cloud.automl.v1beta1.GcsDestination getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public GcsDestination parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); + return new GcsDestination(input, extensionRegistry); } }; @@ -603,7 +576,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java index cf114ebcad35..11a2b9dc5b1c 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java @@ -33,9 +33,6 @@ private GcsSource( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private GcsSource( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { @@ -56,13 +60,6 @@ private GcsSource( inputUris_.add(s); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,7 +80,6 @@ private GcsSource( return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_fieldAccessorTable @@ -145,7 +141,6 @@ public java.lang.String getInputUris(int index) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -155,7 +150,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < inputUris_.size(); i++) { @@ -164,7 +158,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -286,7 +279,6 @@ public static com.google.cloud.automl.v1beta1.GcsSource parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -294,7 +286,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -322,7 +313,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_fieldAccessorTable @@ -345,7 +335,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); inputUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -353,18 +342,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GcsSource getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.GcsSource build() { com.google.cloud.automl.v1beta1.GcsSource result = buildPartial(); if (!result.isInitialized()) { @@ -373,7 +359,6 @@ public com.google.cloud.automl.v1beta1.GcsSource build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GcsSource buildPartial() { com.google.cloud.automl.v1beta1.GcsSource result = new com.google.cloud.automl.v1beta1.GcsSource(this); int from_bitField0_ = bitField0_; @@ -386,39 +371,32 @@ public com.google.cloud.automl.v1beta1.GcsSource buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.GcsSource) { return mergeFrom((com.google.cloud.automl.v1beta1.GcsSource)other); @@ -445,12 +423,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.GcsSource other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -617,13 +593,11 @@ public Builder addInputUrisBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -645,12 +619,11 @@ public static com.google.cloud.automl.v1beta1.GcsSource getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public GcsSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); + return new GcsSource(input, extensionRegistry); } }; @@ -663,7 +636,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java index ff492ff8baba..9e910969e490 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java @@ -33,9 +33,6 @@ private GetDatasetRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private GetDatasetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private GetDatasetRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private GetDatasetRequest( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable @@ -128,7 +124,6 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,7 +133,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -147,7 +141,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -262,7 +255,6 @@ public static com.google.cloud.automl.v1beta1.GetDatasetRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -270,7 +262,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.GetDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -298,7 +289,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_fieldAccessorTable @@ -321,7 +311,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -329,18 +318,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetDatasetRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GetDatasetRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.GetDatasetRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.GetDatasetRequest build() { com.google.cloud.automl.v1beta1.GetDatasetRequest result = buildPartial(); if (!result.isInitialized()) { @@ -349,7 +335,6 @@ public com.google.cloud.automl.v1beta1.GetDatasetRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GetDatasetRequest buildPartial() { com.google.cloud.automl.v1beta1.GetDatasetRequest result = new com.google.cloud.automl.v1beta1.GetDatasetRequest(this); result.name_ = name_; @@ -357,39 +342,32 @@ public com.google.cloud.automl.v1beta1.GetDatasetRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.GetDatasetRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.GetDatasetRequest)other); @@ -410,12 +388,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetDatasetRequest other return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -522,13 +498,11 @@ public Builder setNameBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -550,12 +524,11 @@ public static com.google.cloud.automl.v1beta1.GetDatasetRequest getDefaultInstan private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public GetDatasetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDatasetRequest(input, extensionRegistry); + return new GetDatasetRequest(input, extensionRegistry); } }; @@ -568,7 +541,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GetDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java index 89485147c257..17d5be1a3b9a 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java @@ -33,9 +33,6 @@ private GetModelEvaluationRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private GetModelEvaluationRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private GetModelEvaluationRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private GetModelEvaluationRequest( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable @@ -128,7 +124,6 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,7 +133,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -147,7 +141,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -262,7 +255,6 @@ public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest parseFro .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -270,7 +262,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.GetModelEvaluationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -298,7 +289,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable @@ -321,7 +311,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -329,18 +318,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GetModelEvaluationRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.GetModelEvaluationRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.GetModelEvaluationRequest build() { com.google.cloud.automl.v1beta1.GetModelEvaluationRequest result = buildPartial(); if (!result.isInitialized()) { @@ -349,7 +335,6 @@ public com.google.cloud.automl.v1beta1.GetModelEvaluationRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GetModelEvaluationRequest buildPartial() { com.google.cloud.automl.v1beta1.GetModelEvaluationRequest result = new com.google.cloud.automl.v1beta1.GetModelEvaluationRequest(this); result.name_ = name_; @@ -357,39 +342,32 @@ public com.google.cloud.automl.v1beta1.GetModelEvaluationRequest buildPartial() return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.GetModelEvaluationRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.GetModelEvaluationRequest)other); @@ -410,12 +388,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetModelEvaluationReque return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -522,13 +498,11 @@ public Builder setNameBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -550,12 +524,11 @@ public static com.google.cloud.automl.v1beta1.GetModelEvaluationRequest getDefau private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public GetModelEvaluationRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelEvaluationRequest(input, extensionRegistry); + return new GetModelEvaluationRequest(input, extensionRegistry); } }; @@ -568,7 +541,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GetModelEvaluationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java index 4070e95dbc95..789674bf003f 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java @@ -33,9 +33,6 @@ private GetModelRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private GetModelRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private GetModelRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private GetModelRequest( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable @@ -128,7 +124,6 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,7 +133,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -147,7 +141,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -262,7 +255,6 @@ public static com.google.cloud.automl.v1beta1.GetModelRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -270,7 +262,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.GetModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -298,7 +289,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable @@ -321,7 +311,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -329,18 +318,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GetModelRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.GetModelRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.GetModelRequest build() { com.google.cloud.automl.v1beta1.GetModelRequest result = buildPartial(); if (!result.isInitialized()) { @@ -349,7 +335,6 @@ public com.google.cloud.automl.v1beta1.GetModelRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GetModelRequest buildPartial() { com.google.cloud.automl.v1beta1.GetModelRequest result = new com.google.cloud.automl.v1beta1.GetModelRequest(this); result.name_ = name_; @@ -357,39 +342,32 @@ public com.google.cloud.automl.v1beta1.GetModelRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.GetModelRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.GetModelRequest)other); @@ -410,12 +388,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetModelRequest other) return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -522,13 +498,11 @@ public Builder setNameBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -550,12 +524,11 @@ public static com.google.cloud.automl.v1beta1.GetModelRequest getDefaultInstance private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public GetModelRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelRequest(input, extensionRegistry); + return new GetModelRequest(input, extensionRegistry); } }; @@ -568,7 +541,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.GetModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java index d799d9e315ca..cf1baa33f705 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java @@ -33,9 +33,6 @@ private Image( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private Image( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { dataCase_ = 1; data_ = input.readBytes(); @@ -72,13 +76,6 @@ private Image( dataCase_ = 6; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +93,6 @@ private Image( return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Image_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable @@ -240,7 +236,6 @@ public java.lang.String getThumbnailUri() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -250,7 +245,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dataCase_ == 1) { @@ -266,7 +260,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -417,7 +410,6 @@ public static com.google.cloud.automl.v1beta1.Image parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -425,7 +417,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.Image prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -453,7 +444,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Image_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Image_fieldAccessorTable @@ -476,7 +466,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); thumbnailUri_ = ""; @@ -486,18 +475,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_Image_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.Image getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.Image.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.Image build() { com.google.cloud.automl.v1beta1.Image result = buildPartial(); if (!result.isInitialized()) { @@ -506,7 +492,6 @@ public com.google.cloud.automl.v1beta1.Image build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.Image buildPartial() { com.google.cloud.automl.v1beta1.Image result = new com.google.cloud.automl.v1beta1.Image(this); if (dataCase_ == 1) { @@ -525,39 +510,32 @@ public com.google.cloud.automl.v1beta1.Image buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.Image) { return mergeFrom((com.google.cloud.automl.v1beta1.Image)other); @@ -591,12 +569,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Image other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -941,13 +917,11 @@ public Builder setThumbnailUriBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -969,12 +943,11 @@ public static com.google.cloud.automl.v1beta1.Image getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public Image parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Image(input, extensionRegistry); + return new Image(input, extensionRegistry); } }; @@ -987,7 +960,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.Image getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java index 95b975cf98f0..71c41121b622 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java @@ -33,9 +33,6 @@ private ImageClassificationDatasetMetadata( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private ImageClassificationDatasetMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - classificationType_ = rawValue; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private ImageClassificationDatasetMetadata( } break; } + case 8: { + int rawValue = input.readEnum(); + + classificationType_ = rawValue; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private ImageClassificationDatasetMetadata( return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable @@ -107,13 +103,11 @@ public int getClassificationTypeValue() { * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1;
*/ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { - @SuppressWarnings("deprecation") com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -123,7 +117,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (classificationType_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { @@ -132,7 +125,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -247,7 +239,6 @@ public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -255,7 +246,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -283,7 +273,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable @@ -306,7 +295,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); classificationType_ = 0; @@ -314,18 +302,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata build() { com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -334,7 +319,6 @@ public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata build( return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata buildPartial() { com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata result = new com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata(this); result.classificationType_ = classificationType_; @@ -342,39 +326,32 @@ public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata buildP return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata) { return mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata)other); @@ -394,12 +371,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImageClassificationData return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -452,7 +427,6 @@ public Builder setClassificationTypeValue(int value) { *.google.cloud.automl.v1beta1.ClassificationType classification_type = 1;
*/ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { - @SuppressWarnings("deprecation") com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; } @@ -487,13 +461,11 @@ public Builder clearClassificationType() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -515,12 +487,11 @@ public static com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata private static final com.google.protobuf.ParserPARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ImageClassificationDatasetMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationDatasetMetadata(input, extensionRegistry); + return new ImageClassificationDatasetMetadata(input, extensionRegistry); } }; @@ -533,7 +504,6 @@ public com.google.protobuf.Parser getParserF return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java index 31e180b4c0b9..d90df8bbb7ea 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java @@ -36,9 +36,6 @@ private ImageClassificationModelMetadata( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -50,6 +47,13 @@ private ImageClassificationModelMetadata( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -72,13 +76,6 @@ private ImageClassificationModelMetadata( stopReason_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +93,6 @@ private ImageClassificationModelMetadata( return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_fieldAccessorTable @@ -226,7 +222,6 @@ public java.lang.String getStopReason() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -236,7 +231,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getBaseModelIdBytes().isEmpty()) { @@ -254,7 +248,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -394,7 +387,6 @@ public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata p .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -402,7 +394,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -430,7 +421,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_fieldAccessorTable @@ -453,7 +443,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); baseModelId_ = ""; @@ -467,18 +456,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.ImageProto.internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata build() { com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -487,7 +473,6 @@ public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata build() return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata buildPartial() { com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata result = new com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata(this); result.baseModelId_ = baseModelId_; @@ -498,39 +483,32 @@ public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata buildPar return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) { return mergeFrom((com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata)other); @@ -561,12 +539,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImageClassificationMode return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -867,13 +843,11 @@ public Builder setStopReasonBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -895,12 +869,11 @@ public static com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata g private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ImageClassificationModelMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationModelMetadata(input, extensionRegistry); + return new ImageClassificationModelMetadata(input, extensionRegistry); } }; @@ -913,7 +886,6 @@ public com.google.protobuf.Parser getParserFor return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java index c7f91c5ae280..e4599db1bede 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java @@ -42,7 +42,7 @@ public static void registerAllExtensions( "type\030\001 \001(\0162/.google.cloud.automl.v1beta1" + ".ClassificationType\"x\n ImageClassificati" + "onModelMetadata\022\025\n\rbase_model_id\030\001 \001(\t\022\024" + - "\n\014train_budget\030\002 \001(\003\022\022\n\ntrain_cost\030\003 \001(\003" + + "\n\014train_budget\030\002 \001(\003\022\022\n\ntrain_cost\030\003 \001(\003", "\022\023\n\013stop_reason\030\005 \001(\tBr\n\037com.google.clou" + "d.automl.v1beta1B\nImageProtoP\001ZAgoogle.g" + "olang.org/genproto/googleapis/cloud/auto" + diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java index 1d27bb0fa36e..8376f0e62a66 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java @@ -33,9 +33,6 @@ private ImportDataRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private ImportDataRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -66,13 +70,6 @@ private ImportDataRequest( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ImportDataRequest( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable @@ -176,7 +172,6 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuil } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -186,7 +181,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -198,7 +192,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -326,7 +319,6 @@ public static com.google.cloud.automl.v1beta1.ImportDataRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -334,7 +326,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ImportDataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -362,7 +353,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable @@ -385,7 +375,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -399,18 +388,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ImportDataRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ImportDataRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ImportDataRequest build() { com.google.cloud.automl.v1beta1.ImportDataRequest result = buildPartial(); if (!result.isInitialized()) { @@ -419,7 +405,6 @@ public com.google.cloud.automl.v1beta1.ImportDataRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ImportDataRequest buildPartial() { com.google.cloud.automl.v1beta1.ImportDataRequest result = new com.google.cloud.automl.v1beta1.ImportDataRequest(this); result.name_ = name_; @@ -432,39 +417,32 @@ public com.google.cloud.automl.v1beta1.ImportDataRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ImportDataRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.ImportDataRequest)other); @@ -488,12 +466,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImportDataRequest other return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -758,13 +734,11 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuil } return inputConfigBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -786,12 +760,11 @@ public static com.google.cloud.automl.v1beta1.ImportDataRequest getDefaultInstan private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ImportDataRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportDataRequest(input, extensionRegistry); + return new ImportDataRequest(input, extensionRegistry); } }; @@ -804,7 +777,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ImportDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java index 0912f06ada50..f118e89e83b7 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java @@ -32,9 +32,6 @@ private InputConfig( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,6 +43,13 @@ private InputConfig( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { com.google.cloud.automl.v1beta1.GcsSource.Builder subBuilder = null; if (sourceCase_ == 1) { @@ -60,13 +64,6 @@ private InputConfig( sourceCase_ = 1; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,7 +81,6 @@ private InputConfig( return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_InputConfig_fieldAccessorTable @@ -167,7 +163,6 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -177,7 +172,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sourceCase_ == 1) { @@ -186,7 +180,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -317,7 +310,6 @@ public static com.google.cloud.automl.v1beta1.InputConfig parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -325,7 +317,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -353,7 +344,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_InputConfig_fieldAccessorTable @@ -376,7 +366,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); sourceCase_ = 0; @@ -384,18 +373,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.InputConfig getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.InputConfig build() { com.google.cloud.automl.v1beta1.InputConfig result = buildPartial(); if (!result.isInitialized()) { @@ -404,7 +390,6 @@ public com.google.cloud.automl.v1beta1.InputConfig build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.InputConfig buildPartial() { com.google.cloud.automl.v1beta1.InputConfig result = new com.google.cloud.automl.v1beta1.InputConfig(this); if (sourceCase_ == 1) { @@ -419,39 +404,32 @@ public com.google.cloud.automl.v1beta1.InputConfig buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.InputConfig) { return mergeFrom((com.google.cloud.automl.v1beta1.InputConfig)other); @@ -477,12 +455,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.InputConfig other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -687,13 +663,11 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder( onChanged();; return gcsSourceBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -715,12 +689,11 @@ public static com.google.cloud.automl.v1beta1.InputConfig getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public InputConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); + return new InputConfig(input, extensionRegistry); } }; @@ -733,7 +706,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java index 07f7cf34db64..0bd872f9f64e 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java @@ -52,7 +52,7 @@ public static void registerAllExtensions( ".automl.v1beta1.GcsDestinationH\000B\r\n\013dest" + "ination\"\037\n\tGcsSource\022\022\n\ninput_uris\030\001 \003(\t" + "\"+\n\016GcsDestination\022\031\n\021output_uri_prefix\030" + - "\001 \001(\tBf\n\037com.google.cloud.automl.v1beta1" + + "\001 \001(\tBf\n\037com.google.cloud.automl.v1beta1", "P\001ZAgoogle.golang.org/genproto/googleapi" + "s/cloud/automl/v1beta1;automlb\006proto3" }; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java index 9d5e7a6d7089..6d7554d4b87e 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java @@ -36,9 +36,6 @@ private ListDatasetsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -50,6 +47,13 @@ private ListDatasetsRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -73,13 +77,6 @@ private ListDatasetsRequest( pageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,7 +94,6 @@ private ListDatasetsRequest( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable @@ -260,7 +256,6 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -270,7 +265,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { @@ -288,7 +282,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -425,7 +418,6 @@ public static com.google.cloud.automl.v1beta1.ListDatasetsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -433,7 +425,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListDatasetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -461,7 +452,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_fieldAccessorTable @@ -484,7 +474,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); parent_ = ""; @@ -498,18 +487,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListDatasetsRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ListDatasetsRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListDatasetsRequest build() { com.google.cloud.automl.v1beta1.ListDatasetsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -518,7 +504,6 @@ public com.google.cloud.automl.v1beta1.ListDatasetsRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListDatasetsRequest buildPartial() { com.google.cloud.automl.v1beta1.ListDatasetsRequest result = new com.google.cloud.automl.v1beta1.ListDatasetsRequest(this); result.parent_ = parent_; @@ -529,39 +514,32 @@ public com.google.cloud.automl.v1beta1.ListDatasetsRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ListDatasetsRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.ListDatasetsRequest)other); @@ -593,12 +571,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListDatasetsRequest oth return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -959,13 +935,11 @@ public Builder setPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -987,12 +961,11 @@ public static com.google.cloud.automl.v1beta1.ListDatasetsRequest getDefaultInst private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ListDatasetsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDatasetsRequest(input, extensionRegistry); + return new ListDatasetsRequest(input, extensionRegistry); } }; @@ -1005,7 +978,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListDatasetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java index ef17be1f6726..d2f36feba47a 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java @@ -34,9 +34,6 @@ private ListDatasetsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private ListDatasetsResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { datasets_ = new java.util.ArrayList (); @@ -63,13 +67,6 @@ private ListDatasetsResponse( nextPageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ListDatasetsResponse( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable @@ -199,7 +195,6 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -209,7 +204,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < datasets_.size(); i++) { @@ -221,7 +215,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -346,7 +339,6 @@ public static com.google.cloud.automl.v1beta1.ListDatasetsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -354,7 +346,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListDatasetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -382,7 +373,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable @@ -406,7 +396,6 @@ private void maybeForceBuilderInitialization() { getDatasetsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (datasetsBuilder_ == null) { @@ -420,18 +409,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListDatasetsResponse getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ListDatasetsResponse.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListDatasetsResponse build() { com.google.cloud.automl.v1beta1.ListDatasetsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -440,7 +426,6 @@ public com.google.cloud.automl.v1beta1.ListDatasetsResponse build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListDatasetsResponse buildPartial() { com.google.cloud.automl.v1beta1.ListDatasetsResponse result = new com.google.cloud.automl.v1beta1.ListDatasetsResponse(this); int from_bitField0_ = bitField0_; @@ -460,39 +445,32 @@ public com.google.cloud.automl.v1beta1.ListDatasetsResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ListDatasetsResponse) { return mergeFrom((com.google.cloud.automl.v1beta1.ListDatasetsResponse)other); @@ -539,12 +517,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListDatasetsResponse ot return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -969,13 +945,11 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -997,12 +971,11 @@ public static com.google.cloud.automl.v1beta1.ListDatasetsResponse getDefaultIns private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ListDatasetsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDatasetsResponse(input, extensionRegistry); + return new ListDatasetsResponse(input, extensionRegistry); } }; @@ -1015,7 +988,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListDatasetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java index 722687f9e744..99d8e8cd8bff 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java @@ -36,9 +36,6 @@ private ListModelEvaluationsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -50,6 +47,13 @@ private ListModelEvaluationsRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -73,13 +77,6 @@ private ListModelEvaluationsRequest( pageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,7 +94,6 @@ private ListModelEvaluationsRequest( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable @@ -269,7 +265,6 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -279,7 +274,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { @@ -297,7 +291,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -434,7 +427,6 @@ public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest parseF .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -442,7 +434,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -470,7 +461,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable @@ -493,7 +483,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); parent_ = ""; @@ -507,18 +496,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest build() { com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -527,7 +513,6 @@ public com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest buildPartial() { com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest result = new com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest(this); result.parent_ = parent_; @@ -538,39 +523,32 @@ public com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest buildPartial( return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest)other); @@ -602,12 +580,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelEvaluationsReq return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -990,13 +966,11 @@ public Builder setPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1018,12 +992,11 @@ public static com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest getDef private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ListModelEvaluationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelEvaluationsRequest(input, extensionRegistry); + return new ListModelEvaluationsRequest(input, extensionRegistry); } }; @@ -1036,7 +1009,6 @@ public com.google.protobuf.Parser getParserForType( return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java index 6e15fd1530b2..588359e22225 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java @@ -34,9 +34,6 @@ private ListModelEvaluationsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private ListModelEvaluationsResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { modelEvaluation_ = new java.util.ArrayList (); @@ -63,13 +67,6 @@ private ListModelEvaluationsResponse( nextPageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ListModelEvaluationsResponse( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_fieldAccessorTable @@ -199,7 +195,6 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -209,7 +204,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < modelEvaluation_.size(); i++) { @@ -221,7 +215,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -346,7 +339,6 @@ public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse parse .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -354,7 +346,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -382,7 +373,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_fieldAccessorTable @@ -406,7 +396,6 @@ private void maybeForceBuilderInitialization() { getModelEvaluationFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (modelEvaluationBuilder_ == null) { @@ -420,18 +409,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse build() { com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -440,7 +426,6 @@ public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse buildPartial() { com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse result = new com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse(this); int from_bitField0_ = bitField0_; @@ -460,39 +445,32 @@ public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse buildPartial return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse) { return mergeFrom((com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse)other); @@ -539,12 +517,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelEvaluationsRes return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -969,13 +945,11 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -997,12 +971,11 @@ public static com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse getDe private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ListModelEvaluationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelEvaluationsResponse(input, extensionRegistry); + return new ListModelEvaluationsResponse(input, extensionRegistry); } }; @@ -1015,7 +988,6 @@ public com.google.protobuf.Parser getParserForType return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java index 6e06d63b884b..4d99e75027b0 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java @@ -36,9 +36,6 @@ private ListModelsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -50,6 +47,13 @@ private ListModelsRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -73,13 +77,6 @@ private ListModelsRequest( pageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,7 +94,6 @@ private ListModelsRequest( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable @@ -265,7 +261,6 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -275,7 +270,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { @@ -293,7 +287,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -430,7 +423,6 @@ public static com.google.cloud.automl.v1beta1.ListModelsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -438,7 +430,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListModelsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -466,7 +457,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable @@ -489,7 +479,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); parent_ = ""; @@ -503,18 +492,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelsRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ListModelsRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelsRequest build() { com.google.cloud.automl.v1beta1.ListModelsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -523,7 +509,6 @@ public com.google.cloud.automl.v1beta1.ListModelsRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelsRequest buildPartial() { com.google.cloud.automl.v1beta1.ListModelsRequest result = new com.google.cloud.automl.v1beta1.ListModelsRequest(this); result.parent_ = parent_; @@ -534,39 +519,32 @@ public com.google.cloud.automl.v1beta1.ListModelsRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ListModelsRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.ListModelsRequest)other); @@ -598,12 +576,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelsRequest other return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -976,13 +952,11 @@ public Builder setPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1004,12 +978,11 @@ public static com.google.cloud.automl.v1beta1.ListModelsRequest getDefaultInstan private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ListModelsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelsRequest(input, extensionRegistry); + return new ListModelsRequest(input, extensionRegistry); } }; @@ -1022,7 +995,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java index 8a64672f91bf..1ad8154b6965 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java @@ -34,9 +34,6 @@ private ListModelsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private ListModelsResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { model_ = new java.util.ArrayList (); @@ -63,13 +67,6 @@ private ListModelsResponse( nextPageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ListModelsResponse( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable @@ -199,7 +195,6 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -209,7 +204,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < model_.size(); i++) { @@ -221,7 +215,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -346,7 +339,6 @@ public static com.google.cloud.automl.v1beta1.ListModelsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -354,7 +346,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ListModelsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -382,7 +373,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable @@ -406,7 +396,6 @@ private void maybeForceBuilderInitialization() { getModelFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (modelBuilder_ == null) { @@ -420,18 +409,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelsResponse getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ListModelsResponse.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelsResponse build() { com.google.cloud.automl.v1beta1.ListModelsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -440,7 +426,6 @@ public com.google.cloud.automl.v1beta1.ListModelsResponse build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelsResponse buildPartial() { com.google.cloud.automl.v1beta1.ListModelsResponse result = new com.google.cloud.automl.v1beta1.ListModelsResponse(this); int from_bitField0_ = bitField0_; @@ -460,39 +445,32 @@ public com.google.cloud.automl.v1beta1.ListModelsResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ListModelsResponse) { return mergeFrom((com.google.cloud.automl.v1beta1.ListModelsResponse)other); @@ -539,12 +517,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListModelsResponse othe return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -969,13 +945,11 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -997,12 +971,11 @@ public static com.google.cloud.automl.v1beta1.ListModelsResponse getDefaultInsta private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ListModelsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListModelsResponse(input, extensionRegistry); + return new ListModelsResponse(input, extensionRegistry); } }; @@ -1015,7 +988,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ListModelsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java index 63e2e5a34542..60d942627b7d 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java @@ -36,9 +36,6 @@ private Model( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -50,6 +47,13 @@ private Model( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -142,13 +146,6 @@ private Model( modelMetadataCase_ = 15; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -166,7 +163,6 @@ private Model( return com.google.cloud.automl.v1beta1.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_fieldAccessorTable @@ -697,13 +693,11 @@ public int getDeploymentStateValue() { * .google.cloud.automl.v1beta1.Model.DeploymentState deployment_state = 8;
*/ public com.google.cloud.automl.v1beta1.Model.DeploymentState getDeploymentState() { - @SuppressWarnings("deprecation") com.google.cloud.automl.v1beta1.Model.DeploymentState result = com.google.cloud.automl.v1beta1.Model.DeploymentState.valueOf(deploymentState_); return result == null ? com.google.cloud.automl.v1beta1.Model.DeploymentState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -713,7 +707,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -746,7 +739,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -955,7 +947,6 @@ public static com.google.cloud.automl.v1beta1.Model parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -963,7 +954,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.Model prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -991,7 +981,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_fieldAccessorTable @@ -1014,7 +1003,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -1042,18 +1030,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.ModelOuterClass.internal_static_google_cloud_automl_v1beta1_Model_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.Model getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.Model.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.Model build() { com.google.cloud.automl.v1beta1.Model result = buildPartial(); if (!result.isInitialized()) { @@ -1062,7 +1047,6 @@ public com.google.cloud.automl.v1beta1.Model build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.Model buildPartial() { com.google.cloud.automl.v1beta1.Model result = new com.google.cloud.automl.v1beta1.Model(this); if (modelMetadataCase_ == 13) { @@ -1105,39 +1089,32 @@ public com.google.cloud.automl.v1beta1.Model buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.Model) { return mergeFrom((com.google.cloud.automl.v1beta1.Model)other); @@ -1192,12 +1169,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Model other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2409,7 +2384,6 @@ public Builder setDeploymentStateValue(int value) { *.google.cloud.automl.v1beta1.Model.DeploymentState deployment_state = 8;
*/ public com.google.cloud.automl.v1beta1.Model.DeploymentState getDeploymentState() { - @SuppressWarnings("deprecation") com.google.cloud.automl.v1beta1.Model.DeploymentState result = com.google.cloud.automl.v1beta1.Model.DeploymentState.valueOf(deploymentState_); return result == null ? com.google.cloud.automl.v1beta1.Model.DeploymentState.UNRECOGNIZED : result; } @@ -2442,13 +2416,11 @@ public Builder clearDeploymentState() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -2470,12 +2442,11 @@ public static com.google.cloud.automl.v1beta1.Model getDefaultInstance() { private static final com.google.protobuf.ParserPARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public Model parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Model(input, extensionRegistry); + return new Model(input, extensionRegistry); } }; @@ -2488,7 +2459,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.Model getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java index 5e250e126561..e46c8ef917f3 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java @@ -35,9 +35,6 @@ private ModelEvaluation( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -49,6 +46,13 @@ private ModelEvaluation( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -107,13 +111,6 @@ private ModelEvaluation( metricsCase_ = 9; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -131,7 +128,6 @@ private ModelEvaluation( return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable @@ -403,7 +399,6 @@ public int getEvaluatedExampleCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -413,7 +408,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -437,7 +431,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -615,7 +608,6 @@ public static com.google.cloud.automl.v1beta1.ModelEvaluation parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -623,7 +615,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.ModelEvaluation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -651,7 +642,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_fieldAccessorTable @@ -674,7 +664,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -694,18 +683,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ModelEvaluation getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.ModelEvaluation.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.ModelEvaluation build() { com.google.cloud.automl.v1beta1.ModelEvaluation result = buildPartial(); if (!result.isInitialized()) { @@ -714,7 +700,6 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ModelEvaluation buildPartial() { com.google.cloud.automl.v1beta1.ModelEvaluation result = new com.google.cloud.automl.v1beta1.ModelEvaluation(this); if (metricsCase_ == 8) { @@ -744,39 +729,32 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.ModelEvaluation) { return mergeFrom((com.google.cloud.automl.v1beta1.ModelEvaluation)other); @@ -820,12 +798,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ModelEvaluation other) return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1620,13 +1596,11 @@ public Builder clearEvaluatedExampleCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1648,12 +1622,11 @@ public static com.google.cloud.automl.v1beta1.ModelEvaluation getDefaultInstance private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ModelEvaluation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ModelEvaluation(input, extensionRegistry); + return new ModelEvaluation(input, extensionRegistry); } }; @@ -1666,7 +1639,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.ModelEvaluation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java index d36fe573fb79..f284ab5810e6 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java @@ -37,7 +37,7 @@ public static void registerAllExtensions( "o\"\350\002\n\017ModelEvaluation\022i\n!classification_" + "evaluation_metrics\030\010 \001(\0132<.google.cloud." + "automl.v1beta1.ClassificationEvaluationM" + - "etricsH\000\022c\n\036translation_evaluation_metri" + + "etricsH\000\022c\n\036translation_evaluation_metri", "cs\030\t \001(\01329.google.cloud.automl.v1beta1.T" + "ranslationEvaluationMetricsH\000\022\014\n\004name\030\001 " + "\001(\t\022\032\n\022annotation_spec_id\030\002 \001(\t\022/\n\013creat" + diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java index 177acd4b8df7..b9f77068a488 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java @@ -37,7 +37,7 @@ public static void registerAllExtensions( "tobuf/timestamp.proto\"\213\005\n\005Model\022l\n#image" + "_classification_model_metadata\030\r \001(\0132=.g" + "oogle.cloud.automl.v1beta1.ImageClassifi" + - "cationModelMetadataH\000\022j\n\"text_classifica" + + "cationModelMetadataH\000\022j\n\"text_classifica", "tion_model_metadata\030\016 \001(\0132<.google.cloud" + ".automl.v1beta1.TextClassificationModelM" + "etadataH\000\022[\n\032translation_model_metadata\030" + @@ -47,7 +47,7 @@ public static void registerAllExtensions( "\n\013create_time\030\007 \001(\0132\032.google.protobuf.Ti" + "mestamp\022/\n\013update_time\030\013 \001(\0132\032.google.pr" + "otobuf.Timestamp\022L\n\020deployment_state\030\010 \001" + - "(\01622.google.cloud.automl.v1beta1.Model.D" + + "(\01622.google.cloud.automl.v1beta1.Model.D", "eploymentState\"Q\n\017DeploymentState\022 \n\034DEP" + "LOYMENT_STATE_UNSPECIFIED\020\000\022\014\n\010DEPLOYED\020" + "\001\022\016\n\nUNDEPLOYED\020\002B\020\n\016model_metadataBf\n\037c" + diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java index 78f1c1a7f3db..061f4651d9e8 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java @@ -34,9 +34,6 @@ private OperationMetadata( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private OperationMetadata( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 18: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { partialFailures_ = new java.util.ArrayList (); @@ -102,13 +106,6 @@ private OperationMetadata( progressPercent_ = input.readInt32(); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,7 +126,6 @@ private OperationMetadata( return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_OperationMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_OperationMetadata_fieldAccessorTable @@ -362,7 +358,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -372,7 +367,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < partialFailures_.size(); i++) { @@ -393,7 +387,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -568,7 +561,6 @@ public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -576,7 +568,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -604,7 +595,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_OperationMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_OperationMetadata_fieldAccessorTable @@ -628,7 +618,6 @@ private void maybeForceBuilderInitialization() { getPartialFailuresFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); progressPercent_ = 0; @@ -656,18 +645,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.Operations.internal_static_google_cloud_automl_v1beta1_OperationMetadata_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.OperationMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.OperationMetadata.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.OperationMetadata build() { com.google.cloud.automl.v1beta1.OperationMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -676,7 +662,6 @@ public com.google.cloud.automl.v1beta1.OperationMetadata build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.OperationMetadata buildPartial() { com.google.cloud.automl.v1beta1.OperationMetadata result = new com.google.cloud.automl.v1beta1.OperationMetadata(this); int from_bitField0_ = bitField0_; @@ -714,39 +699,32 @@ public com.google.cloud.automl.v1beta1.OperationMetadata buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.OperationMetadata) { return mergeFrom((com.google.cloud.automl.v1beta1.OperationMetadata)other); @@ -807,12 +785,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.OperationMetadata other return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1728,13 +1704,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } return updateTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1756,12 +1730,11 @@ public static com.google.cloud.automl.v1beta1.OperationMetadata getDefaultInstan private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public OperationMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); + return new OperationMetadata(input, extensionRegistry); } }; @@ -1774,7 +1747,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java index d0b6c37e24cf..417dff62874f 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java @@ -42,7 +42,7 @@ public static void registerAllExtensions( "obuf/timestamp.proto\032\027google/rpc/status." + "proto\"\243\002\n\021OperationMetadata\022Y\n\024create_mo" + "del_details\030\n \001(\01329.google.cloud.automl." + - "v1beta1.CreateModelOperationMetadataH\000\022\030" + + "v1beta1.CreateModelOperationMetadataH\000\022\030", "\n\020progress_percent\030\r \001(\005\022,\n\020partial_fail" + "ures\030\002 \003(\0132\022.google.rpc.Status\022/\n\013create" + "_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022" + diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java index c0e95396bc41..00159a4ed9d0 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java @@ -32,9 +32,6 @@ private OutputConfig( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,6 +43,13 @@ private OutputConfig( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { com.google.cloud.automl.v1beta1.GcsDestination.Builder subBuilder = null; if (destinationCase_ == 1) { @@ -60,13 +64,6 @@ private OutputConfig( destinationCase_ = 1; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,7 +81,6 @@ private OutputConfig( return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_OutputConfig_fieldAccessorTable @@ -167,7 +163,6 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -177,7 +172,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { @@ -186,7 +180,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -317,7 +310,6 @@ public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -325,7 +317,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -353,7 +344,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_OutputConfig_fieldAccessorTable @@ -376,7 +366,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); destinationCase_ = 0; @@ -384,18 +373,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.Io.internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.OutputConfig getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.OutputConfig build() { com.google.cloud.automl.v1beta1.OutputConfig result = buildPartial(); if (!result.isInitialized()) { @@ -404,7 +390,6 @@ public com.google.cloud.automl.v1beta1.OutputConfig build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.OutputConfig buildPartial() { com.google.cloud.automl.v1beta1.OutputConfig result = new com.google.cloud.automl.v1beta1.OutputConfig(this); if (destinationCase_ == 1) { @@ -419,39 +404,32 @@ public com.google.cloud.automl.v1beta1.OutputConfig buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.OutputConfig) { return mergeFrom((com.google.cloud.automl.v1beta1.OutputConfig)other); @@ -477,12 +455,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.OutputConfig other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -687,13 +663,11 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination onChanged();; return gcsDestinationBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -715,12 +689,11 @@ public static com.google.cloud.automl.v1beta1.OutputConfig getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public OutputConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); + return new OutputConfig(input, extensionRegistry); } }; @@ -733,7 +706,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java index 50fab1a8b17c..6965183b92d7 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java @@ -33,9 +33,6 @@ private PredictRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private PredictRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -79,13 +83,6 @@ private PredictRequest( params__.getKey(), params__.getValue()); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,7 +101,6 @@ private PredictRequest( } @SuppressWarnings({"rawtypes"}) - @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -115,7 +111,6 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictRequest_fieldAccessorTable @@ -322,7 +317,6 @@ public java.lang.String getParamsOrThrow( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -332,7 +326,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -350,7 +343,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -494,7 +486,6 @@ public static com.google.cloud.automl.v1beta1.PredictRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -502,7 +493,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.PredictRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -552,7 +542,6 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictRequest_fieldAccessorTable @@ -575,7 +564,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -590,18 +578,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.PredictRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.PredictRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.PredictRequest build() { com.google.cloud.automl.v1beta1.PredictRequest result = buildPartial(); if (!result.isInitialized()) { @@ -610,7 +595,6 @@ public com.google.cloud.automl.v1beta1.PredictRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.PredictRequest buildPartial() { com.google.cloud.automl.v1beta1.PredictRequest result = new com.google.cloud.automl.v1beta1.PredictRequest(this); int from_bitField0_ = bitField0_; @@ -628,39 +612,32 @@ public com.google.cloud.automl.v1beta1.PredictRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.PredictRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.PredictRequest)other); @@ -686,12 +663,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.PredictRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1163,13 +1138,11 @@ public Builder putAllParams( .putAll(values); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1191,12 +1164,11 @@ public static com.google.cloud.automl.v1beta1.PredictRequest getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public PredictRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PredictRequest(input, extensionRegistry); + return new PredictRequest(input, extensionRegistry); } }; @@ -1209,7 +1181,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.PredictRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java index 5fee9ac9a6e3..63a2dcecc6b5 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java @@ -36,9 +36,6 @@ private PredictResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -50,6 +47,13 @@ private PredictResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { payload_ = new java.util.ArrayList (); @@ -72,13 +76,6 @@ private PredictResponse( metadata__.getKey(), metadata__.getValue()); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,7 +97,6 @@ private PredictResponse( } @SuppressWarnings({"rawtypes"}) - @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -111,7 +107,6 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictResponse_fieldAccessorTable @@ -267,7 +262,6 @@ public java.lang.String getMetadataOrThrow( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -277,7 +271,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < payload_.size(); i++) { @@ -292,7 +285,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -426,7 +418,6 @@ public static com.google.cloud.automl.v1beta1.PredictResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -434,7 +425,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.PredictResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -487,7 +477,6 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictResponse_fieldAccessorTable @@ -511,7 +500,6 @@ private void maybeForceBuilderInitialization() { getPayloadFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (payloadBuilder_ == null) { @@ -524,18 +512,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.PredictionServiceProto.internal_static_google_cloud_automl_v1beta1_PredictResponse_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.PredictResponse getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.PredictResponse.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.PredictResponse build() { com.google.cloud.automl.v1beta1.PredictResponse result = buildPartial(); if (!result.isInitialized()) { @@ -544,7 +529,6 @@ public com.google.cloud.automl.v1beta1.PredictResponse build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.PredictResponse buildPartial() { com.google.cloud.automl.v1beta1.PredictResponse result = new com.google.cloud.automl.v1beta1.PredictResponse(this); int from_bitField0_ = bitField0_; @@ -563,39 +547,32 @@ public com.google.cloud.automl.v1beta1.PredictResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.PredictResponse) { return mergeFrom((com.google.cloud.automl.v1beta1.PredictResponse)other); @@ -640,12 +617,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.PredictResponse other) return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1127,13 +1102,11 @@ public Builder putAllMetadata( .putAll(values); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1155,12 +1128,11 @@ public static com.google.cloud.automl.v1beta1.PredictResponse getDefaultInstance private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public PredictResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PredictResponse(input, extensionRegistry); + return new PredictResponse(input, extensionRegistry); } }; @@ -1173,7 +1145,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.PredictResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java index fbf07cb5fa8b..e23d1bee7f62 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java @@ -52,7 +52,7 @@ public static void registerAllExtensions( "\030\001 \001(\t\022<\n\007payload\030\002 \001(\0132+.google.cloud.a" + "utoml.v1beta1.ExamplePayload\022G\n\006params\030\003" + " \003(\01327.google.cloud.automl.v1beta1.Predi" + - "ctRequest.ParamsEntry\032-\n\013ParamsEntry\022\013\n\003" + + "ctRequest.ParamsEntry\032-\n\013ParamsEntry\022\013\n\003", "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\321\001\n\017Predict" + "Response\022?\n\007payload\030\001 \003(\0132..google.cloud" + ".automl.v1beta1.AnnotationPayload\022L\n\010met" + @@ -62,7 +62,7 @@ public static void registerAllExtensions( "2\276\001\n\021PredictionService\022\250\001\n\007Predict\022+.goo" + "gle.cloud.automl.v1beta1.PredictRequest\032" + ",.google.cloud.automl.v1beta1.PredictRes" + - "ponse\"B\202\323\344\223\002<\"7/v1beta1/{name=projects/*" + + "ponse\"B\202\323\344\223\002<\"7/v1beta1/{name=projects/*", "/locations/*/models/*}:predict:\001*B~\n\037com" + ".google.cloud.automl.v1beta1B\026Prediction" + "ServiceProtoP\001ZAgoogle.golang.org/genpro" + diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java index 8a02fd34a659..560a0557d7aa 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationDatasetMetadata.java @@ -33,9 +33,6 @@ private TextClassificationDatasetMetadata( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private TextClassificationDatasetMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - classificationType_ = rawValue; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private TextClassificationDatasetMetadata( } break; } + case 8: { + int rawValue = input.readEnum(); + + classificationType_ = rawValue; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private TextClassificationDatasetMetadata( return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable @@ -107,13 +103,11 @@ public int getClassificationTypeValue() { * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1;
*/ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { - @SuppressWarnings("deprecation") com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -123,7 +117,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (classificationType_ != com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.CLASSIFICATION_TYPE_UNSPECIFIED.getNumber()) { @@ -132,7 +125,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -247,7 +239,6 @@ public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -255,7 +246,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -283,7 +273,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_fieldAccessorTable @@ -306,7 +295,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); classificationType_ = 0; @@ -314,18 +302,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationDatasetMetadata_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata build() { com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -334,7 +319,6 @@ public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata build() return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata buildPartial() { com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata result = new com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata(this); result.classificationType_ = classificationType_; @@ -342,39 +326,32 @@ public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata buildPa return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) { return mergeFrom((com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata)other); @@ -394,12 +371,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextClassificationDatas return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -452,7 +427,6 @@ public Builder setClassificationTypeValue(int value) { *.google.cloud.automl.v1beta1.ClassificationType classification_type = 1;
*/ public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType getClassificationType() { - @SuppressWarnings("deprecation") com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType result = com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.valueOf(classificationType_); return result == null ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationType.UNRECOGNIZED : result; } @@ -487,13 +461,11 @@ public Builder clearClassificationType() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -515,12 +487,11 @@ public static com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata private static final com.google.protobuf.ParserPARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public TextClassificationDatasetMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TextClassificationDatasetMetadata(input, extensionRegistry); + return new TextClassificationDatasetMetadata(input, extensionRegistry); } }; @@ -533,7 +504,6 @@ public com.google.protobuf.Parser getParserFo return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java index d9518a6f578b..1db52c9d9fab 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextClassificationModelMetadata.java @@ -32,9 +32,6 @@ private TextClassificationModelMetadata( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -69,7 +66,6 @@ private TextClassificationModelMetadata( return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable @@ -78,7 +74,6 @@ private TextClassificationModelMetadata( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -88,13 +83,11 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -202,7 +195,6 @@ public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata pa .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -210,7 +202,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextClassificationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -238,7 +229,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable @@ -261,24 +251,20 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.TextProto.internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata build() { com.google.cloud.automl.v1beta1.TextClassificationModelMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -287,46 +273,38 @@ public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata buildPartial() { com.google.cloud.automl.v1beta1.TextClassificationModelMetadata result = new com.google.cloud.automl.v1beta1.TextClassificationModelMetadata(this); onBuilt(); return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) { return mergeFrom((com.google.cloud.automl.v1beta1.TextClassificationModelMetadata)other); @@ -343,12 +321,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextClassificationModel return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -366,13 +342,11 @@ public Builder mergeFrom( } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -394,12 +368,11 @@ public static com.google.cloud.automl.v1beta1.TextClassificationModelMetadata ge private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public TextClassificationModelMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TextClassificationModelMetadata(input, extensionRegistry); + return new TextClassificationModelMetadata(input, extensionRegistry); } }; @@ -412,7 +385,6 @@ public com.google.protobuf.Parser getParserForT return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java index 8c67757d52a9..d1f3cccb524c 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java @@ -42,7 +42,7 @@ public static void registerAllExtensions( "beta1.ClassificationType\"!\n\037TextClassifi" + "cationModelMetadataBq\n\037com.google.cloud." + "automl.v1beta1B\tTextProtoP\001ZAgoogle.gola" + - "ng.org/genproto/googleapis/cloud/automl/" + + "ng.org/genproto/googleapis/cloud/automl/", "v1beta1;automlb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java index 4da23174dcab..5caddcfdf21e 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java @@ -35,9 +35,6 @@ private TextSnippet( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -49,6 +46,13 @@ private TextSnippet( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -67,13 +71,6 @@ private TextSnippet( contentUri_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,7 +88,6 @@ private TextSnippet( return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable @@ -234,7 +230,6 @@ public java.lang.String getContentUri() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -244,7 +239,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getContentBytes().isEmpty()) { @@ -259,7 +253,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -388,7 +381,6 @@ public static com.google.cloud.automl.v1beta1.TextSnippet parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -396,7 +388,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextSnippet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -424,7 +415,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable @@ -447,7 +437,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); content_ = ""; @@ -459,18 +448,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.DataItems.internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TextSnippet getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.TextSnippet build() { com.google.cloud.automl.v1beta1.TextSnippet result = buildPartial(); if (!result.isInitialized()) { @@ -479,7 +465,6 @@ public com.google.cloud.automl.v1beta1.TextSnippet build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TextSnippet buildPartial() { com.google.cloud.automl.v1beta1.TextSnippet result = new com.google.cloud.automl.v1beta1.TextSnippet(this); result.content_ = content_; @@ -489,39 +474,32 @@ public com.google.cloud.automl.v1beta1.TextSnippet buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.TextSnippet) { return mergeFrom((com.google.cloud.automl.v1beta1.TextSnippet)other); @@ -550,12 +528,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextSnippet other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -860,13 +836,11 @@ public Builder setContentUriBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -888,12 +862,11 @@ public static com.google.cloud.automl.v1beta1.TextSnippet getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public TextSnippet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TextSnippet(input, extensionRegistry); + return new TextSnippet(input, extensionRegistry); } }; @@ -906,7 +879,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TextSnippet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java index 903d591b9638..9a48bc566486 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationAnnotation.java @@ -32,9 +32,6 @@ private TranslationAnnotation( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,6 +43,13 @@ private TranslationAnnotation( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { com.google.cloud.automl.v1beta1.TextSnippet.Builder subBuilder = null; if (translatedContent_ != null) { @@ -59,13 +63,6 @@ private TranslationAnnotation( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,7 +80,6 @@ private TranslationAnnotation( return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_fieldAccessorTable @@ -125,7 +121,6 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTranslatedContent } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -135,7 +130,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (translatedContent_ != null) { @@ -144,7 +138,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -265,7 +258,6 @@ public static com.google.cloud.automl.v1beta1.TranslationAnnotation parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -273,7 +265,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.TranslationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -301,7 +292,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_fieldAccessorTable @@ -324,7 +314,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (translatedContentBuilder_ == null) { @@ -336,18 +325,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationAnnotation_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationAnnotation getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TranslationAnnotation.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationAnnotation build() { com.google.cloud.automl.v1beta1.TranslationAnnotation result = buildPartial(); if (!result.isInitialized()) { @@ -356,7 +342,6 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationAnnotation buildPartial() { com.google.cloud.automl.v1beta1.TranslationAnnotation result = new com.google.cloud.automl.v1beta1.TranslationAnnotation(this); if (translatedContentBuilder_ == null) { @@ -368,39 +353,32 @@ public com.google.cloud.automl.v1beta1.TranslationAnnotation buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.TranslationAnnotation) { return mergeFrom((com.google.cloud.automl.v1beta1.TranslationAnnotation)other); @@ -420,12 +398,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TranslationAnnotation o return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -596,13 +572,11 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTranslatedContent } return translatedContentBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -624,12 +598,11 @@ public static com.google.cloud.automl.v1beta1.TranslationAnnotation getDefaultIn private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public TranslationAnnotation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationAnnotation(input, extensionRegistry); + return new TranslationAnnotation(input, extensionRegistry); } }; @@ -642,7 +615,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java index 85e3fe9c19f7..bde5814bb0de 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationDatasetMetadata.java @@ -34,9 +34,6 @@ private TranslationDatasetMetadata( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private TranslationDatasetMetadata( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -60,13 +64,6 @@ private TranslationDatasetMetadata( targetLanguageCode_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,7 +81,6 @@ private TranslationDatasetMetadata( return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable @@ -177,7 +173,6 @@ public java.lang.String getTargetLanguageCode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -187,7 +182,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSourceLanguageCodeBytes().isEmpty()) { @@ -199,7 +193,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -321,7 +314,6 @@ public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata parseFr .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -329,7 +321,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.TranslationDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -357,7 +348,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_fieldAccessorTable @@ -380,7 +370,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); sourceLanguageCode_ = ""; @@ -390,18 +379,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationDatasetMetadata_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TranslationDatasetMetadata.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata build() { com.google.cloud.automl.v1beta1.TranslationDatasetMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -410,7 +396,6 @@ public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata buildPartial() { com.google.cloud.automl.v1beta1.TranslationDatasetMetadata result = new com.google.cloud.automl.v1beta1.TranslationDatasetMetadata(this); result.sourceLanguageCode_ = sourceLanguageCode_; @@ -419,39 +404,32 @@ public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata buildPartial() return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.TranslationDatasetMetadata) { return mergeFrom((com.google.cloud.automl.v1beta1.TranslationDatasetMetadata)other); @@ -476,12 +454,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TranslationDatasetMetad return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -677,13 +653,11 @@ public Builder setTargetLanguageCodeBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -705,12 +679,11 @@ public static com.google.cloud.automl.v1beta1.TranslationDatasetMetadata getDefa private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public TranslationDatasetMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationDatasetMetadata(input, extensionRegistry); + return new TranslationDatasetMetadata(input, extensionRegistry); } }; @@ -723,7 +696,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java index 3ae2649af1a0..263ad9d0216d 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationEvaluationMetrics.java @@ -34,9 +34,6 @@ private TranslationEvaluationMetrics( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private TranslationEvaluationMetrics( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 9: { bleuScore_ = input.readDouble(); @@ -58,13 +62,6 @@ private TranslationEvaluationMetrics( baseBleuScore_ = input.readDouble(); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -82,7 +79,6 @@ private TranslationEvaluationMetrics( return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable @@ -117,7 +113,6 @@ public double getBaseBleuScore() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -127,7 +122,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (bleuScore_ != 0D) { @@ -139,7 +133,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -269,7 +262,6 @@ public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics parse .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -277,7 +269,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -305,7 +296,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_fieldAccessorTable @@ -328,7 +318,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); bleuScore_ = 0D; @@ -338,18 +327,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationEvaluationMetrics_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics build() { com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics result = buildPartial(); if (!result.isInitialized()) { @@ -358,7 +344,6 @@ public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics buildPartial() { com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics result = new com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics(this); result.bleuScore_ = bleuScore_; @@ -367,39 +352,32 @@ public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics buildPartial return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) { return mergeFrom((com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics)other); @@ -422,12 +400,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TranslationEvaluationMe return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -521,13 +497,11 @@ public Builder clearBaseBleuScore() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -549,12 +523,11 @@ public static com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getDe private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public TranslationEvaluationMetrics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationEvaluationMetrics(input, extensionRegistry); + return new TranslationEvaluationMetrics(input, extensionRegistry); } }; @@ -567,7 +540,6 @@ public com.google.protobuf.Parser getParserForType return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java index a400fe0fb88b..db2334cc1372 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationModelMetadata.java @@ -35,9 +35,6 @@ private TranslationModelMetadata( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -49,6 +46,13 @@ private TranslationModelMetadata( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -67,13 +71,6 @@ private TranslationModelMetadata( targetLanguageCode_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,7 +88,6 @@ private TranslationModelMetadata( return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable @@ -236,7 +232,6 @@ public java.lang.String getTargetLanguageCode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -246,7 +241,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getBaseModelBytes().isEmpty()) { @@ -261,7 +255,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -390,7 +383,6 @@ public static com.google.cloud.automl.v1beta1.TranslationModelMetadata parseFrom .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -398,7 +390,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.TranslationModelMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -426,7 +417,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_fieldAccessorTable @@ -449,7 +439,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); baseModel_ = ""; @@ -461,18 +450,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.TranslationProto.internal_static_google_cloud_automl_v1beta1_TranslationModelMetadata_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationModelMetadata getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationModelMetadata build() { com.google.cloud.automl.v1beta1.TranslationModelMetadata result = buildPartial(); if (!result.isInitialized()) { @@ -481,7 +467,6 @@ public com.google.cloud.automl.v1beta1.TranslationModelMetadata build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationModelMetadata buildPartial() { com.google.cloud.automl.v1beta1.TranslationModelMetadata result = new com.google.cloud.automl.v1beta1.TranslationModelMetadata(this); result.baseModel_ = baseModel_; @@ -491,39 +476,32 @@ public com.google.cloud.automl.v1beta1.TranslationModelMetadata buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.TranslationModelMetadata) { return mergeFrom((com.google.cloud.automl.v1beta1.TranslationModelMetadata)other); @@ -552,12 +530,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.TranslationModelMetadat return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -867,13 +843,11 @@ public Builder setTargetLanguageCodeBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -895,12 +869,11 @@ public static com.google.cloud.automl.v1beta1.TranslationModelMetadata getDefaul private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public TranslationModelMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TranslationModelMetadata(input, extensionRegistry); + return new TranslationModelMetadata(input, extensionRegistry); } }; @@ -913,7 +886,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.TranslationModelMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java index f35f92b6a3a0..a1cdc8f50e72 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TranslationProto.java @@ -52,7 +52,7 @@ public static void registerAllExtensions( "(\t\"K\n\034TranslationEvaluationMetrics\022\022\n\nbl" + "eu_score\030\001 \001(\001\022\027\n\017base_bleu_score\030\002 \001(\001\"" + "j\n\030TranslationModelMetadata\022\022\n\nbase_mode" + - "l\030\001 \001(\t\022\034\n\024source_language_code\030\002 \001(\t\022\034\n" + + "l\030\001 \001(\t\022\034\n\024source_language_code\030\002 \001(\t\022\034\n", "\024target_language_code\030\003 \001(\t\"]\n\025Translati" + "onAnnotation\022D\n\022translated_content\030\001 \001(\013" + "2(.google.cloud.automl.v1beta1.TextSnipp" + diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java index 82f098bdcad0..9ed7ca827737 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java @@ -33,9 +33,6 @@ private UndeployModelRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private UndeployModelRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private UndeployModelRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private UndeployModelRequest( return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_fieldAccessorTable @@ -128,7 +124,6 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,7 +133,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -147,7 +141,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -262,7 +255,6 @@ public static com.google.cloud.automl.v1beta1.UndeployModelRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -270,7 +262,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.automl.v1beta1.UndeployModelRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -298,7 +289,6 @@ public static final class Builder extends return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_fieldAccessorTable @@ -321,7 +311,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -329,18 +318,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1beta1.AutoMlProto.internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor; } - @java.lang.Override public com.google.cloud.automl.v1beta1.UndeployModelRequest getDefaultInstanceForType() { return com.google.cloud.automl.v1beta1.UndeployModelRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.automl.v1beta1.UndeployModelRequest build() { com.google.cloud.automl.v1beta1.UndeployModelRequest result = buildPartial(); if (!result.isInitialized()) { @@ -349,7 +335,6 @@ public com.google.cloud.automl.v1beta1.UndeployModelRequest build() { return result; } - @java.lang.Override public com.google.cloud.automl.v1beta1.UndeployModelRequest buildPartial() { com.google.cloud.automl.v1beta1.UndeployModelRequest result = new com.google.cloud.automl.v1beta1.UndeployModelRequest(this); result.name_ = name_; @@ -357,39 +342,32 @@ public com.google.cloud.automl.v1beta1.UndeployModelRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.automl.v1beta1.UndeployModelRequest) { return mergeFrom((com.google.cloud.automl.v1beta1.UndeployModelRequest)other); @@ -410,12 +388,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.UndeployModelRequest ot return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -522,13 +498,11 @@ public Builder setNameBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -550,12 +524,11 @@ public static com.google.cloud.automl.v1beta1.UndeployModelRequest getDefaultIns private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public UndeployModelRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UndeployModelRequest(input, extensionRegistry); + return new UndeployModelRequest(input, extensionRegistry); } }; @@ -568,7 +541,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.automl.v1beta1.UndeployModelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java index 60b46c322f75..ea85946ffdc4 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsRequest.java @@ -38,9 +38,6 @@ private CheckValidCredsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -52,12 +49,6 @@ private CheckValidCredsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -65,6 +56,12 @@ private CheckValidCredsRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -82,7 +79,6 @@ private CheckValidCredsRequest( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable @@ -135,7 +131,6 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -145,7 +140,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -154,7 +148,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -269,7 +262,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest p .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -277,7 +269,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -310,7 +301,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_fieldAccessorTable @@ -333,7 +323,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -341,18 +330,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsRequest_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest build() { com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -361,7 +347,6 @@ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest build() return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest buildPartial() { com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest result = new com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest(this); result.name_ = name_; @@ -369,39 +354,32 @@ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest buildPar return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest)other); @@ -422,12 +400,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.CheckValidCre return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -539,13 +515,11 @@ public Builder setNameBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -567,12 +541,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest g private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public CheckValidCredsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CheckValidCredsRequest(input, extensionRegistry); + return new CheckValidCredsRequest(input, extensionRegistry); } }; @@ -585,7 +558,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java index d2813d55cbe7..57465fde5e0f 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CheckValidCredsResponse.java @@ -33,9 +33,6 @@ private CheckValidCredsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,11 +44,6 @@ private CheckValidCredsResponse( case 0: done = true; break; - case 8: { - - hasValidCreds_ = input.readBool(); - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -59,6 +51,11 @@ private CheckValidCredsResponse( } break; } + case 8: { + + hasValidCreds_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -76,7 +73,6 @@ private CheckValidCredsResponse( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable @@ -98,7 +94,6 @@ public boolean getHasValidCreds() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -108,7 +103,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasValidCreds_ != false) { @@ -117,7 +111,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -234,7 +227,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -242,7 +234,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -270,7 +261,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_fieldAccessorTable @@ -293,7 +283,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); hasValidCreds_ = false; @@ -301,18 +290,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse build() { com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -321,7 +307,6 @@ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse build() return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse buildPartial() { com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse result = new com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse(this); result.hasValidCreds_ = hasValidCreds_; @@ -329,39 +314,32 @@ public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse buildPa return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse)other); @@ -381,12 +359,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.CheckValidCre return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -442,13 +418,11 @@ public Builder clearHasValidCreds() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -470,12 +444,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public CheckValidCredsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CheckValidCredsResponse(input, extensionRegistry); + return new CheckValidCredsResponse(input, extensionRegistry); } }; @@ -488,7 +461,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java index 8c9293a2e893..924ad6700d08 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/CreateTransferConfigRequest.java @@ -39,9 +39,6 @@ private CreateTransferConfigRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -53,6 +50,13 @@ private CreateTransferConfigRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -78,13 +82,6 @@ private CreateTransferConfigRequest( authorizationCode_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,7 +99,6 @@ private CreateTransferConfigRequest( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable @@ -262,7 +258,6 @@ public java.lang.String getAuthorizationCode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -272,7 +267,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { @@ -287,7 +281,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -422,7 +415,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequ .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -430,7 +422,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -463,7 +454,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_fieldAccessorTable @@ -486,7 +476,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); parent_ = ""; @@ -502,18 +491,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_CreateTransferConfigRequest_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest build() { com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest result = buildPartial(); if (!result.isInitialized()) { @@ -522,7 +508,6 @@ public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest bui return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest buildPartial() { com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest result = new com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest(this); result.parent_ = parent_; @@ -536,39 +521,32 @@ public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest bui return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest)other); @@ -596,12 +574,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.CreateTransfe return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1035,13 +1011,11 @@ public Builder setAuthorizationCodeBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1063,12 +1037,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public CreateTransferConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateTransferConfigRequest(input, extensionRegistry); + return new CreateTransferConfigRequest(input, extensionRegistry); } }; @@ -1081,7 +1054,6 @@ public com.google.protobuf.Parser getParserForType( return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.CreateTransferConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java index 49a16785c16b..6c6fb120e785 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSource.java @@ -50,9 +50,6 @@ private DataSource( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -64,6 +61,13 @@ private DataSource( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -180,13 +184,6 @@ private DataSource( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -210,7 +207,6 @@ private DataSource( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable @@ -790,7 +786,6 @@ public int getTransferTypeValue() { * .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7;
*/ public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType() { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.TransferType result = com.google.cloud.bigquery.datatransfer.v1.TransferType.valueOf(transferType_); return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferType.UNRECOGNIZED : result; } @@ -1005,7 +1000,6 @@ public int getAuthorizationTypeValue() { *.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14;
*/ public com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType getAuthorizationType() { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType result = com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.valueOf(authorizationType_); return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.UNRECOGNIZED : result; } @@ -1036,7 +1030,6 @@ public int getDataRefreshTypeValue() { *.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15;
*/ public com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType getDataRefreshType() { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType result = com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.valueOf(dataRefreshType_); return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.UNRECOGNIZED : result; } @@ -1103,7 +1096,6 @@ public com.google.protobuf.DurationOrBuilder getMinimumScheduleIntervalOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -1113,7 +1105,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -1173,7 +1164,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -1431,7 +1421,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.DataSource parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -1439,7 +1428,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.DataSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -1468,7 +1456,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable @@ -1492,7 +1479,6 @@ private void maybeForceBuilderInitialization() { getParametersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -1542,18 +1528,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSource getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.DataSource.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSource build() { com.google.cloud.bigquery.datatransfer.v1.DataSource result = buildPartial(); if (!result.isInitialized()) { @@ -1562,7 +1545,6 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource build() { return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSource buildPartial() { com.google.cloud.bigquery.datatransfer.v1.DataSource result = new com.google.cloud.bigquery.datatransfer.v1.DataSource(this); int from_bitField0_ = bitField0_; @@ -1606,39 +1588,32 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSource buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.DataSource) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DataSource)other); @@ -1746,12 +1721,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DataSource ot return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2409,7 +2382,6 @@ public Builder setTransferTypeValue(int value) { *.google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7;
*/ public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType() { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.TransferType result = com.google.cloud.bigquery.datatransfer.v1.TransferType.valueOf(transferType_); return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferType.UNRECOGNIZED : result; } @@ -3110,7 +3082,6 @@ public Builder setAuthorizationTypeValue(int value) { *.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType authorization_type = 14;
*/ public com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType getAuthorizationType() { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType result = com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.valueOf(authorizationType_); return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType.UNRECOGNIZED : result; } @@ -3184,7 +3155,6 @@ public Builder setDataRefreshTypeValue(int value) { *.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType data_refresh_type = 15;
*/ public com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType getDataRefreshType() { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType result = com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.valueOf(dataRefreshType_); return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType.UNRECOGNIZED : result; } @@ -3458,13 +3428,11 @@ public com.google.protobuf.DurationOrBuilder getMinimumScheduleIntervalOrBuilder } return minimumScheduleIntervalBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -3486,12 +3454,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.DataSource getDefaultIns private static final com.google.protobuf.ParserPARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public DataSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DataSource(input, extensionRegistry); + return new DataSource(input, extensionRegistry); } }; @@ -3504,7 +3471,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java index e99dd1a9ab4f..588b6f0f85b4 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceParameter.java @@ -50,9 +50,6 @@ private DataSourceParameter( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -64,6 +61,13 @@ private DataSourceParameter( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -170,13 +174,6 @@ private DataSourceParameter( recurse_ = input.readBool(); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -200,7 +197,6 @@ private DataSourceParameter( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable @@ -560,7 +556,6 @@ public int getTypeValue() { * .google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4;
*/ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type getType() { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type result = com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.valueOf(type_); return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.UNRECOGNIZED : result; } @@ -913,7 +908,6 @@ public boolean getRecurse() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -923,7 +917,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParamIdBytes().isEmpty()) { @@ -974,7 +967,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -1217,7 +1209,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter pars .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -1225,7 +1216,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -1258,7 +1248,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_fieldAccessorTable @@ -1282,7 +1271,6 @@ private void maybeForceBuilderInitialization() { getFieldsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); paramId_ = ""; @@ -1330,18 +1318,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DataSourceParameter_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter build() { com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter result = buildPartial(); if (!result.isInitialized()) { @@ -1350,7 +1335,6 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter build() { return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter buildPartial() { com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter result = new com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter(this); int from_bitField0_ = bitField0_; @@ -1395,39 +1379,32 @@ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter buildPartia return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter)other); @@ -1525,12 +1502,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DataSourcePar return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1848,7 +1823,6 @@ public Builder setTypeValue(int value) { *.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type type = 4;
*/ public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type getType() { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type result = com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.valueOf(type_); return result == null ? com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type.UNRECOGNIZED : result; } @@ -3056,13 +3030,11 @@ public Builder clearRecurse() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -3084,12 +3056,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getD private static final com.google.protobuf.ParserPARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public DataSourceParameter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DataSourceParameter(input, extensionRegistry); + return new DataSourceParameter(input, extensionRegistry); } }; @@ -3102,7 +3073,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java index 1b546165dc7e..44ccbc538f84 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferProto.java @@ -137,7 +137,7 @@ public static void registerAllExtensions( "to\032 google/protobuf/field_mask.proto\032\037go" + "ogle/protobuf/timestamp.proto\032\036google/pr" + "otobuf/wrappers.proto\"\361\004\n\023DataSourcePara" + - "meter\022\020\n\010param_id\030\001 \001(\t\022\024\n\014display_name\030" + + "meter\022\020\n\010param_id\030\001 \001(\t\022\024\n\014display_name\030", "\002 \001(\t\022\023\n\013description\030\003 \001(\t\022M\n\004type\030\004 \001(\016" + "2?.google.cloud.bigquery.datatransfer.v1" + ".DataSourceParameter.Type\022\020\n\010required\030\005 " + @@ -147,7 +147,7 @@ public static void registerAllExtensions( "\022/\n\tmax_value\030\n \001(\0132\034.google.protobuf.Do" + "ubleValue\022J\n\006fields\030\013 \003(\0132:.google.cloud" + ".bigquery.datatransfer.v1.DataSourcePara" + - "meter\022\036\n\026validation_description\030\014 \001(\t\022\033\n" + + "meter\022\036\n\026validation_description\030\014 \001(\t\022\033\n", "\023validation_help_url\030\r \001(\t\022\021\n\timmutable\030" + "\016 \001(\010\022\017\n\007recurse\030\017 \001(\010\"i\n\004Type\022\024\n\020TYPE_U" + "NSPECIFIED\020\000\022\n\n\006STRING\020\001\022\013\n\007INTEGER\020\002\022\n\n" + @@ -157,7 +157,7 @@ public static void registerAllExtensions( " \001(\t\022\023\n\013description\030\004 \001(\t\022\021\n\tclient_id\030\005" + " \001(\t\022\016\n\006scopes\030\006 \003(\t\022J\n\rtransfer_type\030\007 " + "\001(\01623.google.cloud.bigquery.datatransfer" + - ".v1.TransferType\022#\n\033supports_multiple_tr" + + ".v1.TransferType\022#\n\033supports_multiple_tr", "ansfers\030\010 \001(\010\022\037\n\027update_deadline_seconds" + "\030\t \001(\005\022\030\n\020default_schedule\030\n \001(\t\022 \n\030supp" + "orts_custom_schedule\030\013 \001(\010\022N\n\nparameters" + @@ -167,7 +167,7 @@ public static void registerAllExtensions( "e.cloud.bigquery.datatransfer.v1.DataSou" + "rce.AuthorizationType\022\\\n\021data_refresh_ty" + "pe\030\017 \001(\0162A.google.cloud.bigquery.datatra" + - "nsfer.v1.DataSource.DataRefreshType\022(\n d" + + "nsfer.v1.DataSource.DataRefreshType\022(\n d", "efault_data_refresh_window_days\030\020 \001(\005\022\034\n" + "\024manual_runs_disabled\030\021 \001(\010\022<\n\031minimum_s" + "chedule_interval\030\022 \001(\0132\031.google.protobuf" + @@ -177,7 +177,7 @@ public static void registerAllExtensions( "CODE\020\002\"c\n\017DataRefreshType\022!\n\035DATA_REFRES" + "H_TYPE_UNSPECIFIED\020\000\022\022\n\016SLIDING_WINDOW\020\001" + "\022\031\n\025CUSTOM_SLIDING_WINDOW\020\002\"$\n\024GetDataSo" + - "urceRequest\022\014\n\004name\030\001 \001(\t\"O\n\026ListDataSou" + + "urceRequest\022\014\n\004name\030\001 \001(\t\"O\n\026ListDataSou", "rcesRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_toke" + "n\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\"{\n\027ListDataSo" + "urcesResponse\022G\n\014data_sources\030\001 \003(\01321.go" + @@ -187,7 +187,7 @@ public static void registerAllExtensions( "N\n\017transfer_config\030\002 \001(\01325.google.cloud." + "bigquery.datatransfer.v1.TransferConfig\022" + "\032\n\022authorization_code\030\003 \001(\t\"\272\001\n\033UpdateTr" + - "ansferConfigRequest\022N\n\017transfer_config\030\001" + + "ansferConfigRequest\022N\n\017transfer_config\030\001", " \001(\01325.google.cloud.bigquery.datatransfe" + "r.v1.TransferConfig\022\032\n\022authorization_cod" + "e\030\003 \001(\t\022/\n\013update_mask\030\004 \001(\0132\032.google.pr" + @@ -197,7 +197,7 @@ public static void registerAllExtensions( "nRequest\022\014\n\004name\030\001 \001(\t\"(\n\030DeleteTransfer" + "RunRequest\022\014\n\004name\030\001 \001(\t\"l\n\032ListTransfer" + "ConfigsRequest\022\016\n\006parent\030\001 \001(\t\022\027\n\017data_s" + - "ource_ids\030\002 \003(\t\022\022\n\npage_token\030\003 \001(\t\022\021\n\tp" + + "ource_ids\030\002 \003(\t\022\022\n\npage_token\030\003 \001(\t\022\021\n\tp", "age_size\030\004 \001(\005\"\207\001\n\033ListTransferConfigsRe" + "sponse\022O\n\020transfer_configs\030\001 \003(\01325.googl" + "e.cloud.bigquery.datatransfer.v1.Transfe" + @@ -207,7 +207,7 @@ public static void registerAllExtensions( "atransfer.v1.TransferState\022\022\n\npage_token" + "\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022^\n\013run_attempt" + "\030\005 \001(\0162I.google.cloud.bigquery.datatrans" + - "fer.v1.ListTransferRunsRequest.RunAttemp" + + "fer.v1.ListTransferRunsRequest.RunAttemp", "t\"5\n\nRunAttempt\022\033\n\027RUN_ATTEMPT_UNSPECIFI" + "ED\020\000\022\n\n\006LATEST\020\001\"~\n\030ListTransferRunsResp" + "onse\022I\n\rtransfer_runs\030\001 \003(\01322.google.clo" + @@ -217,7 +217,7 @@ public static void registerAllExtensions( "en\030\004 \001(\t\022\021\n\tpage_size\030\005 \001(\005\022]\n\rmessage_t" + "ypes\030\006 \003(\0162F.google.cloud.bigquery.datat" + "ransfer.v1.TransferMessage.MessageSeveri" + - "ty\"\206\001\n\030ListTransferLogsResponse\022Q\n\021trans" + + "ty\"\206\001\n\030ListTransferLogsResponse\022Q\n\021trans", "fer_messages\030\001 \003(\01326.google.cloud.bigque" + "ry.datatransfer.v1.TransferMessage\022\027\n\017ne" + "xt_page_token\030\002 \001(\t\"&\n\026CheckValidCredsRe" + @@ -227,7 +227,7 @@ public static void registerAllExtensions( ".\n\nstart_time\030\002 \001(\0132\032.google.protobuf.Ti" + "mestamp\022,\n\010end_time\030\003 \001(\0132\032.google.proto" + "buf.Timestamp\"`\n\034ScheduleTransferRunsRes" + - "ponse\022@\n\004runs\030\001 \003(\01322.google.cloud.bigqu" + + "ponse\022@\n\004runs\030\001 \003(\01322.google.cloud.bigqu", "ery.datatransfer.v1.TransferRun2\206\033\n\023Data" + "TransferService\022\337\001\n\rGetDataSource\022;.goog" + "le.cloud.bigquery.datatransfer.v1.GetDat" + @@ -237,7 +237,7 @@ public static void registerAllExtensions( "*}Z%\022#/v1/{name=projects/*/dataSources/*" + "}\022\360\001\n\017ListDataSources\022=.google.cloud.big" + "query.datatransfer.v1.ListDataSourcesReq" + - "uest\032>.google.cloud.bigquery.datatransfe" + + "uest\032>.google.cloud.bigquery.datatransfe", "r.v1.ListDataSourcesResponse\"^\202\323\344\223\002X\022//v" + "1/{parent=projects/*/locations/*}/dataSo" + "urcesZ%\022#/v1/{parent=projects/*}/dataSou" + @@ -247,7 +247,7 @@ public static void registerAllExtensions( "y.datatransfer.v1.TransferConfig\"\211\001\202\323\344\223\002" + "\202\001\"3/v1/{parent=projects/*/locations/*}/" + "transferConfigs:\017transfer_configZ:\"\'/v1/" + - "{parent=projects/*}/transferConfigs:\017tra" + + "{parent=projects/*}/transferConfigs:\017tra", "nsfer_config\022\275\002\n\024UpdateTransferConfig\022B." + "google.cloud.bigquery.datatransfer.v1.Up" + "dateTransferConfigRequest\0325.google.cloud" + @@ -257,7 +257,7 @@ public static void registerAllExtensions( "\017transfer_configZJ27/v1/{transfer_config" + ".name=projects/*/transferConfigs/*}:\017tra" + "nsfer_config\022\332\001\n\024DeleteTransferConfig\022B." + - "google.cloud.bigquery.datatransfer.v1.De" + + "google.cloud.bigquery.datatransfer.v1.De", "leteTransferConfigRequest\032\026.google.proto" + "buf.Empty\"f\202\323\344\223\002`*3/v1/{name=projects/*/" + "locations/*/transferConfigs/*}Z)*\'/v1/{n" + @@ -267,7 +267,7 @@ public static void registerAllExtensions( "\0325.google.cloud.bigquery.datatransfer.v1" + ".TransferConfig\"f\202\323\344\223\002`\0223/v1/{name=proje" + "cts/*/locations/*/transferConfigs/*}Z)\022\'" + - "/v1/{name=projects/*/transferConfigs/*}\022" + + "/v1/{name=projects/*/transferConfigs/*}\022", "\204\002\n\023ListTransferConfigs\022A.google.cloud.b" + "igquery.datatransfer.v1.ListTransferConf" + "igsRequest\032B.google.cloud.bigquery.datat" + @@ -277,7 +277,7 @@ public static void registerAllExtensions( "cts/*}/transferConfigs\022\255\002\n\024ScheduleTrans" + "ferRuns\022B.google.cloud.bigquery.datatran" + "sfer.v1.ScheduleTransferRunsRequest\032C.go" + - "ogle.cloud.bigquery.datatransfer.v1.Sche" + + "ogle.cloud.bigquery.datatransfer.v1.Sche", "duleTransferRunsResponse\"\213\001\202\323\344\223\002\204\001\"B/v1/" + "{parent=projects/*/locations/*/transferC" + "onfigs/*}:scheduleRuns:\001*Z;\"6/v1/{parent" + @@ -287,7 +287,7 @@ public static void registerAllExtensions( "Request\0322.google.cloud.bigquery.datatran" + "sfer.v1.TransferRun\"t\202\323\344\223\002n\022:/v1/{name=p" + "rojects/*/locations/*/transferConfigs/*/" + - "runs/*}Z0\022./v1/{name=projects/*/transfer" + + "runs/*}Z0\022./v1/{name=projects/*/transfer", "Configs/*/runs/*}\022\342\001\n\021DeleteTransferRun\022" + "?.google.cloud.bigquery.datatransfer.v1." + "DeleteTransferRunRequest\032\026.google.protob" + @@ -297,7 +297,7 @@ public static void registerAllExtensions( "uns/*}\022\211\002\n\020ListTransferRuns\022>.google.clo" + "ud.bigquery.datatransfer.v1.ListTransfer" + "RunsRequest\032?.google.cloud.bigquery.data" + - "transfer.v1.ListTransferRunsResponse\"t\202\323" + + "transfer.v1.ListTransferRunsResponse\"t\202\323", "\344\223\002n\022:/v1/{parent=projects/*/locations/*" + "/transferConfigs/*}/runsZ0\022./v1/{parent=" + "projects/*/transferConfigs/*}/runs\022\251\002\n\020L" + @@ -307,7 +307,7 @@ public static void registerAllExtensions( "ListTransferLogsResponse\"\223\001\202\323\344\223\002\214\001\022I/v1/" + "{parent=projects/*/locations/*/transferC" + "onfigs/*/runs/*}/transferLogsZ?\022=/v1/{pa" + - "rent=projects/*/transferConfigs/*/runs/*" + + "rent=projects/*/transferConfigs/*/runs/*", "}/transferLogs\022\227\002\n\017CheckValidCreds\022=.goo" + "gle.cloud.bigquery.datatransfer.v1.Check" + "ValidCredsRequest\032>.google.cloud.bigquer" + @@ -317,7 +317,7 @@ public static void registerAllExtensions( "\"3/v1/{name=projects/*/dataSources/*}:ch" + "eckValidCreds:\001*B\343\001\n)com.google.cloud.bi" + "gquery.datatransfer.v1B\021DataTransferProt" + - "oP\001ZQgoogle.golang.org/genproto/googleap" + + "oP\001ZQgoogle.golang.org/genproto/googleap", "is/cloud/bigquery/datatransfer/v1;datatr" + "ansfer\252\002%Google.Cloud.BigQuery.DataTrans" + "fer.V1\312\002%Google\\Cloud\\BigQuery\\DataTrans" + diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java index 5fe2ea4dc009..d6d50d1f06aa 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferConfigRequest.java @@ -34,9 +34,6 @@ private DeleteTransferConfigRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,12 +45,6 @@ private DeleteTransferConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -61,6 +52,12 @@ private DeleteTransferConfigRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -78,7 +75,6 @@ private DeleteTransferConfigRequest( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable @@ -131,7 +127,6 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -141,7 +136,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -150,7 +144,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -265,7 +258,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequ .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -273,7 +265,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -302,7 +293,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_fieldAccessorTable @@ -325,7 +315,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -333,18 +322,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferConfigRequest_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest build() { com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest result = buildPartial(); if (!result.isInitialized()) { @@ -353,7 +339,6 @@ public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest bui return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest buildPartial() { com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest result = new com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest(this); result.name_ = name_; @@ -361,39 +346,32 @@ public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest bui return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest)other); @@ -414,12 +392,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DeleteTransfe return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -531,13 +507,11 @@ public Builder setNameBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -559,12 +533,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public DeleteTransferConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteTransferConfigRequest(input, extensionRegistry); + return new DeleteTransferConfigRequest(input, extensionRegistry); } }; @@ -577,7 +550,6 @@ public com.google.protobuf.Parser getParserForType( return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java index 7d643e7639fd..fe71387ccf2f 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DeleteTransferRunRequest.java @@ -33,9 +33,6 @@ private DeleteTransferRunRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private DeleteTransferRunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private DeleteTransferRunRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private DeleteTransferRunRequest( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable @@ -130,7 +126,6 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -140,7 +135,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -149,7 +143,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -264,7 +257,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -272,7 +264,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -300,7 +291,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_fieldAccessorTable @@ -323,7 +313,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -331,18 +320,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_DeleteTransferRunRequest_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest build() { com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest result = buildPartial(); if (!result.isInitialized()) { @@ -351,7 +337,6 @@ public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest build( return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest buildPartial() { com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest result = new com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest(this); result.name_ = name_; @@ -359,39 +344,32 @@ public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest buildP return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest)other); @@ -412,12 +390,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.DeleteTransfe return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -529,13 +505,11 @@ public Builder setNameBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -557,12 +531,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public DeleteTransferRunRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteTransferRunRequest(input, extensionRegistry); + return new DeleteTransferRunRequest(input, extensionRegistry); } }; @@ -575,7 +548,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.DeleteTransferRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java index 6b11373337d0..14e890f86958 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetDataSourceRequest.java @@ -33,9 +33,6 @@ private GetDataSourceRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private GetDataSourceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private GetDataSourceRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private GetDataSourceRequest( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable @@ -130,7 +126,6 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -140,7 +135,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -149,7 +143,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -264,7 +257,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest par .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -272,7 +264,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -300,7 +291,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_fieldAccessorTable @@ -323,7 +313,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -331,18 +320,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetDataSourceRequest_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest build() { com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest result = buildPartial(); if (!result.isInitialized()) { @@ -351,7 +337,6 @@ public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest build() { return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest buildPartial() { com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest result = new com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest(this); result.name_ = name_; @@ -359,39 +344,32 @@ public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest buildParti return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest)other); @@ -412,12 +390,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.GetDataSource return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -529,13 +505,11 @@ public Builder setNameBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -557,12 +531,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest get private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public GetDataSourceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDataSourceRequest(input, extensionRegistry); + return new GetDataSourceRequest(input, extensionRegistry); } }; @@ -575,7 +548,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java index 6f5fca8e4af5..81ab342a4468 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferConfigRequest.java @@ -33,9 +33,6 @@ private GetTransferConfigRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private GetTransferConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private GetTransferConfigRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private GetTransferConfigRequest( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable @@ -130,7 +126,6 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -140,7 +135,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -149,7 +143,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -264,7 +257,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -272,7 +264,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -300,7 +291,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_fieldAccessorTable @@ -323,7 +313,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -331,18 +320,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferConfigRequest_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest build() { com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest result = buildPartial(); if (!result.isInitialized()) { @@ -351,7 +337,6 @@ public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest build( return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest buildPartial() { com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest result = new com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest(this); result.name_ = name_; @@ -359,39 +344,32 @@ public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest buildP return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest)other); @@ -412,12 +390,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.GetTransferCo return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -529,13 +505,11 @@ public Builder setNameBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -557,12 +531,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public GetTransferConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTransferConfigRequest(input, extensionRegistry); + return new GetTransferConfigRequest(input, extensionRegistry); } }; @@ -575,7 +548,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetTransferConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java index fe509da44109..4b8c670a3491 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/GetTransferRunRequest.java @@ -33,9 +33,6 @@ private GetTransferRunRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private GetTransferRunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private GetTransferRunRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private GetTransferRunRequest( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable @@ -130,7 +126,6 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -140,7 +135,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -149,7 +143,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -264,7 +257,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest pa .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -272,7 +264,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -300,7 +291,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_fieldAccessorTable @@ -323,7 +313,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -331,18 +320,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_GetTransferRunRequest_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest build() { com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest result = buildPartial(); if (!result.isInitialized()) { @@ -351,7 +337,6 @@ public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest build() { return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest buildPartial() { com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest result = new com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest(this); result.name_ = name_; @@ -359,39 +344,32 @@ public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest buildPart return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest)other); @@ -412,12 +390,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.GetTransferRu return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -529,13 +505,11 @@ public Builder setNameBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -557,12 +531,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest ge private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public GetTransferRunRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTransferRunRequest(input, extensionRegistry); + return new GetTransferRunRequest(input, extensionRegistry); } }; @@ -575,7 +548,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.GetTransferRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java index 1620cd1cd11e..d43168dbdb21 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesRequest.java @@ -35,9 +35,6 @@ private ListDataSourcesRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -49,6 +46,13 @@ private ListDataSourcesRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -66,13 +70,6 @@ private ListDataSourcesRequest( pageSize_ = input.readInt32(); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ListDataSourcesRequest( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable @@ -206,7 +202,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -216,7 +211,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { @@ -231,7 +225,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -361,7 +354,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest p .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -369,7 +361,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -397,7 +388,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_fieldAccessorTable @@ -420,7 +410,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); parent_ = ""; @@ -432,18 +421,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesRequest_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest build() { com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest result = buildPartial(); if (!result.isInitialized()) { @@ -452,7 +438,6 @@ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest build() return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest buildPartial() { com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest result = new com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest(this); result.parent_ = parent_; @@ -462,39 +447,32 @@ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest buildPar return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest)other); @@ -522,12 +500,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListDataSourc return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -786,13 +762,11 @@ public Builder clearPageSize() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -814,12 +788,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest g private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ListDataSourcesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDataSourcesRequest(input, extensionRegistry); + return new ListDataSourcesRequest(input, extensionRegistry); } }; @@ -832,7 +805,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java index d267c9bea0b8..4ebb51012142 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListDataSourcesResponse.java @@ -34,9 +34,6 @@ private ListDataSourcesResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private ListDataSourcesResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { dataSources_ = new java.util.ArrayList (); @@ -63,13 +67,6 @@ private ListDataSourcesResponse( nextPageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ListDataSourcesResponse( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable @@ -203,7 +199,6 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -213,7 +208,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < dataSources_.size(); i++) { @@ -225,7 +219,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -350,7 +343,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -358,7 +350,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -386,7 +377,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_fieldAccessorTable @@ -410,7 +400,6 @@ private void maybeForceBuilderInitialization() { getDataSourcesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (dataSourcesBuilder_ == null) { @@ -424,18 +413,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListDataSourcesResponse_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse build() { com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse result = buildPartial(); if (!result.isInitialized()) { @@ -444,7 +430,6 @@ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse build() return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse buildPartial() { com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse result = new com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse(this); int from_bitField0_ = bitField0_; @@ -464,39 +449,32 @@ public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse buildPa return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse)other); @@ -543,12 +521,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListDataSourc return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -983,13 +959,11 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1011,12 +985,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ListDataSourcesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDataSourcesResponse(input, extensionRegistry); + return new ListDataSourcesResponse(input, extensionRegistry); } }; @@ -1029,7 +1002,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java index a4266601a297..6f1584543667 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsRequest.java @@ -36,9 +36,6 @@ private ListTransferConfigsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -50,6 +47,13 @@ private ListTransferConfigsRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -76,13 +80,6 @@ private ListTransferConfigsRequest( pageSize_ = input.readInt32(); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +100,6 @@ private ListTransferConfigsRequest( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable @@ -265,7 +261,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -275,7 +270,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { @@ -293,7 +287,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -437,7 +430,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsReque .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -445,7 +437,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -473,7 +464,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_fieldAccessorTable @@ -496,7 +486,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); parent_ = ""; @@ -510,18 +499,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsRequest_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest build() { com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -530,7 +516,6 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest buil return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest buildPartial() { com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest(this); int from_bitField0_ = bitField0_; @@ -548,39 +533,32 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest buil return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest)other); @@ -618,12 +596,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferC return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1013,13 +989,11 @@ public Builder clearPageSize() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1041,12 +1015,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsReque private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ListTransferConfigsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTransferConfigsRequest(input, extensionRegistry); + return new ListTransferConfigsRequest(input, extensionRegistry); } }; @@ -1059,7 +1032,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java index 4d269cdda195..5879e6ffc891 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferConfigsResponse.java @@ -34,9 +34,6 @@ private ListTransferConfigsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private ListTransferConfigsResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { transferConfigs_ = new java.util.ArrayList (); @@ -63,13 +67,6 @@ private ListTransferConfigsResponse( nextPageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ListTransferConfigsResponse( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable @@ -203,7 +199,6 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -213,7 +208,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < transferConfigs_.size(); i++) { @@ -225,7 +219,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -350,7 +343,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRespo .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -358,7 +350,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -386,7 +377,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_fieldAccessorTable @@ -410,7 +400,6 @@ private void maybeForceBuilderInitialization() { getTransferConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (transferConfigsBuilder_ == null) { @@ -424,18 +413,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferConfigsResponse_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse build() { com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -444,7 +430,6 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse bui return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse buildPartial() { com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse(this); int from_bitField0_ = bitField0_; @@ -464,39 +449,32 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse bui return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse)other); @@ -543,12 +521,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferC return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -983,13 +959,11 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1011,12 +985,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsRespo private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ListTransferConfigsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTransferConfigsResponse(input, extensionRegistry); + return new ListTransferConfigsResponse(input, extensionRegistry); } }; @@ -1029,7 +1002,6 @@ public com.google.protobuf.Parser getParserForType( return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java index b1e2e98afb5c..3ccd5583b086 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsRequest.java @@ -36,9 +36,6 @@ private ListTransferLogsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -50,6 +47,13 @@ private ListTransferLogsRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -90,13 +94,6 @@ private ListTransferLogsRequest( input.popLimit(oldLimit); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -117,7 +114,6 @@ private ListTransferLogsRequest( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable @@ -240,7 +236,6 @@ public int getPageSize() { new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity>() { public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf(from); return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.UNRECOGNIZED : result; } @@ -305,7 +300,6 @@ public int getMessageTypesValue(int index) { private int messageTypesMemoizedSerializedSize; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -315,7 +309,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -338,7 +331,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -485,7 +477,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -493,7 +484,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -521,7 +511,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_fieldAccessorTable @@ -544,7 +533,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); parent_ = ""; @@ -558,18 +546,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsRequest_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest build() { com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -578,7 +563,6 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest build() return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest buildPartial() { com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest(this); int from_bitField0_ = bitField0_; @@ -596,39 +580,32 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest buildPa return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest)other); @@ -666,12 +643,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferL return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1109,13 +1084,11 @@ public Builder addAllMessageTypesValue( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1137,12 +1110,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ListTransferLogsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTransferLogsRequest(input, extensionRegistry); + return new ListTransferLogsRequest(input, extensionRegistry); } }; @@ -1155,7 +1127,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java index 8aea70a4305c..bc407d91cb48 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferLogsResponse.java @@ -34,9 +34,6 @@ private ListTransferLogsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private ListTransferLogsResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { transferMessages_ = new java.util.ArrayList (); @@ -63,13 +67,6 @@ private ListTransferLogsResponse( nextPageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ListTransferLogsResponse( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable @@ -203,7 +199,6 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -213,7 +208,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < transferMessages_.size(); i++) { @@ -225,7 +219,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -350,7 +343,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -358,7 +350,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -386,7 +377,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_fieldAccessorTable @@ -410,7 +400,6 @@ private void maybeForceBuilderInitialization() { getTransferMessagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (transferMessagesBuilder_ == null) { @@ -424,18 +413,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferLogsResponse_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse build() { com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -444,7 +430,6 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse build( return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse buildPartial() { com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse(this); int from_bitField0_ = bitField0_; @@ -464,39 +449,32 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse buildP return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse)other); @@ -543,12 +521,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferL return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -983,13 +959,11 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1011,12 +985,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ListTransferLogsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTransferLogsResponse(input, extensionRegistry); + return new ListTransferLogsResponse(input, extensionRegistry); } }; @@ -1029,7 +1002,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java index fb03bb2a5e16..2723a2c3137f 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsRequest.java @@ -39,9 +39,6 @@ private ListTransferRunsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -53,6 +50,13 @@ private ListTransferRunsRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -99,13 +103,6 @@ private ListTransferRunsRequest( runAttempt_ = rawValue; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -126,7 +123,6 @@ private ListTransferRunsRequest( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable @@ -306,7 +302,6 @@ public java.lang.String getParent() { new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.bigquery.datatransfer.v1.TransferState>() { public com.google.cloud.bigquery.datatransfer.v1.TransferState convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.TransferState result = com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(from); return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED : result; } @@ -448,13 +443,11 @@ public int getRunAttemptValue() { * .google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5;
*/ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt getRunAttempt() { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt result = com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.valueOf(runAttempt_); return result == null ? com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -464,7 +457,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -490,7 +482,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -644,7 +635,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -652,7 +642,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -682,7 +671,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_fieldAccessorTable @@ -705,7 +693,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); parent_ = ""; @@ -721,18 +708,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsRequest_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest build() { com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -741,7 +725,6 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest build() return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest buildPartial() { com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest(this); int from_bitField0_ = bitField0_; @@ -760,39 +743,32 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest buildPa return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest)other); @@ -833,12 +809,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferR return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1301,7 +1275,6 @@ public Builder setRunAttemptValue(int value) { *.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt run_attempt = 5;
*/ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt getRunAttempt() { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt result = com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.valueOf(runAttempt_); return result == null ? com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt.UNRECOGNIZED : result; } @@ -1334,13 +1307,11 @@ public Builder clearRunAttempt() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1362,12 +1333,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest private static final com.google.protobuf.ParserPARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ListTransferRunsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTransferRunsRequest(input, extensionRegistry); + return new ListTransferRunsRequest(input, extensionRegistry); } }; @@ -1380,7 +1350,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java index 12040dba44e4..9977d85d41f4 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ListTransferRunsResponse.java @@ -34,9 +34,6 @@ private ListTransferRunsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private ListTransferRunsResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { transferRuns_ = new java.util.ArrayList (); @@ -63,13 +67,6 @@ private ListTransferRunsResponse( nextPageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ListTransferRunsResponse( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable @@ -203,7 +199,6 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -213,7 +208,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < transferRuns_.size(); i++) { @@ -225,7 +219,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -350,7 +343,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -358,7 +350,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -386,7 +377,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_fieldAccessorTable @@ -410,7 +400,6 @@ private void maybeForceBuilderInitialization() { getTransferRunsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (transferRunsBuilder_ == null) { @@ -424,18 +413,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ListTransferRunsResponse_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse build() { com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -444,7 +430,6 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse build( return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse buildPartial() { com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse result = new com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse(this); int from_bitField0_ = bitField0_; @@ -464,39 +449,32 @@ public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse buildP return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse)other); @@ -543,12 +521,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ListTransferR return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -983,13 +959,11 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1011,12 +985,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ListTransferRunsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTransferRunsResponse(input, extensionRegistry); + return new ListTransferRunsResponse(input, extensionRegistry); } }; @@ -1029,7 +1002,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java index b95d04918722..9f11c068aec2 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsRequest.java @@ -33,9 +33,6 @@ private ScheduleTransferRunsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private ScheduleTransferRunsRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -79,13 +83,6 @@ private ScheduleTransferRunsRequest( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +100,6 @@ private ScheduleTransferRunsRequest( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable @@ -228,7 +224,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -238,7 +233,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { @@ -253,7 +247,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -394,7 +387,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequ .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -402,7 +394,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -430,7 +421,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_fieldAccessorTable @@ -453,7 +443,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); parent_ = ""; @@ -473,18 +462,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsRequest_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest build() { com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -493,7 +479,6 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest bui return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest buildPartial() { com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest result = new com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest(this); result.parent_ = parent_; @@ -511,39 +496,32 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest bui return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest)other); @@ -570,12 +548,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ScheduleTrans return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1011,13 +987,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } return endTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1039,12 +1013,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ScheduleTransferRunsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScheduleTransferRunsRequest(input, extensionRegistry); + return new ScheduleTransferRunsRequest(input, extensionRegistry); } }; @@ -1057,7 +1030,6 @@ public com.google.protobuf.Parser getParserForType( return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java index 09c85d086bfa..87dbdd59006e 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ScheduleTransferRunsResponse.java @@ -33,9 +33,6 @@ private ScheduleTransferRunsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private ScheduleTransferRunsResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { runs_ = new java.util.ArrayList (); @@ -56,13 +60,6 @@ private ScheduleTransferRunsResponse( input.readMessage(com.google.cloud.bigquery.datatransfer.v1.TransferRun.parser(), extensionRegistry)); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,7 +80,6 @@ private ScheduleTransferRunsResponse( return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable @@ -147,7 +143,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRunOrBuilder getRunsOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -157,7 +152,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < runs_.size(); i++) { @@ -166,7 +160,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -284,7 +277,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResp .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -292,7 +284,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -320,7 +311,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_fieldAccessorTable @@ -344,7 +334,6 @@ private void maybeForceBuilderInitialization() { getRunsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (runsBuilder_ == null) { @@ -356,18 +345,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_ScheduleTransferRunsResponse_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse build() { com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -376,7 +362,6 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse bu return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse buildPartial() { com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse result = new com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse(this); int from_bitField0_ = bitField0_; @@ -393,39 +378,32 @@ public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse bu return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse)other); @@ -468,12 +446,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.ScheduleTrans return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -804,13 +780,11 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferRun.Builder addRunsBuil } return runsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -832,12 +806,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResp private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public ScheduleTransferRunsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ScheduleTransferRunsResponse(input, extensionRegistry); + return new ScheduleTransferRunsResponse(input, extensionRegistry); } }; @@ -850,7 +823,6 @@ public com.google.protobuf.Parser getParserForType return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java index 5bede3c76679..5ba24ee3d31e 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfig.java @@ -47,9 +47,6 @@ private TransferConfig( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -61,6 +58,13 @@ private TransferConfig( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -157,13 +161,6 @@ private TransferConfig( datasetRegion_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -181,7 +178,6 @@ private TransferConfig( return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable @@ -582,7 +578,6 @@ public int getStateValue() { * .google.cloud.bigquery.datatransfer.v1.TransferState state = 10;
*/ public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.TransferState result = com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED : result; } @@ -647,7 +642,6 @@ public java.lang.String getDatasetRegion() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -657,7 +651,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -702,7 +695,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -924,7 +916,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig parseFrom .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -932,7 +923,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.TransferConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -965,7 +955,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable @@ -988,7 +977,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -1032,18 +1020,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.TransferConfig.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferConfig build() { com.google.cloud.bigquery.datatransfer.v1.TransferConfig result = buildPartial(); if (!result.isInitialized()) { @@ -1052,7 +1037,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig build() { return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferConfig buildPartial() { com.google.cloud.bigquery.datatransfer.v1.TransferConfig result = new com.google.cloud.bigquery.datatransfer.v1.TransferConfig(this); result.name_ = name_; @@ -1084,39 +1068,32 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferConfig buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.TransferConfig) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.TransferConfig)other); @@ -1178,12 +1155,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.TransferConfi return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2311,7 +2286,6 @@ public Builder setStateValue(int value) { *.google.cloud.bigquery.datatransfer.v1.TransferState state = 10;
*/ public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.TransferState result = com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_); return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED : result; } @@ -2483,13 +2457,11 @@ public Builder setDatasetRegionBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -2511,12 +2483,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.TransferConfig getDefaul private static final com.google.protobuf.ParserPARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public TransferConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TransferConfig(input, extensionRegistry); + return new TransferConfig(input, extensionRegistry); } }; @@ -2529,7 +2500,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java index d249a6be9adf..e1091af4a04c 100644 --- a/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java +++ b/google-api-grpc/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferMessage.java @@ -34,9 +34,6 @@ private TransferMessage( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private TransferMessage( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (messageTime_ != null) { @@ -73,13 +77,6 @@ private TransferMessage( messageText_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,7 +94,6 @@ private TransferMessage( return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable @@ -310,7 +306,6 @@ public int getSeverityValue() { * .google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2;
*/ public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getSeverity() { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf(severity_); return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.UNRECOGNIZED : result; } @@ -358,7 +353,6 @@ public java.lang.String getMessageText() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -368,7 +362,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (messageTime_ != null) { @@ -383,7 +376,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -518,7 +510,6 @@ public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage parseFro .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -526,7 +517,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.cloud.bigquery.datatransfer.v1.TransferMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -554,7 +544,6 @@ public static final class Builder extends return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_fieldAccessorTable @@ -577,7 +566,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (messageTimeBuilder_ == null) { @@ -593,18 +581,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.bigquery.datatransfer.v1.TransferProto.internal_static_google_cloud_bigquery_datatransfer_v1_TransferMessage_descriptor; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferMessage getDefaultInstanceForType() { return com.google.cloud.bigquery.datatransfer.v1.TransferMessage.getDefaultInstance(); } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferMessage build() { com.google.cloud.bigquery.datatransfer.v1.TransferMessage result = buildPartial(); if (!result.isInitialized()) { @@ -613,7 +598,6 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferMessage build() { return result; } - @java.lang.Override public com.google.cloud.bigquery.datatransfer.v1.TransferMessage buildPartial() { com.google.cloud.bigquery.datatransfer.v1.TransferMessage result = new com.google.cloud.bigquery.datatransfer.v1.TransferMessage(this); if (messageTimeBuilder_ == null) { @@ -627,39 +611,32 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferMessage buildPartial() return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.datatransfer.v1.TransferMessage) { return mergeFrom((com.google.cloud.bigquery.datatransfer.v1.TransferMessage)other); @@ -686,12 +663,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.datatransfer.v1.TransferMessa return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -894,7 +869,6 @@ public Builder setSeverityValue(int value) { *.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity severity = 2;
*/ public com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity getSeverity() { - @SuppressWarnings("deprecation") com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity result = com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.valueOf(severity_); return result == null ? com.google.cloud.bigquery.datatransfer.v1.TransferMessage.MessageSeverity.UNRECOGNIZED : result; } @@ -1016,13 +990,11 @@ public Builder setMessageTextBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1044,12 +1016,11 @@ public static com.google.cloud.bigquery.datatransfer.v1.TransferMessage getDefau private static final com.google.protobuf.ParserPARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override public TransferMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TransferMessage(input, extensionRegistry); + return new TransferMessage(input, extensionRegistry); } }; @@ -1062,7 +1033,6 @@ public com.google.protobuf.Parser