diff --git a/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json b/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json index 9548b5bcd75c..17097b573c12 100644 --- a/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json +++ b/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1/reflect-config.json @@ -665,6 +665,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.batch.v1.AllocationPolicy$NetworkInterface$NicType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.batch.v1.AllocationPolicy$NetworkPolicy", "queryAllDeclaredConstructors": true, diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java index a83a1f145b06..09e8c730c42d 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java @@ -10469,6 +10469,51 @@ public interface NetworkInterfaceOrBuilder * @return The noExternalIpAddress. */ boolean getNoExternalIpAddress(); + + /** + * + * + *
+ * Optional. The NIC type of the network interface. + *+ * + *
+ * optional .google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the nicType field is set.
+ */
+ boolean hasNicType();
+
+ /**
+ *
+ *
+ * + * Optional. The NIC type of the network interface. + *+ * + *
+ * optional .google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for nicType.
+ */
+ int getNicTypeValue();
+
+ /**
+ *
+ *
+ * + * Optional. The NIC type of the network interface. + *+ * + *
+ * optional .google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The nicType.
+ */
+ com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType getNicType();
}
/**
@@ -10504,6 +10549,7 @@ private NetworkInterface(com.google.protobuf.GeneratedMessage.Builder> builder
private NetworkInterface() {
network_ = "";
subnetwork_ = "";
+ nicType_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -10521,6 +10567,201 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.Builder.class);
}
+ /**
+ *
+ *
+ * + * Compute Engine VM instance NIC type. + *+ * + * Protobuf enum {@code google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType} + */ + public enum NicType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * No type specified. + *+ * + *
NIC_TYPE_UNSPECIFIED = 0;
+ */
+ NIC_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * GVNIC + *+ * + *
GVNIC = 1;
+ */
+ GVNIC(1),
+ /**
+ *
+ *
+ * + * IRDMA + *+ * + *
IRDMA = 2;
+ */
+ IRDMA(2),
+ /**
+ *
+ *
+ * + * MRDMA + *+ * + *
MRDMA = 3;
+ */
+ MRDMA(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "NicType");
+ }
+
+ /**
+ *
+ *
+ * + * No type specified. + *+ * + *
NIC_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int NIC_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * GVNIC + *+ * + *
GVNIC = 1;
+ */
+ public static final int GVNIC_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * IRDMA + *+ * + *
IRDMA = 2;
+ */
+ public static final int IRDMA_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * MRDMA + *+ * + *
MRDMA = 3;
+ */
+ public static final int MRDMA_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static NicType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static NicType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return NIC_TYPE_UNSPECIFIED;
+ case 1:
+ return GVNIC;
+ case 2:
+ return IRDMA;
+ case 3:
+ return MRDMA;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Optional. The NIC type of the network interface. + *+ * + *
+ * optional .google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the nicType field is set.
+ */
+ @java.lang.Override
+ public boolean hasNicType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The NIC type of the network interface. + *+ * + *
+ * optional .google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for nicType.
+ */
+ @java.lang.Override
+ public int getNicTypeValue() {
+ return nicType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The NIC type of the network interface. + *+ * + *
+ * optional .google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The nicType.
+ */
+ @java.lang.Override
+ public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType getNicType() {
+ com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType result =
+ com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType.forNumber(nicType_);
+ return result == null
+ ? com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType.UNRECOGNIZED
+ : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -10703,6 +11005,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (noExternalIpAddress_ != false) {
output.writeBool(3, noExternalIpAddress_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(7, nicType_);
+ }
getUnknownFields().writeTo(output);
}
@@ -10721,6 +11026,9 @@ public int getSerializedSize() {
if (noExternalIpAddress_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, noExternalIpAddress_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, nicType_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -10740,6 +11048,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getNetwork().equals(other.getNetwork())) return false;
if (!getSubnetwork().equals(other.getSubnetwork())) return false;
if (getNoExternalIpAddress() != other.getNoExternalIpAddress()) return false;
+ if (hasNicType() != other.hasNicType()) return false;
+ if (hasNicType()) {
+ if (nicType_ != other.nicType_) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -10757,6 +11069,10 @@ public int hashCode() {
hash = (53 * hash) + getSubnetwork().hashCode();
hash = (37 * hash) + NO_EXTERNAL_IP_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoExternalIpAddress());
+ if (hasNicType()) {
+ hash = (37 * hash) + NIC_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + nicType_;
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -10901,6 +11217,7 @@ public Builder clear() {
network_ = "";
subnetwork_ = "";
noExternalIpAddress_ = false;
+ nicType_ = 0;
return this;
}
@@ -10948,6 +11265,12 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000004) != 0)) {
result.noExternalIpAddress_ = noExternalIpAddress_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.nicType_ = nicType_;
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -10977,6 +11300,9 @@ public Builder mergeFrom(com.google.cloud.batch.v1.AllocationPolicy.NetworkInter
if (other.getNoExternalIpAddress() != false) {
setNoExternalIpAddress(other.getNoExternalIpAddress());
}
+ if (other.hasNicType()) {
+ setNicTypeValue(other.getNicTypeValue());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -11021,6 +11347,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 24
+ case 56:
+ {
+ nicType_ = input.readEnum();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 56
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -11406,6 +11738,132 @@ public Builder clearNoExternalIpAddress() {
return this;
}
+ private int nicType_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The NIC type of the network interface. + *+ * + *
+ * optional .google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the nicType field is set.
+ */
+ @java.lang.Override
+ public boolean hasNicType() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The NIC type of the network interface. + *+ * + *
+ * optional .google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for nicType.
+ */
+ @java.lang.Override
+ public int getNicTypeValue() {
+ return nicType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The NIC type of the network interface. + *+ * + *
+ * optional .google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for nicType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNicTypeValue(int value) {
+ nicType_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The NIC type of the network interface. + *+ * + *
+ * optional .google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The nicType.
+ */
+ @java.lang.Override
+ public com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType getNicType() {
+ com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType result =
+ com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType.forNumber(nicType_);
+ return result == null
+ ? com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The NIC type of the network interface. + *+ * + *
+ * optional .google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The nicType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNicType(
+ com.google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ nicType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The NIC type of the network interface. + *+ * + *
+ * optional .google.cloud.batch.v1.AllocationPolicy.NetworkInterface.NicType nic_type = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNicType() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ nicType_ = 0;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.batch.v1.AllocationPolicy.NetworkInterface)
}
diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java
index 61ab4b576920..c7f5bd60c10d 100644
--- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java
+++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java
@@ -227,7 +227,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004Type\022\024\n"
+ "\020TYPE_UNSPECIFIED\020\000\022\025\n"
+ "\021JOB_STATE_CHANGED\020\001\022\026\n"
- + "\022TASK_STATE_CHANGED\020\002\"\255\017\n"
+ + "\022TASK_STATE_CHANGED\020\002\"\337\020\n"
+ "\020AllocationPolicy\022H\n"
+ "\010location\030\001"
+ " \001(\01326.google.cloud.batch.v1.AllocationPolicy.LocationPolicy\022S\n"
@@ -279,14 +279,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\023install_gpu_drivers\030\003 \001(\010\022\036\n"
+ "\021install_ops_agent\030\004 \001(\010B\003\340A\001\022#\n"
+ "\026block_project_ssh_keys\030\005 \001(\010B\003\340A\001B\021\n"
- + "\017policy_template\032W\n"
+ + "\017policy_template\032\210\002\n"
+ "\020NetworkInterface\022\017\n"
+ "\007network\030\001 \001(\t\022\022\n\n"
+ "subnetwork\030\002 \001(\t\022\036\n"
- + "\026no_external_ip_address\030\003 \001(\010\032e\n\r"
+ + "\026no_external_ip_address\030\003 \001(\010\022\\\n"
+ + "\010nic_type\030\007 \001(\0162@.google.cloud.batch.v1.Allo"
+ + "cationPolicy.NetworkInterface.NicTypeB\003\340A\001H\000\210\001\001\"D\n"
+ + "\007NicType\022\030\n"
+ + "\024NIC_TYPE_UNSPECIFIED\020\000\022\t\n"
+ + "\005GVNIC\020\001\022\t\n"
+ + "\005IRDMA\020\002\022\t\n"
+ + "\005MRDMA\020\003B\013\n"
+ + "\t_nic_type\032e\n\r"
+ "NetworkPolicy\022T\n"
- + "\022network_interfaces\030\001 \003(\01328."
- + "google.cloud.batch.v1.AllocationPolicy.NetworkInterface\032<\n"
+ + "\022network_interfaces\030\001"
+ + " \003(\01328.google.cloud.batch.v1.AllocationPolicy.NetworkInterface\032<\n"
+ "\017PlacementPolicy\022\023\n"
+ "\013collocation\030\001 \001(\t\022\024\n"
+ "\014max_distance\030\002 \001(\003\032-\n"
@@ -306,8 +314,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ " \001(\0132\037.google.cloud.batch.v1.TaskSpecB\003\340A\002\022\022\n\n"
+ "task_count\030\004 \001(\003\022\023\n"
+ "\013parallelism\030\005 \001(\003\022L\n"
- + "\021scheduling_policy\030\006"
- + " \001(\01621.google.cloud.batch.v1.TaskGroup.SchedulingPolicy\022=\n"
+ + "\021scheduling_policy\030\006 \001"
+ + "(\01621.google.cloud.batch.v1.TaskGroup.SchedulingPolicy\022=\n"
+ "\021task_environments\030\t \003(\0132\".google.cloud.batch.v1.Environment\022\033\n"
+ "\023task_count_per_node\030\n"
+ " \001(\003\022\032\n"
@@ -318,15 +326,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\035SCHEDULING_POLICY_UNSPECIFIED\020\000\022\027\n"
+ "\023AS_SOON_AS_POSSIBLE\020\001\022\014\n"
+ "\010IN_ORDER\020\002:o\352Al\n"
- + "\036batch.googleapis.com/TaskGroup\022Jprojects/{project}"
- + "/locations/{location}/jobs/{job}/taskGroups/{task_group}\"/\n"
+ + "\036batch.googleapis.com/TaskGroup\022J"
+ + "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}\"/\n"
+ "\016ServiceAccount\022\r\n"
+ "\005email\030\001 \001(\t\022\016\n"
+ "\006scopes\030\002 \003(\tB\251\001\n"
- + "\031com.google.cloud.batch.v1B\010JobProtoP\001Z/cloud.googl"
- + "e.com/go/batch/apiv1/batchpb;batchpb\242\002\003G"
- + "CB\252\002\025Google.Cloud.Batch.V1\312\002\025Google\\Clou"
- + "d\\Batch\\V1\352\002\030Google::Cloud::Batch::V1b\006proto3"
+ + "\031com.google.cloud.batch.v1B\010JobProtoP\001Z/cloud.google.com/go/batch/apiv1/b"
+ + "atchpb;batchpb\242\002\003GCB\252\002\025Google.Cloud.Batc"
+ + "h.V1\312\002\025Google\\Cloud\\Batch\\V1\352\002\030Google::C"
+ + "loud::Batch::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -506,7 +514,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_descriptor,
new java.lang.String[] {
- "Network", "Subnetwork", "NoExternalIpAddress",
+ "Network", "Subnetwork", "NoExternalIpAddress", "NicType",
});
internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkPolicy_descriptor =
internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedType(7);
diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto
index 38cd569c4a41..d4bae45fbf3a 100644
--- a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto
+++ b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto
@@ -501,6 +501,21 @@ message AllocationPolicy {
// A network interface.
message NetworkInterface {
+ // Compute Engine VM instance NIC type.
+ enum NicType {
+ // No type specified.
+ NIC_TYPE_UNSPECIFIED = 0;
+
+ // GVNIC
+ GVNIC = 1;
+
+ // IRDMA
+ IRDMA = 2;
+
+ // MRDMA
+ MRDMA = 3;
+ }
+
// The URL of an existing network resource.
// You can specify the network as a full or partial URL.
//
@@ -529,6 +544,9 @@ message AllocationPolicy {
// https://cloud.google.com/nat/docs/gce-example#create-nat for more
// information.
bool no_external_ip_address = 3;
+
+ // Optional. The NIC type of the network interface.
+ optional NicType nic_type = 7 [(google.api.field_behavior) = OPTIONAL];
}
// NetworkPolicy describes VM instance network configurations.
diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2/reflect-config.json b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2/reflect-config.json
index 61b9e1e42a2f..f72da7b46fa7 100644
--- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2/reflect-config.json
+++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.migration.v2/reflect-config.json
@@ -980,6 +980,105 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.bigquery.migration.v2.LineageOutput",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.migration.v2.LineageOutput$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.migration.v2.LineageOutput$ProgressReport",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.migration.v2.LineageOutput$ProgressReport$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.migration.v2.LineageOutput$ProgressReport$ProcessingStage",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.migration.v2.LineageOutput$ProgressReport$WorkSummary",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.migration.v2.LineageOutput$ProgressReport$WorkSummary$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.migration.v2.LineageOutput$ProgressReport$WorkSummary$State",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.migration.v2.LineageOutput$RecognizedInput",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.migration.v2.LineageOutput$RecognizedInput$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.migration.v2.LineageOutput$RecognizedInput$Type",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest",
"queryAllDeclaredConstructors": true,
@@ -1628,6 +1727,33 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.bigquery.migration.v2.TaskOutput",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.migration.v2.TaskOutput$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.migration.v2.TaskOutput$State",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.bigquery.migration.v2.TeradataDialect",
"queryAllDeclaredConstructors": true,
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/LineageOutput.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/LineageOutput.java
new file mode 100644
index 000000000000..7aa49169467d
--- /dev/null
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/LineageOutput.java
@@ -0,0 +1,5752 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/bigquery/migration/v2/migration_entities.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.bigquery.migration.v2;
+
+/**
+ *
+ *
+ * + * The output of a task with output type "LINEAGE". + * + * Actual generated lineage can be queried separately (see + * [webapp_uri][google.cloud.bigquery.migration.v2.LineageOutput.webapp_uri]), + * this message contains only metadata: processing status, errors, etc. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.LineageOutput} + */ +@com.google.protobuf.Generated +public final class LineageOutput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.LineageOutput) + LineageOutputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "LineageOutput"); + } + + // Use LineageOutput.newBuilder() to construct. + private LineageOutput(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private LineageOutput() { + webappUri_ = ""; + recognizedInputs_ = java.util.Collections.emptyList(); + processingProgressReports_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_LineageOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_LineageOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.LineageOutput.class, + com.google.cloud.bigquery.migration.v2.LineageOutput.Builder.class); + } + + public interface RecognizedInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Output only. The type of the input. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ int getTypeValue();
+
+ /**
+ *
+ *
+ * + * Output only. The type of the input. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type getType();
+
+ /**
+ *
+ *
+ * + * Output only. The uncompressed size of the recognized input of the given + * type. + *+ * + *
int64 uncompressed_size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The uncompressedSizeBytes.
+ */
+ long getUncompressedSizeBytes();
+ }
+
+ /**
+ *
+ *
+ * + * Information about lineage input of the given type that lineage generation + * recognized. + * + * If you expected to process more of the given input, verify your input was + * uploaded and is in the correct format and the request to generate lineage + * correctly specified the input location. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput} + */ + public static final class RecognizedInput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput) + RecognizedInputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RecognizedInput"); + } + + // Use RecognizedInput.newBuilder() to construct. + private RecognizedInput(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private RecognizedInput() { + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_LineageOutput_RecognizedInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_LineageOutput_RecognizedInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.class, + com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Builder.class); + } + + /** + * + * + *
+ * Input type recognized by the lineage processing. + *+ * + * Protobuf enum {@code google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * The type is not specified. + *+ * + *
TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The input is metadata. + *+ * + *
METADATA = 1;
+ */
+ METADATA(1),
+ /**
+ *
+ *
+ * + * The input is a query log. + *+ * + *
QUERY_LOG = 2;
+ */
+ QUERY_LOG(2),
+ /**
+ *
+ *
+ * + * The input is a SQL script. + *+ * + *
SCRIPT = 3;
+ */
+ SCRIPT(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "Type");
+ }
+
+ /**
+ *
+ *
+ * + * The type is not specified. + *+ * + *
TYPE_UNSPECIFIED = 0;
+ */
+ public static final int TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * The input is metadata. + *+ * + *
METADATA = 1;
+ */
+ public static final int METADATA_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * The input is a query log. + *+ * + *
QUERY_LOG = 2;
+ */
+ public static final int QUERY_LOG_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * The input is a SQL script. + *+ * + *
SCRIPT = 3;
+ */
+ public static final int SCRIPT_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Type valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Type forNumber(int value) {
+ switch (value) {
+ case 0:
+ return TYPE_UNSPECIFIED;
+ case 1:
+ return METADATA;
+ case 2:
+ return QUERY_LOG;
+ case 3:
+ return SCRIPT;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Output only. The type of the input. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The type of the input. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type getType() {
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type result =
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type.forNumber(
+ type_);
+ return result == null
+ ? com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int UNCOMPRESSED_SIZE_BYTES_FIELD_NUMBER = 2;
+ private long uncompressedSizeBytes_ = 0L;
+
+ /**
+ *
+ *
+ * + * Output only. The uncompressed size of the recognized input of the given + * type. + *+ * + *
int64 uncompressed_size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The uncompressedSizeBytes.
+ */
+ @java.lang.Override
+ public long getUncompressedSizeBytes() {
+ return uncompressedSizeBytes_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (type_
+ != com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type
+ .TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, type_);
+ }
+ if (uncompressedSizeBytes_ != 0L) {
+ output.writeInt64(2, uncompressedSizeBytes_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (type_
+ != com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type
+ .TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
+ }
+ if (uncompressedSizeBytes_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, uncompressedSizeBytes_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput other =
+ (com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput) obj;
+
+ if (type_ != other.type_) return false;
+ if (getUncompressedSizeBytes() != other.getUncompressedSizeBytes()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ hash = (37 * hash) + UNCOMPRESSED_SIZE_BYTES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUncompressedSizeBytes());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Information about lineage input of the given type that lineage generation + * recognized. + * + * If you expected to process more of the given input, verify your input was + * uploaded and is in the correct format and the request to generate lineage + * correctly specified the input location. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The type of the input. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The type of the input. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeValue(int value) {
+ type_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The type of the input. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type getType() {
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type result =
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type.forNumber(
+ type_);
+ return result == null
+ ? com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The type of the input. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The type of the input. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private long uncompressedSizeBytes_;
+
+ /**
+ *
+ *
+ * + * Output only. The uncompressed size of the recognized input of the given + * type. + *+ * + *
int64 uncompressed_size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The uncompressedSizeBytes.
+ */
+ @java.lang.Override
+ public long getUncompressedSizeBytes() {
+ return uncompressedSizeBytes_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The uncompressed size of the recognized input of the given + * type. + *+ * + *
int64 uncompressed_size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The uncompressedSizeBytes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUncompressedSizeBytes(long value) {
+
+ uncompressedSizeBytes_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The uncompressed size of the recognized input of the given + * type. + *+ * + *
int64 uncompressed_size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUncompressedSizeBytes() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ uncompressedSizeBytes_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput)
+ private static final com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput();
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Output only. The processing stage this progress report describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage processing_stage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for processingStage.
+ */
+ int getProcessingStageValue();
+
+ /**
+ *
+ *
+ * + * Output only. The processing stage this progress report describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage processing_stage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The processingStage.
+ */
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage
+ getProcessingStage();
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List+ * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ getWorkSummaries(int index);
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getWorkSummariesCount();
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ .WorkSummaryOrBuilder>
+ getWorkSummariesOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummaryOrBuilder
+ getWorkSummariesOrBuilder(int index);
+ }
+
+ /**
+ *
+ *
+ * + * Breaks down processing progress of work. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport} + */ + public static final class ProgressReport extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport) + ProgressReportOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ProgressReport"); + } + + // Use ProgressReport.newBuilder() to construct. + private ProgressReport(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ProgressReport() { + processingStage_ = 0; + workSummaries_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.class, + com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.Builder.class); + } + + /** + * + * + *
+ * The processing stage the progress report describes. + *+ * + * Protobuf enum {@code + * google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage} + */ + public enum ProcessingStage implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * The stage is not specified. + *+ * + *
PROCESSING_STAGE_UNSPECIFIED = 0;
+ */
+ PROCESSING_STAGE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The input ingestion stage. + *+ * + *
INPUT_INGESTION = 1000;
+ */
+ INPUT_INGESTION(1000),
+ /**
+ *
+ *
+ * + * The lineage DB postprocessing stage. + *+ * + *
POSTPROCESSING = 2000;
+ */
+ POSTPROCESSING(2000),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "ProcessingStage");
+ }
+
+ /**
+ *
+ *
+ * + * The stage is not specified. + *+ * + *
PROCESSING_STAGE_UNSPECIFIED = 0;
+ */
+ public static final int PROCESSING_STAGE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * The input ingestion stage. + *+ * + *
INPUT_INGESTION = 1000;
+ */
+ public static final int INPUT_INGESTION_VALUE = 1000;
+
+ /**
+ *
+ *
+ * + * The lineage DB postprocessing stage. + *+ * + *
POSTPROCESSING = 2000;
+ */
+ public static final int POSTPROCESSING_VALUE = 2000;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ProcessingStage valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static ProcessingStage forNumber(int value) {
+ switch (value) {
+ case 0:
+ return PROCESSING_STAGE_UNSPECIFIED;
+ case 1000:
+ return INPUT_INGESTION;
+ case 2000:
+ return POSTPROCESSING;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Output only. The state of the work this summary describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+
+ /**
+ *
+ *
+ * + * Output only. The state of the work this summary describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State
+ getState();
+
+ /**
+ *
+ *
+ * + * Output only. Size of the work in the given State. + * + * Size counts "units of work". Units represent arbitrary division of + * work; there's no expectation each unit takes similar time to process. + *+ * + *
int64 size = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The size.
+ */
+ long getSize();
+
+ /**
+ *
+ *
+ * + * Output only. Human-readable comment. + *+ * + *
string comment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The comment.
+ */
+ java.lang.String getComment();
+
+ /**
+ *
+ *
+ * + * Output only. Human-readable comment. + *+ * + *
string comment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for comment.
+ */
+ com.google.protobuf.ByteString getCommentBytes();
+ }
+
+ /**
+ *
+ *
+ * + * Summary of work in the given state. + *+ * + * Protobuf type {@code + * google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary} + */ + public static final class WorkSummary extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary) + WorkSummaryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "WorkSummary"); + } + + // Use WorkSummary.newBuilder() to construct. + private WorkSummary(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private WorkSummary() { + state_ = 0; + comment_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_WorkSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_WorkSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary + .class, + com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary + .Builder.class); + } + + /** + * + * + *
+ * States of work. Each piece of work is in exactly one state. + * [SUCCEEDED], [FAILED] and [SKIPPED] are terminal states; work in the + * [IN_PROGRESS] will eventually transition to one of the terminal states. + *+ * + * Protobuf enum {@code + * google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * The state is not specified. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ STATE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Work that was processed successfully. + *+ * + *
SUCCEEDED = 1;
+ */
+ SUCCEEDED(1),
+ /**
+ *
+ *
+ * + * Work that failed processing. + *+ * + *
FAILED = 2;
+ */
+ FAILED(2),
+ /**
+ *
+ *
+ * + * Work that is currently being processed or queued for processing. + *+ * + *
IN_PROGRESS = 3;
+ */
+ IN_PROGRESS(3),
+ /**
+ *
+ *
+ * + * Work that was recognised as necessary to fully process inputs but was + * skipped due to system limitations. + *+ * + *
SKIPPED = 4;
+ */
+ SKIPPED(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "State");
+ }
+
+ /**
+ *
+ *
+ * + * The state is not specified. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ public static final int STATE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Work that was processed successfully. + *+ * + *
SUCCEEDED = 1;
+ */
+ public static final int SUCCEEDED_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Work that failed processing. + *+ * + *
FAILED = 2;
+ */
+ public static final int FAILED_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * Work that is currently being processed or queued for processing. + *+ * + *
IN_PROGRESS = 3;
+ */
+ public static final int IN_PROGRESS_VALUE = 3;
+
+ /**
+ *
+ *
+ * + * Work that was recognised as necessary to fully process inputs but was + * skipped due to system limitations. + *+ * + *
SKIPPED = 4;
+ */
+ public static final int SKIPPED_VALUE = 4;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static State valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static State forNumber(int value) {
+ switch (value) {
+ case 0:
+ return STATE_UNSPECIFIED;
+ case 1:
+ return SUCCEEDED;
+ case 2:
+ return FAILED;
+ case 3:
+ return IN_PROGRESS;
+ case 4:
+ return SKIPPED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Output only. The state of the work this summary describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The state of the work this summary describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State
+ getState() {
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State
+ result =
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ .State.forNumber(state_);
+ return result == null
+ ? com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State
+ .UNRECOGNIZED
+ : result;
+ }
+
+ public static final int SIZE_FIELD_NUMBER = 2;
+ private long size_ = 0L;
+
+ /**
+ *
+ *
+ * + * Output only. Size of the work in the given State. + * + * Size counts "units of work". Units represent arbitrary division of + * work; there's no expectation each unit takes similar time to process. + *+ * + *
int64 size = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The size.
+ */
+ @java.lang.Override
+ public long getSize() {
+ return size_;
+ }
+
+ public static final int COMMENT_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object comment_ = "";
+
+ /**
+ *
+ *
+ * + * Output only. Human-readable comment. + *+ * + *
string comment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The comment.
+ */
+ @java.lang.Override
+ public java.lang.String getComment() {
+ java.lang.Object ref = comment_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ comment_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Human-readable comment. + *+ * + *
string comment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for comment.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCommentBytes() {
+ java.lang.Object ref = comment_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ comment_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (state_
+ != com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State
+ .STATE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, state_);
+ }
+ if (size_ != 0L) {
+ output.writeInt64(2, size_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(comment_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, comment_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (state_
+ != com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State
+ .STATE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
+ }
+ if (size_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, size_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(comment_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, comment_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary other =
+ (com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary) obj;
+
+ if (state_ != other.state_) return false;
+ if (getSize() != other.getSize()) return false;
+ if (!getComment().equals(other.getComment())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ hash = (37 * hash) + SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSize());
+ hash = (37 * hash) + COMMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getComment().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Summary of work in the given state. + *+ * + * Protobuf type {@code + * google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The state of the work this summary describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The state of the work this summary describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The state of the work this summary describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State
+ getState() {
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State
+ result =
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ .State.forNumber(state_);
+ return result == null
+ ? com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ .State.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The state of the work this summary describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The state of the work this summary describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private long size_;
+
+ /**
+ *
+ *
+ * + * Output only. Size of the work in the given State. + * + * Size counts "units of work". Units represent arbitrary division of + * work; there's no expectation each unit takes similar time to process. + *+ * + *
int64 size = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The size.
+ */
+ @java.lang.Override
+ public long getSize() {
+ return size_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Size of the work in the given State. + * + * Size counts "units of work". Units represent arbitrary division of + * work; there's no expectation each unit takes similar time to process. + *+ * + *
int64 size = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The size to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSize(long value) {
+
+ size_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Size of the work in the given State. + * + * Size counts "units of work". Units represent arbitrary division of + * work; there's no expectation each unit takes similar time to process. + *+ * + *
int64 size = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSize() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ size_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object comment_ = "";
+
+ /**
+ *
+ *
+ * + * Output only. Human-readable comment. + *+ * + *
string comment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The comment.
+ */
+ public java.lang.String getComment() {
+ java.lang.Object ref = comment_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ comment_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Human-readable comment. + *+ * + *
string comment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for comment.
+ */
+ public com.google.protobuf.ByteString getCommentBytes() {
+ java.lang.Object ref = comment_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ comment_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Human-readable comment. + *+ * + *
string comment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The comment to set.
+ * @return This builder for chaining.
+ */
+ public Builder setComment(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ comment_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Human-readable comment. + *+ * + *
string comment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearComment() {
+ comment_ = getDefaultInstance().getComment();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Human-readable comment. + *+ * + *
string comment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for comment to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCommentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ comment_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary)
+ private static final com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ .WorkSummary
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary();
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Output only. The processing stage this progress report describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage processing_stage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for processingStage.
+ */
+ @java.lang.Override
+ public int getProcessingStageValue() {
+ return processingStage_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The processing stage this progress report describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage processing_stage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The processingStage.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage
+ getProcessingStage() {
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage result =
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage
+ .forNumber(processingStage_);
+ return result == null
+ ? com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage
+ .UNRECOGNIZED
+ : result;
+ }
+
+ public static final int WORK_SUMMARIES_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary>
+ workSummaries_;
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary>
+ getWorkSummariesList() {
+ return workSummaries_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ .WorkSummaryOrBuilder>
+ getWorkSummariesOrBuilderList() {
+ return workSummaries_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getWorkSummariesCount() {
+ return workSummaries_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ getWorkSummaries(int index) {
+ return workSummaries_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummaryOrBuilder
+ getWorkSummariesOrBuilder(int index) {
+ return workSummaries_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (processingStage_
+ != com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage
+ .PROCESSING_STAGE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, processingStage_);
+ }
+ for (int i = 0; i < workSummaries_.size(); i++) {
+ output.writeMessage(2, workSummaries_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (processingStage_
+ != com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage
+ .PROCESSING_STAGE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, processingStage_);
+ }
+ for (int i = 0; i < workSummaries_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, workSummaries_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport other =
+ (com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport) obj;
+
+ if (processingStage_ != other.processingStage_) return false;
+ if (!getWorkSummariesList().equals(other.getWorkSummariesList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PROCESSING_STAGE_FIELD_NUMBER;
+ hash = (53 * hash) + processingStage_;
+ if (getWorkSummariesCount() > 0) {
+ hash = (37 * hash) + WORK_SUMMARIES_FIELD_NUMBER;
+ hash = (53 * hash) + getWorkSummariesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Breaks down processing progress of work. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The processing stage this progress report describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage processing_stage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for processingStage.
+ */
+ @java.lang.Override
+ public int getProcessingStageValue() {
+ return processingStage_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The processing stage this progress report describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage processing_stage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for processingStage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProcessingStageValue(int value) {
+ processingStage_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The processing stage this progress report describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage processing_stage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The processingStage.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage
+ getProcessingStage() {
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage result =
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage
+ .forNumber(processingStage_);
+ return result == null
+ ? com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage
+ .UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The processing stage this progress report describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage processing_stage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The processingStage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProcessingStage(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ processingStage_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The processing stage this progress report describes. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStage processing_stage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProcessingStage() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ processingStage_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary>
+ workSummaries_ = java.util.Collections.emptyList();
+
+ private void ensureWorkSummariesIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ workSummaries_ =
+ new java.util.ArrayList<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary>(
+ workSummaries_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ .Builder,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ .WorkSummaryOrBuilder>
+ workSummariesBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary>
+ getWorkSummariesList() {
+ if (workSummariesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(workSummaries_);
+ } else {
+ return workSummariesBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getWorkSummariesCount() {
+ if (workSummariesBuilder_ == null) {
+ return workSummaries_.size();
+ } else {
+ return workSummariesBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ getWorkSummaries(int index) {
+ if (workSummariesBuilder_ == null) {
+ return workSummaries_.get(index);
+ } else {
+ return workSummariesBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setWorkSummaries(
+ int index,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary value) {
+ if (workSummariesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWorkSummariesIsMutable();
+ workSummaries_.set(index, value);
+ onChanged();
+ } else {
+ workSummariesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setWorkSummaries(
+ int index,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.Builder
+ builderForValue) {
+ if (workSummariesBuilder_ == null) {
+ ensureWorkSummariesIsMutable();
+ workSummaries_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ workSummariesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addWorkSummaries(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary value) {
+ if (workSummariesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWorkSummariesIsMutable();
+ workSummaries_.add(value);
+ onChanged();
+ } else {
+ workSummariesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addWorkSummaries(
+ int index,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary value) {
+ if (workSummariesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWorkSummariesIsMutable();
+ workSummaries_.add(index, value);
+ onChanged();
+ } else {
+ workSummariesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addWorkSummaries(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.Builder
+ builderForValue) {
+ if (workSummariesBuilder_ == null) {
+ ensureWorkSummariesIsMutable();
+ workSummaries_.add(builderForValue.build());
+ onChanged();
+ } else {
+ workSummariesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addWorkSummaries(
+ int index,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.Builder
+ builderForValue) {
+ if (workSummariesBuilder_ == null) {
+ ensureWorkSummariesIsMutable();
+ workSummaries_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ workSummariesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllWorkSummaries(
+ java.lang.Iterable<
+ ? extends
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ .WorkSummary>
+ values) {
+ if (workSummariesBuilder_ == null) {
+ ensureWorkSummariesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workSummaries_);
+ onChanged();
+ } else {
+ workSummariesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearWorkSummaries() {
+ if (workSummariesBuilder_ == null) {
+ workSummaries_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ workSummariesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeWorkSummaries(int index) {
+ if (workSummariesBuilder_ == null) {
+ ensureWorkSummariesIsMutable();
+ workSummaries_.remove(index);
+ onChanged();
+ } else {
+ workSummariesBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.Builder
+ getWorkSummariesBuilder(int index) {
+ return internalGetWorkSummariesFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ .WorkSummaryOrBuilder
+ getWorkSummariesOrBuilder(int index) {
+ if (workSummariesBuilder_ == null) {
+ return workSummaries_.get(index);
+ } else {
+ return workSummariesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ .WorkSummaryOrBuilder>
+ getWorkSummariesOrBuilderList() {
+ if (workSummariesBuilder_ != null) {
+ return workSummariesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(workSummaries_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.Builder
+ addWorkSummariesBuilder() {
+ return internalGetWorkSummariesFieldBuilder()
+ .addBuilder(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary.Builder
+ addWorkSummariesBuilder(int index) {
+ return internalGetWorkSummariesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Summaries of work broken up by the state of the work. Each + * work summary describes how much work is in the given state. + * + * To get numbers for the total work covered, aggregate the numbers from all + * summaries. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary work_summaries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ .Builder>
+ getWorkSummariesBuilderList() {
+ return internalGetWorkSummariesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ .Builder,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ .WorkSummaryOrBuilder>
+ internalGetWorkSummariesFieldBuilder() {
+ if (workSummariesBuilder_ == null) {
+ workSummariesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.WorkSummary
+ .Builder,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ .WorkSummaryOrBuilder>(
+ workSummaries_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ workSummaries_ = null;
+ }
+ return workSummariesBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport)
+ private static final com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport();
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The URI of the webapp that visualizes the lineage. + * The user needs the `bigquerymigration.googleapis.com/lineageDbs.query` IAM + * permission to use the webapp. + *+ * + *
string webapp_uri = 1;
+ *
+ * @return The webappUri.
+ */
+ @java.lang.Override
+ public java.lang.String getWebappUri() {
+ java.lang.Object ref = webappUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ webappUri_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The URI of the webapp that visualizes the lineage. + * The user needs the `bigquerymigration.googleapis.com/lineageDbs.query` IAM + * permission to use the webapp. + *+ * + *
string webapp_uri = 1;
+ *
+ * @return The bytes for webappUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getWebappUriBytes() {
+ java.lang.Object ref = webappUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ webappUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RECOGNIZED_INPUTS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInputOrBuilder>
+ getRecognizedInputsOrBuilderList() {
+ return recognizedInputs_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getRecognizedInputsCount() {
+ return recognizedInputs_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput getRecognizedInputs(
+ int index) {
+ return recognizedInputs_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInputOrBuilder
+ getRecognizedInputsOrBuilder(int index) {
+ return recognizedInputs_.get(index);
+ }
+
+ public static final int PROCESSING_PROGRESS_REPORTS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReportOrBuilder>
+ getProcessingProgressReportsOrBuilderList() {
+ return processingProgressReports_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getProcessingProgressReportsCount() {
+ return processingProgressReports_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ getProcessingProgressReports(int index) {
+ return processingProgressReports_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReportOrBuilder
+ getProcessingProgressReportsOrBuilder(int index) {
+ return processingProgressReports_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(webappUri_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, webappUri_);
+ }
+ for (int i = 0; i < recognizedInputs_.size(); i++) {
+ output.writeMessage(2, recognizedInputs_.get(i));
+ }
+ for (int i = 0; i < processingProgressReports_.size(); i++) {
+ output.writeMessage(3, processingProgressReports_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(webappUri_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, webappUri_);
+ }
+ for (int i = 0; i < recognizedInputs_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, recognizedInputs_.get(i));
+ }
+ for (int i = 0; i < processingProgressReports_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, processingProgressReports_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.bigquery.migration.v2.LineageOutput)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.migration.v2.LineageOutput other =
+ (com.google.cloud.bigquery.migration.v2.LineageOutput) obj;
+
+ if (!getWebappUri().equals(other.getWebappUri())) return false;
+ if (!getRecognizedInputsList().equals(other.getRecognizedInputsList())) return false;
+ if (!getProcessingProgressReportsList().equals(other.getProcessingProgressReportsList()))
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + WEBAPP_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getWebappUri().hashCode();
+ if (getRecognizedInputsCount() > 0) {
+ hash = (37 * hash) + RECOGNIZED_INPUTS_FIELD_NUMBER;
+ hash = (53 * hash) + getRecognizedInputsList().hashCode();
+ }
+ if (getProcessingProgressReportsCount() > 0) {
+ hash = (37 * hash) + PROCESSING_PROGRESS_REPORTS_FIELD_NUMBER;
+ hash = (53 * hash) + getProcessingProgressReportsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.LineageOutput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * The output of a task with output type "LINEAGE". + * + * Actual generated lineage can be queried separately (see + * [webapp_uri][google.cloud.bigquery.migration.v2.LineageOutput.webapp_uri]), + * this message contains only metadata: processing status, errors, etc. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.LineageOutput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The URI of the webapp that visualizes the lineage. + * The user needs the `bigquerymigration.googleapis.com/lineageDbs.query` IAM + * permission to use the webapp. + *+ * + *
string webapp_uri = 1;
+ *
+ * @return The webappUri.
+ */
+ public java.lang.String getWebappUri() {
+ java.lang.Object ref = webappUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ webappUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The URI of the webapp that visualizes the lineage. + * The user needs the `bigquerymigration.googleapis.com/lineageDbs.query` IAM + * permission to use the webapp. + *+ * + *
string webapp_uri = 1;
+ *
+ * @return The bytes for webappUri.
+ */
+ public com.google.protobuf.ByteString getWebappUriBytes() {
+ java.lang.Object ref = webappUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ webappUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The URI of the webapp that visualizes the lineage. + * The user needs the `bigquerymigration.googleapis.com/lineageDbs.query` IAM + * permission to use the webapp. + *+ * + *
string webapp_uri = 1;
+ *
+ * @param value The webappUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWebappUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ webappUri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The URI of the webapp that visualizes the lineage. + * The user needs the `bigquerymigration.googleapis.com/lineageDbs.query` IAM + * permission to use the webapp. + *+ * + *
string webapp_uri = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearWebappUri() {
+ webappUri_ = getDefaultInstance().getWebappUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The URI of the webapp that visualizes the lineage. + * The user needs the `bigquerymigration.googleapis.com/lineageDbs.query` IAM + * permission to use the webapp. + *+ * + *
string webapp_uri = 1;
+ *
+ * @param value The bytes for webappUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWebappUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ webappUri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getRecognizedInputsCount() {
+ if (recognizedInputsBuilder_ == null) {
+ return recognizedInputs_.size();
+ } else {
+ return recognizedInputsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput getRecognizedInputs(
+ int index) {
+ if (recognizedInputsBuilder_ == null) {
+ return recognizedInputs_.get(index);
+ } else {
+ return recognizedInputsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setRecognizedInputs(
+ int index, com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput value) {
+ if (recognizedInputsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRecognizedInputsIsMutable();
+ recognizedInputs_.set(index, value);
+ onChanged();
+ } else {
+ recognizedInputsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setRecognizedInputs(
+ int index,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Builder
+ builderForValue) {
+ if (recognizedInputsBuilder_ == null) {
+ ensureRecognizedInputsIsMutable();
+ recognizedInputs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ recognizedInputsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addRecognizedInputs(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput value) {
+ if (recognizedInputsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRecognizedInputsIsMutable();
+ recognizedInputs_.add(value);
+ onChanged();
+ } else {
+ recognizedInputsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addRecognizedInputs(
+ int index, com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput value) {
+ if (recognizedInputsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRecognizedInputsIsMutable();
+ recognizedInputs_.add(index, value);
+ onChanged();
+ } else {
+ recognizedInputsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addRecognizedInputs(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Builder
+ builderForValue) {
+ if (recognizedInputsBuilder_ == null) {
+ ensureRecognizedInputsIsMutable();
+ recognizedInputs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ recognizedInputsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addRecognizedInputs(
+ int index,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Builder
+ builderForValue) {
+ if (recognizedInputsBuilder_ == null) {
+ ensureRecognizedInputsIsMutable();
+ recognizedInputs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ recognizedInputsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllRecognizedInputs(
+ java.lang.Iterable<
+ ? extends com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput>
+ values) {
+ if (recognizedInputsBuilder_ == null) {
+ ensureRecognizedInputsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recognizedInputs_);
+ onChanged();
+ } else {
+ recognizedInputsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearRecognizedInputs() {
+ if (recognizedInputsBuilder_ == null) {
+ recognizedInputs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ recognizedInputsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeRecognizedInputs(int index) {
+ if (recognizedInputsBuilder_ == null) {
+ ensureRecognizedInputsIsMutable();
+ recognizedInputs_.remove(index);
+ onChanged();
+ } else {
+ recognizedInputsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Builder
+ getRecognizedInputsBuilder(int index) {
+ return internalGetRecognizedInputsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInputOrBuilder
+ getRecognizedInputsOrBuilder(int index) {
+ if (recognizedInputsBuilder_ == null) {
+ return recognizedInputs_.get(index);
+ } else {
+ return recognizedInputsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInputOrBuilder>
+ getRecognizedInputsOrBuilderList() {
+ if (recognizedInputsBuilder_ != null) {
+ return recognizedInputsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(recognizedInputs_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Builder
+ addRecognizedInputsBuilder() {
+ return internalGetRecognizedInputsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Builder
+ addRecognizedInputsBuilder(int index) {
+ return internalGetRecognizedInputsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Builder>
+ getRecognizedInputsBuilderList() {
+ return internalGetRecognizedInputsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Builder,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInputOrBuilder>
+ internalGetRecognizedInputsFieldBuilder() {
+ if (recognizedInputsBuilder_ == null) {
+ recognizedInputsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.Builder,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInputOrBuilder>(
+ recognizedInputs_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ recognizedInputs_ = null;
+ }
+ return recognizedInputsBuilder_;
+ }
+
+ private java.util.List+ * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getProcessingProgressReportsCount() {
+ if (processingProgressReportsBuilder_ == null) {
+ return processingProgressReports_.size();
+ } else {
+ return processingProgressReportsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ getProcessingProgressReports(int index) {
+ if (processingProgressReportsBuilder_ == null) {
+ return processingProgressReports_.get(index);
+ } else {
+ return processingProgressReportsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setProcessingProgressReports(
+ int index, com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport value) {
+ if (processingProgressReportsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProcessingProgressReportsIsMutable();
+ processingProgressReports_.set(index, value);
+ onChanged();
+ } else {
+ processingProgressReportsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setProcessingProgressReports(
+ int index,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.Builder
+ builderForValue) {
+ if (processingProgressReportsBuilder_ == null) {
+ ensureProcessingProgressReportsIsMutable();
+ processingProgressReports_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ processingProgressReportsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addProcessingProgressReports(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport value) {
+ if (processingProgressReportsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProcessingProgressReportsIsMutable();
+ processingProgressReports_.add(value);
+ onChanged();
+ } else {
+ processingProgressReportsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addProcessingProgressReports(
+ int index, com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport value) {
+ if (processingProgressReportsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProcessingProgressReportsIsMutable();
+ processingProgressReports_.add(index, value);
+ onChanged();
+ } else {
+ processingProgressReportsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addProcessingProgressReports(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.Builder
+ builderForValue) {
+ if (processingProgressReportsBuilder_ == null) {
+ ensureProcessingProgressReportsIsMutable();
+ processingProgressReports_.add(builderForValue.build());
+ onChanged();
+ } else {
+ processingProgressReportsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addProcessingProgressReports(
+ int index,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.Builder
+ builderForValue) {
+ if (processingProgressReportsBuilder_ == null) {
+ ensureProcessingProgressReportsIsMutable();
+ processingProgressReports_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ processingProgressReportsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllProcessingProgressReports(
+ java.lang.Iterable<
+ ? extends com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport>
+ values) {
+ if (processingProgressReportsBuilder_ == null) {
+ ensureProcessingProgressReportsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, processingProgressReports_);
+ onChanged();
+ } else {
+ processingProgressReportsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearProcessingProgressReports() {
+ if (processingProgressReportsBuilder_ == null) {
+ processingProgressReports_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ processingProgressReportsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeProcessingProgressReports(int index) {
+ if (processingProgressReportsBuilder_ == null) {
+ ensureProcessingProgressReportsIsMutable();
+ processingProgressReports_.remove(index);
+ onChanged();
+ } else {
+ processingProgressReportsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.Builder
+ getProcessingProgressReportsBuilder(int index) {
+ return internalGetProcessingProgressReportsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReportOrBuilder
+ getProcessingProgressReportsOrBuilder(int index) {
+ if (processingProgressReportsBuilder_ == null) {
+ return processingProgressReports_.get(index);
+ } else {
+ return processingProgressReportsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReportOrBuilder>
+ getProcessingProgressReportsOrBuilderList() {
+ if (processingProgressReportsBuilder_ != null) {
+ return processingProgressReportsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(processingProgressReports_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.Builder
+ addProcessingProgressReportsBuilder() {
+ return internalGetProcessingProgressReportsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.Builder
+ addProcessingProgressReportsBuilder(int index) {
+ return internalGetProcessingProgressReportsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.Builder>
+ getProcessingProgressReportsBuilderList() {
+ return internalGetProcessingProgressReportsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.Builder,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReportOrBuilder>
+ internalGetProcessingProgressReportsFieldBuilder() {
+ if (processingProgressReportsBuilder_ == null) {
+ processingProgressReportsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport.Builder,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReportOrBuilder>(
+ processingProgressReports_,
+ ((bitField0_ & 0x00000004) != 0),
+ getParentForChildren(),
+ isClean());
+ processingProgressReports_ = null;
+ }
+ return processingProgressReportsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.LineageOutput)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.LineageOutput)
+ private static final com.google.cloud.bigquery.migration.v2.LineageOutput DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.LineageOutput();
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.LineageOutput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The URI of the webapp that visualizes the lineage. + * The user needs the `bigquerymigration.googleapis.com/lineageDbs.query` IAM + * permission to use the webapp. + *+ * + *
string webapp_uri = 1;
+ *
+ * @return The webappUri.
+ */
+ java.lang.String getWebappUri();
+
+ /**
+ *
+ *
+ * + * The URI of the webapp that visualizes the lineage. + * The user needs the `bigquerymigration.googleapis.com/lineageDbs.query` IAM + * permission to use the webapp. + *+ * + *
string webapp_uri = 1;
+ *
+ * @return The bytes for webappUri.
+ */
+ com.google.protobuf.ByteString getWebappUriBytes();
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List+ * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput getRecognizedInputs(
+ int index);
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getRecognizedInputsCount();
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInputOrBuilder>
+ getRecognizedInputsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Output only. Recognized lineage inputs. + * + * All inputs are processed only if the task succeeds and all work is in state + * [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, + * nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)). + * + * Even with all inputs processed successfully, there may be transpiler errors + * present leading to inaccurate lineage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput recognized_inputs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInputOrBuilder
+ getRecognizedInputsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List+ * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport getProcessingProgressReports(
+ int index);
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getProcessingProgressReportsCount();
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReportOrBuilder>
+ getProcessingProgressReportsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Output only. Work processing progress reports broken up by processing + * stage. + *+ * + *
+ * repeated .google.cloud.bigquery.migration.v2.LineageOutput.ProgressReport processing_progress_reports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.bigquery.migration.v2.LineageOutput.ProgressReportOrBuilder
+ getProcessingProgressReportsOrBuilder(int index);
+}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java
index ec5753dc0692..2c7d737e8057 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationEntitiesProto.java
@@ -60,10 +60,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_TaskOutputsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_TaskOutputsEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_bigquery_migration_v2_TranslationTaskResult_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_bigquery_migration_v2_TranslationTaskResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_migration_v2_TaskOutput_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_bigquery_migration_v2_TaskOutput_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_RecognizedInput_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_RecognizedInput_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_WorkSummary_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_WorkSummary_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -164,21 +188,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006PAUSED\020\005\022\026\n"
+ "\022PENDING_DEPENDENCY\020\006:\210\001\352A\204\001\n"
+ "1bigquerymigration.googleapis.com/MigrationSubtask\022Oprojects/{project}/locations/"
- + "{location}/workflows/{workflow}/subtasks/{subtask}\"~\n"
+ + "{location}/workflows/{workflow}/subtasks/{subtask}\"\302\002\n"
+ "\023MigrationTaskResult\022\\\n"
- + "\027translation_task_result\030\002 \001(\01329.google.clou"
- + "d.bigquery.migration.v2.TranslationTaskResultH\000B\t\n"
+ + "\027translation_task_result\030\002 \001(\01329.google.clo"
+ + "ud.bigquery.migration.v2.TranslationTaskResultH\000\022^\n"
+ + "\014task_outputs\030\003 \003(\0132H.google."
+ + "cloud.bigquery.migration.v2.MigrationTaskResult.TaskOutputsEntry\032b\n"
+ + "\020TaskOutputsEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022=\n"
+ + "\005value\030\002 \001(\0132..google.cloud.bigquery.migration.v2.TaskOutput:\0028\001B"
+ + "\t\n"
+ "\007details\"\314\001\n"
+ "\025TranslationTaskResult\022H\n"
- + "\023translated_literals\030\001 \003(\0132+.goog"
- + "le.cloud.bigquery.migration.v2.Literal\022T\n"
- + "\023report_log_messages\030\002 \003(\01327.google.clo"
- + "ud.bigquery.migration.v2.GcsReportLogMessage\022\023\n"
- + "\013console_uri\030\003 \001(\tB\322\001\n"
- + "&com.google.cloud.bigquery.migration.v2B\026MigrationE"
- + "ntitiesProtoP\001ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrati"
- + "onpb\252\002\"Google.Cloud.BigQuery.Migration.V"
- + "2\312\002\"Google\\Cloud\\BigQuery\\Migration\\V2b\006proto3"
+ + "\023translated_literals\030\001"
+ + " \003(\0132+.google.cloud.bigquery.migration.v2.Literal\022T\n"
+ + "\023report_log_messages\030\002 \003(\01327.google.cloud."
+ + "bigquery.migration.v2.GcsReportLogMessage\022\023\n"
+ + "\013console_uri\030\003 \001(\t\"\246\002\n\n"
+ + "TaskOutput\022K\n"
+ + "\016lineage_output\030\003"
+ + " \001(\01321.google.cloud.bigquery.migration.v2.LineageOutputH\000\022H\n"
+ + "\005state\030\001"
+ + " \001(\01624.google.cloud.bigquery.migration.v2.TaskOutput.StateB\003\340A\003\022/\n"
+ + "\020processing_error\030\002 \001(\0132\025.google.rpc.ErrorInfo\"F\n"
+ + "\005State\022\025\n"
+ + "\021STATE_UNSPECIFIED\020\000\022\013\n"
+ + "\007PENDING\020\001\022\r\n"
+ + "\tSUCCEEDED\020\002\022\n\n"
+ + "\006FAILED\020\003B\010\n"
+ + "\006output\"\227\010\n\r"
+ + "LineageOutput\022\022\n\n"
+ + "webapp_uri\030\001 \001(\t\022a\n"
+ + "\021recognized_inputs\030\002 \003(\0132A.google.cloud."
+ + "bigquery.migration.v2.LineageOutput.RecognizedInputB\003\340A\003\022j\n"
+ + "\033processing_progress_reports\030\003 \003(\0132@.google.cloud.bigquery.mi"
+ + "gration.v2.LineageOutput.ProgressReportB\003\340A\003\032\331\001\n"
+ + "\017RecognizedInput\022Y\n"
+ + "\004type\030\001 \001(\0162F"
+ + ".google.cloud.bigquery.migration.v2.LineageOutput.RecognizedInput.TypeB\003\340A\003\022$\n"
+ + "\027uncompressed_size_bytes\030\002 \001(\003B\003\340A\003\"E\n"
+ + "\004Type\022\024\n"
+ + "\020TYPE_UNSPECIFIED\020\000\022\014\n"
+ + "\010METADATA\020\001\022\r\n"
+ + "\tQUERY_LOG\020\002\022\n\n"
+ + "\006SCRIPT\020\003\032\306\004\n"
+ + "\016ProgressReport\022o\n"
+ + "\020processing_stage\030\001 \001(\0162P.google.c"
+ + "loud.bigquery.migration.v2.LineageOutput.ProgressReport.ProcessingStageB\003\340A\003\022i\n"
+ + "\016work_summaries\030\002 \003(\0132L.google.cloud.bigq"
+ + "uery.migration.v2.LineageOutput.ProgressReport.WorkSummaryB\003\340A\003\032\367\001\n"
+ + "\013WorkSummary\022f\n"
+ + "\005state\030\001 \001(\0162R.google.cloud.bigquery.m"
+ + "igration.v2.LineageOutput.ProgressReport.WorkSummary.StateB\003\340A\003\022\021\n"
+ + "\004size\030\002 \001(\003B\003\340A\003\022\024\n"
+ + "\007comment\030\003 \001(\tB\003\340A\003\"W\n"
+ + "\005State\022\025\n"
+ + "\021STATE_UNSPECIFIED\020\000\022\r\n"
+ + "\tSUCCEEDED\020\001\022\n\n"
+ + "\006FAILED\020\002\022\017\n"
+ + "\013IN_PROGRESS\020\003\022\013\n"
+ + "\007SKIPPED\020\004\"^\n"
+ + "\017ProcessingStage\022 \n"
+ + "\034PROCESSING_STAGE_UNSPECIFIED\020\000\022\024\n"
+ + "\017INPUT_INGESTION\020\350\007\022\023\n"
+ + "\016POSTPROCESSING\020\320\017B\322\001\n"
+ + "&com.google.cloud.bigquery.migration.v2B\026MigrationEntitiesProtoP\001ZD"
+ + "cloud.google.com/go/bigquery/migration/a"
+ + "piv2/migrationpb;migrationpb\252\002\"Google.Cl"
+ + "oud.BigQuery.Migration.V2\312\002\"Google\\Cloud\\BigQuery\\Migration\\V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -258,7 +335,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_descriptor,
new java.lang.String[] {
- "TranslationTaskResult", "Details",
+ "TranslationTaskResult", "TaskOutputs", "Details",
+ });
+ internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_TaskOutputsEntry_descriptor =
+ internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_descriptor
+ .getNestedType(0);
+ internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_TaskOutputsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_TaskOutputsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
});
internal_static_google_cloud_bigquery_migration_v2_TranslationTaskResult_descriptor =
getDescriptor().getMessageType(4);
@@ -268,6 +354,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"TranslatedLiterals", "ReportLogMessages", "ConsoleUri",
});
+ internal_static_google_cloud_bigquery_migration_v2_TaskOutput_descriptor =
+ getDescriptor().getMessageType(5);
+ internal_static_google_cloud_bigquery_migration_v2_TaskOutput_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_migration_v2_TaskOutput_descriptor,
+ new java.lang.String[] {
+ "LineageOutput", "State", "ProcessingError", "Output",
+ });
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_descriptor =
+ getDescriptor().getMessageType(6);
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_descriptor,
+ new java.lang.String[] {
+ "WebappUri", "RecognizedInputs", "ProcessingProgressReports",
+ });
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_RecognizedInput_descriptor =
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_descriptor.getNestedType(
+ 0);
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_RecognizedInput_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_RecognizedInput_descriptor,
+ new java.lang.String[] {
+ "Type", "UncompressedSizeBytes",
+ });
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_descriptor =
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_descriptor.getNestedType(
+ 1);
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_descriptor,
+ new java.lang.String[] {
+ "ProcessingStage", "WorkSummaries",
+ });
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_WorkSummary_descriptor =
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_descriptor
+ .getNestedType(0);
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_WorkSummary_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_migration_v2_LineageOutput_ProgressReport_WorkSummary_descriptor,
+ new java.lang.String[] {
+ "State", "Size", "Comment",
+ });
descriptor.resolveAllFeaturesImmutable();
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskResult.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskResult.java
index f56914091455..2b5cd4ba5c82 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskResult.java
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationTaskResult.java
@@ -58,6 +58,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.internal_static_google_cloud_bigquery_migration_v2_MigrationTaskResult_descriptor;
}
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 3:
+ return internalGetTaskOutputs();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -173,6 +185,130 @@ public com.google.cloud.bigquery.migration.v2.TranslationTaskResult getTranslati
return com.google.cloud.bigquery.migration.v2.TranslationTaskResult.getDefaultInstance();
}
+ public static final int TASK_OUTPUTS_FIELD_NUMBER = 3;
+
+ private static final class TaskOutputsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, com.google.cloud.bigquery.migration.v2.TaskOutput>
+ defaultEntry =
+ com.google.protobuf.MapEntry
+ .+ * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ @java.lang.Override
+ public boolean containsTaskOutputs(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetTaskOutputs().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getTaskOutputsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.Map+ * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.cloud.bigquery.migration.v2.TaskOutput getTaskOutputsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.bigquery.migration.v2.TaskOutput defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.TaskOutput getTaskOutputsOrThrow(
+ java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ @java.lang.Override
+ public boolean containsTaskOutputs(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetTaskOutputs().ensureBuilderMap().containsKey(key);
+ }
+
+ /** Use {@link #getTaskOutputsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.Map+ * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.cloud.bigquery.migration.v2.TaskOutput getTaskOutputsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.bigquery.migration.v2.TaskOutput defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.TaskOutput getTaskOutputsOrThrow(
+ java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ public Builder removeTaskOutputs(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableTaskOutputs().ensureBuilderMap().remove(key);
+ return this;
+ }
+
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ public Builder putTaskOutputs(
+ java.lang.String key, com.google.cloud.bigquery.migration.v2.TaskOutput value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableTaskOutputs().ensureBuilderMap().put(key, value);
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ public Builder putAllTaskOutputs(
+ java.util.Map+ * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ public com.google.cloud.bigquery.migration.v2.TaskOutput.Builder putTaskOutputsBuilderIfAbsent(
+ java.lang.String key) {
+ java.util.Map+ * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ int getTaskOutputsCount();
+
+ /**
+ *
+ *
+ * + * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ boolean containsTaskOutputs(java.lang.String key);
+
+ /** Use {@link #getTaskOutputsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ java.util.Map+ * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ /* nullable */
+ com.google.cloud.bigquery.migration.v2.TaskOutput getTaskOutputsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.cloud.bigquery.migration.v2.TaskOutput defaultValue);
+
+ /**
+ *
+ *
+ * + * The map of task output types to the task outputs, e.g. "LINEAGE". + *+ * + *
map<string, .google.cloud.bigquery.migration.v2.TaskOutput> task_outputs = 3;
+ *
+ */
+ com.google.cloud.bigquery.migration.v2.TaskOutput getTaskOutputsOrThrow(java.lang.String key);
+
com.google.cloud.bigquery.migration.v2.MigrationTaskResult.DetailsCase getDetailsCase();
}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TaskOutput.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TaskOutput.java
new file mode 100644
index 000000000000..409f7604ce5b
--- /dev/null
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/TaskOutput.java
@@ -0,0 +1,1476 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/bigquery/migration/v2/migration_entities.proto
+// Protobuf Java Version: 4.33.6
+
+package com.google.cloud.bigquery.migration.v2;
+
+/**
+ *
+ *
+ * + * The task output for a task type including the status and any errors. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.TaskOutput} + */ +@com.google.protobuf.Generated +public final class TaskOutput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.migration.v2.TaskOutput) + TaskOutputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "TaskOutput"); + } + + // Use TaskOutput.newBuilder() to construct. + private TaskOutput(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private TaskOutput() { + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_TaskOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.migration.v2.MigrationEntitiesProto + .internal_static_google_cloud_bigquery_migration_v2_TaskOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.migration.v2.TaskOutput.class, + com.google.cloud.bigquery.migration.v2.TaskOutput.Builder.class); + } + + /** + * + * + *
+ * Possible task output states. + *+ * + * Protobuf enum {@code google.cloud.bigquery.migration.v2.TaskOutput.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Task output state is unspecified. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ STATE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Task output is pending. + *+ * + *
PENDING = 1;
+ */
+ PENDING(1),
+ /**
+ *
+ *
+ * + * Task output is succeeded. + *+ * + *
SUCCEEDED = 2;
+ */
+ SUCCEEDED(2),
+ /**
+ *
+ *
+ * + * Task output is failed. This does not mean that there is no useful + * information in the output; partial outputs or failure details may be + * available. + *+ * + *
FAILED = 3;
+ */
+ FAILED(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "State");
+ }
+
+ /**
+ *
+ *
+ * + * Task output state is unspecified. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ public static final int STATE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Task output is pending. + *+ * + *
PENDING = 1;
+ */
+ public static final int PENDING_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * Task output is succeeded. + *+ * + *
SUCCEEDED = 2;
+ */
+ public static final int SUCCEEDED_VALUE = 2;
+
+ /**
+ *
+ *
+ * + * Task output is failed. This does not mean that there is no useful + * information in the output; partial outputs or failure details may be + * available. + *+ * + *
FAILED = 3;
+ */
+ public static final int FAILED_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static State valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static State forNumber(int value) {
+ switch (value) {
+ case 0:
+ return STATE_UNSPECIFIED;
+ case 1:
+ return PENDING;
+ case 2:
+ return SUCCEEDED;
+ case 3:
+ return FAILED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ *
+ * @return Whether the lineageOutput field is set.
+ */
+ @java.lang.Override
+ public boolean hasLineageOutput() {
+ return outputCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ * + * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ *
+ * @return The lineageOutput.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutput getLineageOutput() {
+ if (outputCase_ == 3) {
+ return (com.google.cloud.bigquery.migration.v2.LineageOutput) output_;
+ }
+ return com.google.cloud.bigquery.migration.v2.LineageOutput.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ * + * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutputOrBuilder getLineageOutputOrBuilder() {
+ if (outputCase_ == 3) {
+ return (com.google.cloud.bigquery.migration.v2.LineageOutput) output_;
+ }
+ return com.google.cloud.bigquery.migration.v2.LineageOutput.getDefaultInstance();
+ }
+
+ public static final int STATE_FIELD_NUMBER = 1;
+ private int state_ = 0;
+
+ /**
+ *
+ *
+ * + * Output only. The current state of the task output. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.TaskOutput.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current state of the task output. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.TaskOutput.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.TaskOutput.State getState() {
+ com.google.cloud.bigquery.migration.v2.TaskOutput.State result =
+ com.google.cloud.bigquery.migration.v2.TaskOutput.State.forNumber(state_);
+ return result == null
+ ? com.google.cloud.bigquery.migration.v2.TaskOutput.State.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int PROCESSING_ERROR_FIELD_NUMBER = 2;
+ private com.google.rpc.ErrorInfo processingError_;
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ *
+ * @return Whether the processingError field is set.
+ */
+ @java.lang.Override
+ public boolean hasProcessingError() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ *
+ * @return The processingError.
+ */
+ @java.lang.Override
+ public com.google.rpc.ErrorInfo getProcessingError() {
+ return processingError_ == null
+ ? com.google.rpc.ErrorInfo.getDefaultInstance()
+ : processingError_;
+ }
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ */
+ @java.lang.Override
+ public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() {
+ return processingError_ == null
+ ? com.google.rpc.ErrorInfo.getDefaultInstance()
+ : processingError_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (state_
+ != com.google.cloud.bigquery.migration.v2.TaskOutput.State.STATE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(1, state_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getProcessingError());
+ }
+ if (outputCase_ == 3) {
+ output.writeMessage(3, (com.google.cloud.bigquery.migration.v2.LineageOutput) output_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (state_
+ != com.google.cloud.bigquery.migration.v2.TaskOutput.State.STATE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProcessingError());
+ }
+ if (outputCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.cloud.bigquery.migration.v2.LineageOutput) output_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.bigquery.migration.v2.TaskOutput)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.migration.v2.TaskOutput other =
+ (com.google.cloud.bigquery.migration.v2.TaskOutput) obj;
+
+ if (state_ != other.state_) return false;
+ if (hasProcessingError() != other.hasProcessingError()) return false;
+ if (hasProcessingError()) {
+ if (!getProcessingError().equals(other.getProcessingError())) return false;
+ }
+ if (!getOutputCase().equals(other.getOutputCase())) return false;
+ switch (outputCase_) {
+ case 3:
+ if (!getLineageOutput().equals(other.getLineageOutput())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ if (hasProcessingError()) {
+ hash = (37 * hash) + PROCESSING_ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getProcessingError().hashCode();
+ }
+ switch (outputCase_) {
+ case 3:
+ hash = (37 * hash) + LINEAGE_OUTPUT_FIELD_NUMBER;
+ hash = (53 * hash) + getLineageOutput().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.TaskOutput parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.TaskOutput parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.TaskOutput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.TaskOutput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.TaskOutput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.TaskOutput parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.TaskOutput parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.TaskOutput parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.TaskOutput parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.TaskOutput parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.TaskOutput parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.TaskOutput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.bigquery.migration.v2.TaskOutput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * The task output for a task type including the status and any errors. + *+ * + * Protobuf type {@code google.cloud.bigquery.migration.v2.TaskOutput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ *
+ * @return Whether the lineageOutput field is set.
+ */
+ @java.lang.Override
+ public boolean hasLineageOutput() {
+ return outputCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ * + * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ *
+ * @return The lineageOutput.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutput getLineageOutput() {
+ if (lineageOutputBuilder_ == null) {
+ if (outputCase_ == 3) {
+ return (com.google.cloud.bigquery.migration.v2.LineageOutput) output_;
+ }
+ return com.google.cloud.bigquery.migration.v2.LineageOutput.getDefaultInstance();
+ } else {
+ if (outputCase_ == 3) {
+ return lineageOutputBuilder_.getMessage();
+ }
+ return com.google.cloud.bigquery.migration.v2.LineageOutput.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ */
+ public Builder setLineageOutput(com.google.cloud.bigquery.migration.v2.LineageOutput value) {
+ if (lineageOutputBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ output_ = value;
+ onChanged();
+ } else {
+ lineageOutputBuilder_.setMessage(value);
+ }
+ outputCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ */
+ public Builder setLineageOutput(
+ com.google.cloud.bigquery.migration.v2.LineageOutput.Builder builderForValue) {
+ if (lineageOutputBuilder_ == null) {
+ output_ = builderForValue.build();
+ onChanged();
+ } else {
+ lineageOutputBuilder_.setMessage(builderForValue.build());
+ }
+ outputCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ */
+ public Builder mergeLineageOutput(com.google.cloud.bigquery.migration.v2.LineageOutput value) {
+ if (lineageOutputBuilder_ == null) {
+ if (outputCase_ == 3
+ && output_
+ != com.google.cloud.bigquery.migration.v2.LineageOutput.getDefaultInstance()) {
+ output_ =
+ com.google.cloud.bigquery.migration.v2.LineageOutput.newBuilder(
+ (com.google.cloud.bigquery.migration.v2.LineageOutput) output_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ output_ = value;
+ }
+ onChanged();
+ } else {
+ if (outputCase_ == 3) {
+ lineageOutputBuilder_.mergeFrom(value);
+ } else {
+ lineageOutputBuilder_.setMessage(value);
+ }
+ }
+ outputCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ */
+ public Builder clearLineageOutput() {
+ if (lineageOutputBuilder_ == null) {
+ if (outputCase_ == 3) {
+ outputCase_ = 0;
+ output_ = null;
+ onChanged();
+ }
+ } else {
+ if (outputCase_ == 3) {
+ outputCase_ = 0;
+ output_ = null;
+ }
+ lineageOutputBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ */
+ public com.google.cloud.bigquery.migration.v2.LineageOutput.Builder getLineageOutputBuilder() {
+ return internalGetLineageOutputFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.LineageOutputOrBuilder
+ getLineageOutputOrBuilder() {
+ if ((outputCase_ == 3) && (lineageOutputBuilder_ != null)) {
+ return lineageOutputBuilder_.getMessageOrBuilder();
+ } else {
+ if (outputCase_ == 3) {
+ return (com.google.cloud.bigquery.migration.v2.LineageOutput) output_;
+ }
+ return com.google.cloud.bigquery.migration.v2.LineageOutput.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.LineageOutput,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.Builder,
+ com.google.cloud.bigquery.migration.v2.LineageOutputOrBuilder>
+ internalGetLineageOutputFieldBuilder() {
+ if (lineageOutputBuilder_ == null) {
+ if (!(outputCase_ == 3)) {
+ output_ = com.google.cloud.bigquery.migration.v2.LineageOutput.getDefaultInstance();
+ }
+ lineageOutputBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.bigquery.migration.v2.LineageOutput,
+ com.google.cloud.bigquery.migration.v2.LineageOutput.Builder,
+ com.google.cloud.bigquery.migration.v2.LineageOutputOrBuilder>(
+ (com.google.cloud.bigquery.migration.v2.LineageOutput) output_,
+ getParentForChildren(),
+ isClean());
+ output_ = null;
+ }
+ outputCase_ = 3;
+ onChanged();
+ return lineageOutputBuilder_;
+ }
+
+ private int state_ = 0;
+
+ /**
+ *
+ *
+ * + * Output only. The current state of the task output. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.TaskOutput.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current state of the task output. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.TaskOutput.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current state of the task output. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.TaskOutput.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.migration.v2.TaskOutput.State getState() {
+ com.google.cloud.bigquery.migration.v2.TaskOutput.State result =
+ com.google.cloud.bigquery.migration.v2.TaskOutput.State.forNumber(state_);
+ return result == null
+ ? com.google.cloud.bigquery.migration.v2.TaskOutput.State.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current state of the task output. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.TaskOutput.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(com.google.cloud.bigquery.migration.v2.TaskOutput.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The current state of the task output. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.TaskOutput.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.rpc.ErrorInfo processingError_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.rpc.ErrorInfo,
+ com.google.rpc.ErrorInfo.Builder,
+ com.google.rpc.ErrorInfoOrBuilder>
+ processingErrorBuilder_;
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ *
+ * @return Whether the processingError field is set.
+ */
+ public boolean hasProcessingError() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ *
+ * @return The processingError.
+ */
+ public com.google.rpc.ErrorInfo getProcessingError() {
+ if (processingErrorBuilder_ == null) {
+ return processingError_ == null
+ ? com.google.rpc.ErrorInfo.getDefaultInstance()
+ : processingError_;
+ } else {
+ return processingErrorBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ */
+ public Builder setProcessingError(com.google.rpc.ErrorInfo value) {
+ if (processingErrorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ processingError_ = value;
+ } else {
+ processingErrorBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ */
+ public Builder setProcessingError(com.google.rpc.ErrorInfo.Builder builderForValue) {
+ if (processingErrorBuilder_ == null) {
+ processingError_ = builderForValue.build();
+ } else {
+ processingErrorBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ */
+ public Builder mergeProcessingError(com.google.rpc.ErrorInfo value) {
+ if (processingErrorBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && processingError_ != null
+ && processingError_ != com.google.rpc.ErrorInfo.getDefaultInstance()) {
+ getProcessingErrorBuilder().mergeFrom(value);
+ } else {
+ processingError_ = value;
+ }
+ } else {
+ processingErrorBuilder_.mergeFrom(value);
+ }
+ if (processingError_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ */
+ public Builder clearProcessingError() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ processingError_ = null;
+ if (processingErrorBuilder_ != null) {
+ processingErrorBuilder_.dispose();
+ processingErrorBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ */
+ public com.google.rpc.ErrorInfo.Builder getProcessingErrorBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return internalGetProcessingErrorFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ */
+ public com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder() {
+ if (processingErrorBuilder_ != null) {
+ return processingErrorBuilder_.getMessageOrBuilder();
+ } else {
+ return processingError_ == null
+ ? com.google.rpc.ErrorInfo.getDefaultInstance()
+ : processingError_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.rpc.ErrorInfo,
+ com.google.rpc.ErrorInfo.Builder,
+ com.google.rpc.ErrorInfoOrBuilder>
+ internalGetProcessingErrorFieldBuilder() {
+ if (processingErrorBuilder_ == null) {
+ processingErrorBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.rpc.ErrorInfo,
+ com.google.rpc.ErrorInfo.Builder,
+ com.google.rpc.ErrorInfoOrBuilder>(
+ getProcessingError(), getParentForChildren(), isClean());
+ processingError_ = null;
+ }
+ return processingErrorBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.migration.v2.TaskOutput)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.migration.v2.TaskOutput)
+ private static final com.google.cloud.bigquery.migration.v2.TaskOutput DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.bigquery.migration.v2.TaskOutput();
+ }
+
+ public static com.google.cloud.bigquery.migration.v2.TaskOutput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ *
+ * @return Whether the lineageOutput field is set.
+ */
+ boolean hasLineageOutput();
+
+ /**
+ *
+ *
+ * + * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ *
+ * @return The lineageOutput.
+ */
+ com.google.cloud.bigquery.migration.v2.LineageOutput getLineageOutput();
+
+ /**
+ *
+ *
+ * + * The output of the task with output type "LINEAGE". + *+ * + *
.google.cloud.bigquery.migration.v2.LineageOutput lineage_output = 3;
+ */
+ com.google.cloud.bigquery.migration.v2.LineageOutputOrBuilder getLineageOutputOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. The current state of the task output. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.TaskOutput.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+
+ /**
+ *
+ *
+ * + * Output only. The current state of the task output. + *+ * + *
+ * .google.cloud.bigquery.migration.v2.TaskOutput.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ com.google.cloud.bigquery.migration.v2.TaskOutput.State getState();
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ *
+ * @return Whether the processingError field is set.
+ */
+ boolean hasProcessingError();
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ *
+ * @return The processingError.
+ */
+ com.google.rpc.ErrorInfo getProcessingError();
+
+ /**
+ *
+ *
+ * + * An explanation that may be populated when the task output is in FAILED + * state. + *+ * + *
.google.rpc.ErrorInfo processing_error = 2;
+ */
+ com.google.rpc.ErrorInfoOrBuilder getProcessingErrorOrBuilder();
+
+ com.google.cloud.bigquery.migration.v2.TaskOutput.OutputCase getOutputCase();
+}
diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto
index 775e3d426ee4..9b27ef5e936f 100644
--- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto
+++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/proto/google/cloud/bigquery/migration/v2/migration_entities.proto
@@ -298,6 +298,9 @@ message MigrationTaskResult {
// Details specific to translation task types.
TranslationTaskResult translation_task_result = 2;
}
+
+ // The map of task output types to the task outputs, e.g. "LINEAGE".
+ map+ * Optional. Applies a strict filter to the search results used to ground the + * answer. The expression supports a subset of the syntax described at + * https://google.aip.dev/160. + * + * Supported fields for filtering: + * + * * `content_length_bytes` (INTEGER): The length of the `Document.content` + * field in bytes. + * * `data_source` (STRING): The source of the document, e.g. + * `docs.cloud.google.com`. See + * https://developers.google.com/knowledge/reference/corpus-reference for + * the complete list of data sources in the corpus. + * * `update_time` (TIMESTAMP): The timestamp of when the document was last + * meaningfully updated. A meaningful update is one that changes document's + * markdown content or metadata. + * * `uri` (STRING): The document URI, e.g. + * `https://docs.cloud.google.com/bigquery/docs/tables`. + * + * INTEGER fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * + * STRING fields support `=` (equals) and `!=` (not equals) operators for + * **exact match** on the whole string. Partial match, prefix match, and + * regexp match are not supported. + * + * TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. + * + * You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical + * operators. `OR` has higher precedence than `AND`. Use parentheses for + * explicit precedence grouping. + * + * Examples: + * + * * Filter by `Document.content_length_bytes`: + * `content_length_bytes < 50000` + * * `data_source = "docs.cloud.google.com" OR data_source = + * "firebase.google.com"` + * * `data_source != "firebase.google.com"` + * * `update_time < "2024-01-01T00:00:00Z"` + * * `update_time >= "2025-01-22T00:00:00Z" AND (data_source = + * "developer.chrome.com" OR data_source = "web.dev")` + * * `uri = "https://docs.cloud.google.com/release-notes"` + * + * The `filter` string must not exceed 500 characters; values longer than 500 + * characters will result in an `INVALID_ARGUMENT` error. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The filter.
+ */
+ @java.lang.Override
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Applies a strict filter to the search results used to ground the + * answer. The expression supports a subset of the syntax described at + * https://google.aip.dev/160. + * + * Supported fields for filtering: + * + * * `content_length_bytes` (INTEGER): The length of the `Document.content` + * field in bytes. + * * `data_source` (STRING): The source of the document, e.g. + * `docs.cloud.google.com`. See + * https://developers.google.com/knowledge/reference/corpus-reference for + * the complete list of data sources in the corpus. + * * `update_time` (TIMESTAMP): The timestamp of when the document was last + * meaningfully updated. A meaningful update is one that changes document's + * markdown content or metadata. + * * `uri` (STRING): The document URI, e.g. + * `https://docs.cloud.google.com/bigquery/docs/tables`. + * + * INTEGER fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * + * STRING fields support `=` (equals) and `!=` (not equals) operators for + * **exact match** on the whole string. Partial match, prefix match, and + * regexp match are not supported. + * + * TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. + * + * You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical + * operators. `OR` has higher precedence than `AND`. Use parentheses for + * explicit precedence grouping. + * + * Examples: + * + * * Filter by `Document.content_length_bytes`: + * `content_length_bytes < 50000` + * * `data_source = "docs.cloud.google.com" OR data_source = + * "firebase.google.com"` + * * `data_source != "firebase.google.com"` + * * `update_time < "2024-01-01T00:00:00Z"` + * * `update_time >= "2025-01-22T00:00:00Z" AND (data_source = + * "developer.chrome.com" OR data_source = "web.dev")` + * * `uri = "https://docs.cloud.google.com/release-notes"` + * + * The `filter` string must not exceed 500 characters; values longer than 500 + * characters will result in an `INVALID_ARGUMENT` error. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for filter.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -141,6 +283,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, query_);
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, filter_);
+ }
getUnknownFields().writeTo(output);
}
@@ -153,6 +298,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, query_);
}
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, filter_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -170,6 +318,7 @@ public boolean equals(final java.lang.Object obj) {
(com.google.developers.knowledge.v1.AnswerQueryRequest) obj;
if (!getQuery().equals(other.getQuery())) return false;
+ if (!getFilter().equals(other.getFilter())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -183,6 +332,8 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
+ hash = (37 * hash) + FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFilter().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -326,6 +477,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
query_ = "";
+ filter_ = "";
return this;
}
@@ -365,6 +517,9 @@ private void buildPartial0(com.google.developers.knowledge.v1.AnswerQueryRequest
if (((from_bitField0_ & 0x00000001) != 0)) {
result.query_ = query_;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.filter_ = filter_;
+ }
}
@java.lang.Override
@@ -385,6 +540,11 @@ public Builder mergeFrom(com.google.developers.knowledge.v1.AnswerQueryRequest o
bitField0_ |= 0x00000001;
onChanged();
}
+ if (!other.getFilter().isEmpty()) {
+ filter_ = other.filter_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -417,6 +577,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 10
+ case 18:
+ {
+ filter_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -547,6 +713,337 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object filter_ = "";
+
+ /**
+ *
+ *
+ * + * Optional. Applies a strict filter to the search results used to ground the + * answer. The expression supports a subset of the syntax described at + * https://google.aip.dev/160. + * + * Supported fields for filtering: + * + * * `content_length_bytes` (INTEGER): The length of the `Document.content` + * field in bytes. + * * `data_source` (STRING): The source of the document, e.g. + * `docs.cloud.google.com`. See + * https://developers.google.com/knowledge/reference/corpus-reference for + * the complete list of data sources in the corpus. + * * `update_time` (TIMESTAMP): The timestamp of when the document was last + * meaningfully updated. A meaningful update is one that changes document's + * markdown content or metadata. + * * `uri` (STRING): The document URI, e.g. + * `https://docs.cloud.google.com/bigquery/docs/tables`. + * + * INTEGER fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * + * STRING fields support `=` (equals) and `!=` (not equals) operators for + * **exact match** on the whole string. Partial match, prefix match, and + * regexp match are not supported. + * + * TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. + * + * You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical + * operators. `OR` has higher precedence than `AND`. Use parentheses for + * explicit precedence grouping. + * + * Examples: + * + * * Filter by `Document.content_length_bytes`: + * `content_length_bytes < 50000` + * * `data_source = "docs.cloud.google.com" OR data_source = + * "firebase.google.com"` + * * `data_source != "firebase.google.com"` + * * `update_time < "2024-01-01T00:00:00Z"` + * * `update_time >= "2025-01-22T00:00:00Z" AND (data_source = + * "developer.chrome.com" OR data_source = "web.dev")` + * * `uri = "https://docs.cloud.google.com/release-notes"` + * + * The `filter` string must not exceed 500 characters; values longer than 500 + * characters will result in an `INVALID_ARGUMENT` error. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The filter.
+ */
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Applies a strict filter to the search results used to ground the + * answer. The expression supports a subset of the syntax described at + * https://google.aip.dev/160. + * + * Supported fields for filtering: + * + * * `content_length_bytes` (INTEGER): The length of the `Document.content` + * field in bytes. + * * `data_source` (STRING): The source of the document, e.g. + * `docs.cloud.google.com`. See + * https://developers.google.com/knowledge/reference/corpus-reference for + * the complete list of data sources in the corpus. + * * `update_time` (TIMESTAMP): The timestamp of when the document was last + * meaningfully updated. A meaningful update is one that changes document's + * markdown content or metadata. + * * `uri` (STRING): The document URI, e.g. + * `https://docs.cloud.google.com/bigquery/docs/tables`. + * + * INTEGER fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * + * STRING fields support `=` (equals) and `!=` (not equals) operators for + * **exact match** on the whole string. Partial match, prefix match, and + * regexp match are not supported. + * + * TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. + * + * You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical + * operators. `OR` has higher precedence than `AND`. Use parentheses for + * explicit precedence grouping. + * + * Examples: + * + * * Filter by `Document.content_length_bytes`: + * `content_length_bytes < 50000` + * * `data_source = "docs.cloud.google.com" OR data_source = + * "firebase.google.com"` + * * `data_source != "firebase.google.com"` + * * `update_time < "2024-01-01T00:00:00Z"` + * * `update_time >= "2025-01-22T00:00:00Z" AND (data_source = + * "developer.chrome.com" OR data_source = "web.dev")` + * * `uri = "https://docs.cloud.google.com/release-notes"` + * + * The `filter` string must not exceed 500 characters; values longer than 500 + * characters will result in an `INVALID_ARGUMENT` error. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for filter.
+ */
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Applies a strict filter to the search results used to ground the + * answer. The expression supports a subset of the syntax described at + * https://google.aip.dev/160. + * + * Supported fields for filtering: + * + * * `content_length_bytes` (INTEGER): The length of the `Document.content` + * field in bytes. + * * `data_source` (STRING): The source of the document, e.g. + * `docs.cloud.google.com`. See + * https://developers.google.com/knowledge/reference/corpus-reference for + * the complete list of data sources in the corpus. + * * `update_time` (TIMESTAMP): The timestamp of when the document was last + * meaningfully updated. A meaningful update is one that changes document's + * markdown content or metadata. + * * `uri` (STRING): The document URI, e.g. + * `https://docs.cloud.google.com/bigquery/docs/tables`. + * + * INTEGER fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * + * STRING fields support `=` (equals) and `!=` (not equals) operators for + * **exact match** on the whole string. Partial match, prefix match, and + * regexp match are not supported. + * + * TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. + * + * You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical + * operators. `OR` has higher precedence than `AND`. Use parentheses for + * explicit precedence grouping. + * + * Examples: + * + * * Filter by `Document.content_length_bytes`: + * `content_length_bytes < 50000` + * * `data_source = "docs.cloud.google.com" OR data_source = + * "firebase.google.com"` + * * `data_source != "firebase.google.com"` + * * `update_time < "2024-01-01T00:00:00Z"` + * * `update_time >= "2025-01-22T00:00:00Z" AND (data_source = + * "developer.chrome.com" OR data_source = "web.dev")` + * * `uri = "https://docs.cloud.google.com/release-notes"` + * + * The `filter` string must not exceed 500 characters; values longer than 500 + * characters will result in an `INVALID_ARGUMENT` error. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The filter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFilter(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ filter_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Applies a strict filter to the search results used to ground the + * answer. The expression supports a subset of the syntax described at + * https://google.aip.dev/160. + * + * Supported fields for filtering: + * + * * `content_length_bytes` (INTEGER): The length of the `Document.content` + * field in bytes. + * * `data_source` (STRING): The source of the document, e.g. + * `docs.cloud.google.com`. See + * https://developers.google.com/knowledge/reference/corpus-reference for + * the complete list of data sources in the corpus. + * * `update_time` (TIMESTAMP): The timestamp of when the document was last + * meaningfully updated. A meaningful update is one that changes document's + * markdown content or metadata. + * * `uri` (STRING): The document URI, e.g. + * `https://docs.cloud.google.com/bigquery/docs/tables`. + * + * INTEGER fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * + * STRING fields support `=` (equals) and `!=` (not equals) operators for + * **exact match** on the whole string. Partial match, prefix match, and + * regexp match are not supported. + * + * TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. + * + * You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical + * operators. `OR` has higher precedence than `AND`. Use parentheses for + * explicit precedence grouping. + * + * Examples: + * + * * Filter by `Document.content_length_bytes`: + * `content_length_bytes < 50000` + * * `data_source = "docs.cloud.google.com" OR data_source = + * "firebase.google.com"` + * * `data_source != "firebase.google.com"` + * * `update_time < "2024-01-01T00:00:00Z"` + * * `update_time >= "2025-01-22T00:00:00Z" AND (data_source = + * "developer.chrome.com" OR data_source = "web.dev")` + * * `uri = "https://docs.cloud.google.com/release-notes"` + * + * The `filter` string must not exceed 500 characters; values longer than 500 + * characters will result in an `INVALID_ARGUMENT` error. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFilter() {
+ filter_ = getDefaultInstance().getFilter();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Applies a strict filter to the search results used to ground the + * answer. The expression supports a subset of the syntax described at + * https://google.aip.dev/160. + * + * Supported fields for filtering: + * + * * `content_length_bytes` (INTEGER): The length of the `Document.content` + * field in bytes. + * * `data_source` (STRING): The source of the document, e.g. + * `docs.cloud.google.com`. See + * https://developers.google.com/knowledge/reference/corpus-reference for + * the complete list of data sources in the corpus. + * * `update_time` (TIMESTAMP): The timestamp of when the document was last + * meaningfully updated. A meaningful update is one that changes document's + * markdown content or metadata. + * * `uri` (STRING): The document URI, e.g. + * `https://docs.cloud.google.com/bigquery/docs/tables`. + * + * INTEGER fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * + * STRING fields support `=` (equals) and `!=` (not equals) operators for + * **exact match** on the whole string. Partial match, prefix match, and + * regexp match are not supported. + * + * TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. + * + * You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical + * operators. `OR` has higher precedence than `AND`. Use parentheses for + * explicit precedence grouping. + * + * Examples: + * + * * Filter by `Document.content_length_bytes`: + * `content_length_bytes < 50000` + * * `data_source = "docs.cloud.google.com" OR data_source = + * "firebase.google.com"` + * * `data_source != "firebase.google.com"` + * * `update_time < "2024-01-01T00:00:00Z"` + * * `update_time >= "2025-01-22T00:00:00Z" AND (data_source = + * "developer.chrome.com" OR data_source = "web.dev")` + * * `uri = "https://docs.cloud.google.com/release-notes"` + * + * The `filter` string must not exceed 500 characters; values longer than 500 + * characters will result in an `INVALID_ARGUMENT` error. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for filter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ filter_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.developers.knowledge.v1.AnswerQueryRequest)
}
diff --git a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/AnswerQueryRequestOrBuilder.java b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/AnswerQueryRequestOrBuilder.java
index 64f8c44721c0..a840e6de84a4 100644
--- a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/AnswerQueryRequestOrBuilder.java
+++ b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/AnswerQueryRequestOrBuilder.java
@@ -51,4 +51,118 @@ public interface AnswerQueryRequestOrBuilder
* @return The bytes for query.
*/
com.google.protobuf.ByteString getQueryBytes();
+
+ /**
+ *
+ *
+ * + * Optional. Applies a strict filter to the search results used to ground the + * answer. The expression supports a subset of the syntax described at + * https://google.aip.dev/160. + * + * Supported fields for filtering: + * + * * `content_length_bytes` (INTEGER): The length of the `Document.content` + * field in bytes. + * * `data_source` (STRING): The source of the document, e.g. + * `docs.cloud.google.com`. See + * https://developers.google.com/knowledge/reference/corpus-reference for + * the complete list of data sources in the corpus. + * * `update_time` (TIMESTAMP): The timestamp of when the document was last + * meaningfully updated. A meaningful update is one that changes document's + * markdown content or metadata. + * * `uri` (STRING): The document URI, e.g. + * `https://docs.cloud.google.com/bigquery/docs/tables`. + * + * INTEGER fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * + * STRING fields support `=` (equals) and `!=` (not equals) operators for + * **exact match** on the whole string. Partial match, prefix match, and + * regexp match are not supported. + * + * TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. + * + * You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical + * operators. `OR` has higher precedence than `AND`. Use parentheses for + * explicit precedence grouping. + * + * Examples: + * + * * Filter by `Document.content_length_bytes`: + * `content_length_bytes < 50000` + * * `data_source = "docs.cloud.google.com" OR data_source = + * "firebase.google.com"` + * * `data_source != "firebase.google.com"` + * * `update_time < "2024-01-01T00:00:00Z"` + * * `update_time >= "2025-01-22T00:00:00Z" AND (data_source = + * "developer.chrome.com" OR data_source = "web.dev")` + * * `uri = "https://docs.cloud.google.com/release-notes"` + * + * The `filter` string must not exceed 500 characters; values longer than 500 + * characters will result in an `INVALID_ARGUMENT` error. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The filter.
+ */
+ java.lang.String getFilter();
+
+ /**
+ *
+ *
+ * + * Optional. Applies a strict filter to the search results used to ground the + * answer. The expression supports a subset of the syntax described at + * https://google.aip.dev/160. + * + * Supported fields for filtering: + * + * * `content_length_bytes` (INTEGER): The length of the `Document.content` + * field in bytes. + * * `data_source` (STRING): The source of the document, e.g. + * `docs.cloud.google.com`. See + * https://developers.google.com/knowledge/reference/corpus-reference for + * the complete list of data sources in the corpus. + * * `update_time` (TIMESTAMP): The timestamp of when the document was last + * meaningfully updated. A meaningful update is one that changes document's + * markdown content or metadata. + * * `uri` (STRING): The document URI, e.g. + * `https://docs.cloud.google.com/bigquery/docs/tables`. + * + * INTEGER fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * + * STRING fields support `=` (equals) and `!=` (not equals) operators for + * **exact match** on the whole string. Partial match, prefix match, and + * regexp match are not supported. + * + * TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. + * Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. + * + * You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical + * operators. `OR` has higher precedence than `AND`. Use parentheses for + * explicit precedence grouping. + * + * Examples: + * + * * Filter by `Document.content_length_bytes`: + * `content_length_bytes < 50000` + * * `data_source = "docs.cloud.google.com" OR data_source = + * "firebase.google.com"` + * * `data_source != "firebase.google.com"` + * * `update_time < "2024-01-01T00:00:00Z"` + * * `update_time >= "2025-01-22T00:00:00Z" AND (data_source = + * "developer.chrome.com" OR data_source = "web.dev")` + * * `uri = "https://docs.cloud.google.com/release-notes"` + * + * The `filter` string must not exceed 500 characters; values longer than 500 + * characters will result in an `INVALID_ARGUMENT` error. + *+ * + *
string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for filter.
+ */
+ com.google.protobuf.ByteString getFilterBytes();
}
diff --git a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeProto.java b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeProto.java
index a89e22545221..d97c43360f01 100644
--- a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeProto.java
+++ b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeProto.java
@@ -143,31 +143,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004view\030\002"
+ " \001(\0162,.google.developers.knowledge.v1.DocumentViewB\003\340A\001\"X\n"
+ "\031BatchGetDocumentsResponse\022;\n"
- + "\tdocuments\030\001 \003(\0132(.google.developers.knowledge.v1.Document\"(\n"
+ + "\tdocuments\030\001 \003(\0132(.google.developers.knowledge.v1.Document\"=\n"
+ "\022AnswerQueryRequest\022\022\n"
- + "\005query\030\001 \001(\tB\003\340A\002\"M\n"
+ + "\005query\030\001 \001(\tB\003\340A\002\022\023\n"
+ + "\006filter\030\002 \001(\tB\003\340A\001\"M\n"
+ "\023AnswerQueryResponse\0226\n"
+ "\006answer\030\001 \001(\0132&.google.developers.knowledge.v1.Answer\"\333\004\n"
+ "\006Answer\022\023\n"
+ "\013answer_text\030\001 \001(\t\022M\n"
- + "\tcitations\030\002"
- + " \003(\01325.google.developers.knowledge.v1.Answer.AnswerCitationB\003\340A\003\022O\n\n"
- + "references\030\003"
- + " \003(\01326.google.developers.knowledge.v1.Answer.AnswerReferenceB\003\340A\003\032\217\001\n"
+ + "\tcitations\030\002 \003(\01325.google.dev"
+ + "elopers.knowledge.v1.Answer.AnswerCitationB\003\340A\003\022O\n\n"
+ + "references\030\003 \003(\01326.google.dev"
+ + "elopers.knowledge.v1.Answer.AnswerReferenceB\003\340A\003\032\217\001\n"
+ "\016AnswerCitation\022\030\n"
+ "\013start_index\030\001 \001(\005B\003\340A\003\022\026\n"
+ "\tend_index\030\002 \001(\005B\003\340A\003\022K\n"
- + "\007sources\030\003 \003(\01325.goog"
- + "le.developers.knowledge.v1.Answer.CitationSourceB\003\340A\003\032.\n"
+ + "\007sources\030\003"
+ + " \003(\01325.google.developers.knowledge.v1.Answer.CitationSourceB\003\340A\003\032.\n"
+ "\016CitationSource\022\034\n"
+ "\017reference_index\030\001 \001(\005B\003\340A\003\032y\n"
+ "\017AnswerReference\022[\n"
- + "\022document_reference\030\001 \001(\01328.google.de"
- + "velopers.knowledge.v1.Answer.DocumentReferenceB\003\340A\003H\000B\t\n"
+ + "\022document_reference\030\001"
+ + " \001(\01328.google.developers.knowledge.v1.Answer.DocumentReferenceB\003\340A\003H\000B"
+ + "\t\n"
+ "\007content\032_\n"
+ "\021DocumentReference\022J\n"
- + "\016document_chunk\030\001 \001(\0132-.google.d"
- + "evelopers.knowledge.v1.DocumentChunkB\003\340A\003\"\362\001\n\r"
+ + "\016document_chunk\030\001"
+ + " \001(\0132-.google.developers.knowledge.v1.DocumentChunkB\003\340A\003\"\362\001\n\r"
+ "DocumentChunk\022B\n"
+ "\006parent\030\001 \001(\tB2\340A\003\372A,\n"
+ "*developerknowledge.googleapis.com/Document\022\017\n"
@@ -183,26 +185,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\022DOCUMENT_VIEW_FULL\020\002\022\031\n"
+ "\025DOCUMENT_VIEW_CONTENT\020\0032\201\006\n"
+ "\022DeveloperKnowledge\022\275\001\n"
- + "\024SearchDocumentChunks\022;.google.developers.kn"
- + "owledge.v1.SearchDocumentChunksRequest\032<.google.developers.knowledge.v1.SearchDo"
- + "cumentChunksResponse\"*\202\323\344\223\002$\022\"/v1/documents:searchDocumentChunks\022\223\001\n"
- + "\013GetDocument\0222.google.developers.knowledge.v1.GetDoc"
- + "umentRequest\032(.google.developers.knowled"
- + "ge.v1.Document\"&\332A\004name\202\323\344\223\002\031\022\027/v1/{name=documents/**}\022\250\001\n"
- + "\021BatchGetDocuments\0228.google.developers.knowledge.v1.BatchGetDo"
- + "cumentsRequest\0329.google.developers.knowl"
- + "edge.v1.BatchGetDocumentsResponse\"\036\202\323\344\223\002\030\022\026/v1/documents:batchGet\022\222\001\n"
- + "\013AnswerQuery\0222.google.developers.knowledge.v1.Answe"
- + "rQueryRequest\0323.google.developers.knowle"
- + "dge.v1.AnswerQueryResponse\"\032\202\323\344\223\002\024\"\017/v1:"
- + "answerQuery:\001*\032U\312A!developerknowledge.go"
- + "ogleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\203\002\n"
- + "\"com.google.developers.knowledge.v1B\027DeveloperKnowledge"
- + "ProtoP\001ZAcloud.google.com/go/developerkn"
- + "owledge/apiv1/developerknowledgepb\252\002\'Goo"
- + "gle.Developers.DeveloperKnowledge.V1\312\002\'G"
- + "oogle\\Developers\\DeveloperKnowledge\\V1\352\002"
- + "*Google::Developers::DeveloperKnowledge::V1b\006proto3"
+ + "\024SearchDocumentChunks\022;.google.developers.knowledge.v1.SearchDo"
+ + "cumentChunksRequest\032<.google.developers.knowledge.v1.SearchDocumentChunksRespons"
+ + "e\"*\202\323\344\223\002$\022\"/v1/documents:searchDocumentChunks\022\223\001\n"
+ + "\013GetDocument\0222.google.developers.knowledge.v1.GetDocumentRequest\032(.goog"
+ + "le.developers.knowledge.v1.Document\"&\332A\004name\202\323\344\223\002\031\022\027/v1/{name=documents/**}\022\250\001\n"
+ + "\021BatchGetDocuments\0228.google.developers.kn"
+ + "owledge.v1.BatchGetDocumentsRequest\0329.google.developers.knowledge.v1.BatchGetDoc"
+ + "umentsResponse\"\036\202\323\344\223\002\030\022\026/v1/documents:batchGet\022\222\001\n"
+ + "\013AnswerQuery\0222.google.developers.knowledge.v1.AnswerQueryRequest\0323.goo"
+ + "gle.developers.knowledge.v1.AnswerQueryR"
+ + "esponse\"\032\202\323\344\223\002\024\"\017/v1:answerQuery:\001*\032U\312A!"
+ + "developerknowledge.googleapis.com\322A.http"
+ + "s://www.googleapis.com/auth/cloud-platformB\203\002\n"
+ + "\"com.google.developers.knowledge.v1B\027DeveloperKnowledgeProtoP\001ZAcloud.goog"
+ + "le.com/go/developerknowledge/apiv1/devel"
+ + "operknowledgepb\252\002\'Google.Developers.Deve"
+ + "loperKnowledge.V1\312\002\'Google\\Developers\\De"
+ + "veloperKnowledge\\V1\352\002*Google::Developers::DeveloperKnowledge::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -276,7 +276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_developers_knowledge_v1_AnswerQueryRequest_descriptor,
new java.lang.String[] {
- "Query",
+ "Query", "Filter",
});
internal_static_google_developers_knowledge_v1_AnswerQueryResponse_descriptor =
getDescriptor().getMessageType(7);
diff --git a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/proto/google/developers/knowledge/v1/developerknowledge.proto b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/proto/google/developers/knowledge/v1/developerknowledge.proto
index 970955ce36a8..9aba8c799352 100644
--- a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/proto/google/developers/knowledge/v1/developerknowledge.proto
+++ b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/proto/google/developers/knowledge/v1/developerknowledge.proto
@@ -337,6 +337,53 @@ message BatchGetDocumentsResponse {
message AnswerQueryRequest {
// Required. The query to answer.
string query = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Applies a strict filter to the search results used to ground the
+ // answer. The expression supports a subset of the syntax described at
+ // https://google.aip.dev/160.
+ //
+ // Supported fields for filtering:
+ //
+ // * `content_length_bytes` (INTEGER): The length of the `Document.content`
+ // field in bytes.
+ // * `data_source` (STRING): The source of the document, e.g.
+ // `docs.cloud.google.com`. See
+ // https://developers.google.com/knowledge/reference/corpus-reference for
+ // the complete list of data sources in the corpus.
+ // * `update_time` (TIMESTAMP): The timestamp of when the document was last
+ // meaningfully updated. A meaningful update is one that changes document's
+ // markdown content or metadata.
+ // * `uri` (STRING): The document URI, e.g.
+ // `https://docs.cloud.google.com/bigquery/docs/tables`.
+ //
+ // INTEGER fields support `=`, `<`, `<=`, `>`, and `>=` operators.
+ //
+ // STRING fields support `=` (equals) and `!=` (not equals) operators for
+ // **exact match** on the whole string. Partial match, prefix match, and
+ // regexp match are not supported.
+ //
+ // TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators.
+ // Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`.
+ //
+ // You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical
+ // operators. `OR` has higher precedence than `AND`. Use parentheses for
+ // explicit precedence grouping.
+ //
+ // Examples:
+ //
+ // * Filter by `Document.content_length_bytes`:
+ // `content_length_bytes < 50000`
+ // * `data_source = "docs.cloud.google.com" OR data_source =
+ // "firebase.google.com"`
+ // * `data_source != "firebase.google.com"`
+ // * `update_time < "2024-01-01T00:00:00Z"`
+ // * `update_time >= "2025-01-22T00:00:00Z" AND (data_source =
+ // "developer.chrome.com" OR data_source = "web.dev")`
+ // * `uri = "https://docs.cloud.google.com/release-notes"`
+ //
+ // The `filter` string must not exceed 500 characters; values longer than 500
+ // characters will result in an `INVALID_ARGUMENT` error.
+ string filter = 2 [(google.api.field_behavior) = OPTIONAL];
}
// Response message for
diff --git a/java-developerknowledge/samples/snippets/generated/com/google/developers/knowledge/v1/developerknowledge/answerquery/AsyncAnswerQuery.java b/java-developerknowledge/samples/snippets/generated/com/google/developers/knowledge/v1/developerknowledge/answerquery/AsyncAnswerQuery.java
index a602df1e0466..584c3769693c 100644
--- a/java-developerknowledge/samples/snippets/generated/com/google/developers/knowledge/v1/developerknowledge/answerquery/AsyncAnswerQuery.java
+++ b/java-developerknowledge/samples/snippets/generated/com/google/developers/knowledge/v1/developerknowledge/answerquery/AsyncAnswerQuery.java
@@ -36,7 +36,10 @@ public static void asyncAnswerQuery() throws Exception {
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DeveloperKnowledgeClient developerKnowledgeClient = DeveloperKnowledgeClient.create()) {
AnswerQueryRequest request =
- AnswerQueryRequest.newBuilder().setQuery("query107944136").build();
+ AnswerQueryRequest.newBuilder()
+ .setQuery("query107944136")
+ .setFilter("filter-1274492040")
+ .build();
ApiFutureThis class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -181,7 +189,7 @@ *
InspectContent
Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. *
When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. - *
For how to guides, see https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,
For how to guides, see https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-images and https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-text, *
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*RedactImage
Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to learn more. + *
Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://docs.cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to learn more. *
When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. *
Only the first frame of each multiframe image is redacted. Metadata and other frames are omitted in the response.
DeidentifyContent
De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn more. + *
De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://docs.cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn more. *
When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
@@ -226,7 +234,7 @@ *ReidentifyContent
Re-identifies content that has been de-identified. See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example to learn more.
Re-identifies content that has been de-identified. See https://docs.cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListInfoTypes
Returns a list of the sensitive information types that the DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.
Returns a list of the sensitive information types that the DLP API supports. See https://docs.cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateInspectTemplate
Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdateInspectTemplate
Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Updates the InspectTemplate. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*GetInspectTemplate
Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Gets an InspectTemplate. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListInspectTemplates
Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Lists InspectTemplates. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*DeleteInspectTemplate
Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Deletes an InspectTemplate. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateDeidentifyTemplate
Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdateDeidentifyTemplate
Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Updates the DeidentifyTemplate. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*GetDeidentifyTemplate
Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Gets a DeidentifyTemplate. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListDeidentifyTemplates
Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Lists DeidentifyTemplates. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*DeleteDeidentifyTemplate
Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Deletes a DeidentifyTemplate. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateJobTrigger
Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdateJobTrigger
Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Updates a job trigger. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*GetJobTrigger
Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Gets a job trigger. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListJobTriggers
Lists job triggers. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Lists job triggers. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*DeleteJobTrigger
Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Deletes a job trigger. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateDlpJob
Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. + *
Creates a new job to inspect storage or calculate risk metrics. See https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. *
When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
@@ -713,7 +721,7 @@ *ListDlpJobs
Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Lists DlpJobs that match the specified filter in the request. See https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*GetDlpJob
Gets the latest state of a long-running DlpJob. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Gets the latest state of a long-running DlpJob. See https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*DeleteDlpJob
Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CancelDlpJob
Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateStoredInfoType
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Creates a pre-built stored infoType to be used for inspection. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdateStoredInfoType
Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*GetStoredInfoType
Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Gets a stored infoType. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*ListStoredInfoTypes
Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Lists stored infoTypes. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*DeleteStoredInfoType
Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Deletes a stored infoType. See https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateContentPolicy
Create a ContentPolicy.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *createContentPolicy(CreateContentPolicyRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *createContentPolicy(LocationName parent, ContentPolicy contentPolicy) + *
createContentPolicy(String parent, ContentPolicy contentPolicy) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *createContentPolicyCallable() + *
UpdateContentPolicy
Update a ContentPolicy.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *updateContentPolicy(UpdateContentPolicyRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *updateContentPolicy(ContentPolicyName name, ContentPolicy contentPolicy, FieldMask updateMask) + *
updateContentPolicy(String name, ContentPolicy contentPolicy, FieldMask updateMask) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *updateContentPolicyCallable() + *
GetContentPolicy
Get a ContentPolicy.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *getContentPolicy(GetContentPolicyRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getContentPolicy(ContentPolicyName name) + *
getContentPolicy(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *getContentPolicyCallable() + *
ListContentPolicies
Lists ContentPolicies in a parent.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listContentPolicies(ListContentPoliciesRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listContentPolicies(LocationName parent) + *
listContentPolicies(String parent) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *listContentPoliciesPagedCallable() + *
listContentPoliciesCallable() + *
DeleteContentPolicy
Delete a ContentPolicy.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *deleteContentPolicy(DeleteContentPolicyRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *deleteContentPolicy(ContentPolicyName name) + *
deleteContentPolicy(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *deleteContentPolicyCallable() + *
See the individual methods for example code. @@ -1349,8 +1453,8 @@ public DlpServiceStub getStub() { * over time as detectors are updated. * *
For how to guides, see - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, + * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-images and + * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-text, * *
Sample code: * @@ -1390,8 +1494,8 @@ public final InspectContentResponse inspectContent(InspectContentRequest request * over time as detectors are updated. * *
For how to guides, see - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, + * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-images and + * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-text, * *
Sample code: * @@ -1426,7 +1530,7 @@ public final InspectContentResponse inspectContent(InspectContentRequest request /** * Redacts potentially sensitive info from an image. This method has limits on input size, * processing time, and output size. See - * https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to + * https://docs.cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to * learn more. * *
When no InfoTypes or CustomInfoTypes are specified in this request, the system will @@ -1471,7 +1575,7 @@ public final RedactImageResponse redactImage(RedactImageRequest request) { /** * Redacts potentially sensitive info from an image. This method has limits on input size, * processing time, and output size. See - * https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to + * https://docs.cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to * learn more. * *
When no InfoTypes or CustomInfoTypes are specified in this request, the system will
@@ -1516,7 +1620,7 @@ public final UnaryCallable When no InfoTypes or CustomInfoTypes are specified in this request, the system will
@@ -1557,7 +1661,7 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques
/**
* De-identifies potentially sensitive info from a ContentItem. This method has limits on input
* size and output size. See
- * https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn
* more.
*
* When no InfoTypes or CustomInfoTypes are specified in this request, the system will
@@ -1598,7 +1702,7 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Re-identifies content that has been de-identified. See
- * https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
* to learn more.
*
* Sample code:
@@ -1634,7 +1738,7 @@ public final ReidentifyContentResponse reidentifyContent(ReidentifyContentReques
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Re-identifies content that has been de-identified. See
- * https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
* to learn more.
*
* Sample code:
@@ -1671,7 +1775,7 @@ public final ReidentifyContentResponse reidentifyContent(ReidentifyContentReques
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a list of the sensitive information types that the DLP API supports. See
- * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.
*
* Sample code:
*
@@ -1700,7 +1804,7 @@ public final ListInfoTypesResponse listInfoTypes(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a list of the sensitive information types that the DLP API supports. See
- * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.
*
* Sample code:
*
@@ -1732,7 +1836,7 @@ public final ListInfoTypesResponse listInfoTypes(ListInfoTypesRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a list of the sensitive information types that the DLP API supports. See
- * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.
*
* Sample code:
*
@@ -1765,7 +1869,7 @@ public final UnaryCallable Sample code:
*
@@ -1785,7 +1889,7 @@ public final UnaryCallable The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -1810,7 +1914,7 @@ public final InspectTemplate createInspectTemplate(
/**
* Creates an InspectTemplate for reusing frequently used configuration for inspecting content,
* images, and storage. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -1830,7 +1934,7 @@ public final InspectTemplate createInspectTemplate(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -1855,7 +1959,7 @@ public final InspectTemplate createInspectTemplate(
/**
* Creates an InspectTemplate for reusing frequently used configuration for inspecting content,
* images, and storage. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -1875,7 +1979,7 @@ public final InspectTemplate createInspectTemplate(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -1900,7 +2004,7 @@ public final InspectTemplate createInspectTemplate(
/**
* Creates an InspectTemplate for reusing frequently used configuration for inspecting content,
* images, and storage. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -1920,7 +2024,7 @@ public final InspectTemplate createInspectTemplate(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -1945,7 +2049,7 @@ public final InspectTemplate createInspectTemplate(
/**
* Creates an InspectTemplate for reusing frequently used configuration for inspecting content,
* images, and storage. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -1965,7 +2069,7 @@ public final InspectTemplate createInspectTemplate(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -1990,7 +2094,7 @@ public final InspectTemplate createInspectTemplate(
/**
* Creates an InspectTemplate for reusing frequently used configuration for inspecting content,
* images, and storage. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2023,7 +2127,7 @@ public final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest
/**
* Creates an InspectTemplate for reusing frequently used configuration for inspecting content,
* images, and storage. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2056,7 +2160,7 @@ public final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates the InspectTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2098,7 +2202,7 @@ public final InspectTemplate updateInspectTemplate(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates the InspectTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2141,7 +2245,7 @@ public final InspectTemplate updateInspectTemplate(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates the InspectTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2175,7 +2279,7 @@ public final InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates the InspectTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2210,7 +2314,7 @@ public final InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets an InspectTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2244,7 +2348,7 @@ public final InspectTemplate getInspectTemplate(@Nullable InspectTemplateName na
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets an InspectTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2277,7 +2381,7 @@ public final InspectTemplate getInspectTemplate(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets an InspectTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2309,7 +2413,7 @@ public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest reques
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets an InspectTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2342,7 +2446,7 @@ public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest reques
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists InspectTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2363,7 +2467,7 @@ public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest reques
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -2385,7 +2489,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists InspectTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2406,7 +2510,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -2428,7 +2532,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists InspectTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2449,7 +2553,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -2471,7 +2575,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists InspectTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2492,7 +2596,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -2514,7 +2618,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists InspectTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2535,7 +2639,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -2554,7 +2658,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(String paren
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists InspectTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2590,7 +2694,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists InspectTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2626,7 +2730,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists InspectTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2669,7 +2773,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes an InspectTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2703,7 +2807,7 @@ public final void deleteInspectTemplate(@Nullable InspectTemplateName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes an InspectTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2736,7 +2840,7 @@ public final void deleteInspectTemplate(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes an InspectTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2768,7 +2872,7 @@ public final void deleteInspectTemplate(DeleteInspectTemplateRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes an InspectTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.
*
* Sample code:
*
@@ -2801,7 +2905,8 @@ public final UnaryCallable Sample code:
*
@@ -2822,7 +2927,7 @@ public final UnaryCallable The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -2847,7 +2952,8 @@ public final DeidentifyTemplate createDeidentifyTemplate(
/**
* Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying
* content, images, and storage. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -2868,7 +2974,7 @@ public final DeidentifyTemplate createDeidentifyTemplate(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -2893,7 +2999,8 @@ public final DeidentifyTemplate createDeidentifyTemplate(
/**
* Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying
* content, images, and storage. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -2914,7 +3021,7 @@ public final DeidentifyTemplate createDeidentifyTemplate(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -2939,7 +3046,8 @@ public final DeidentifyTemplate createDeidentifyTemplate(
/**
* Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying
* content, images, and storage. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -2960,7 +3068,7 @@ public final DeidentifyTemplate createDeidentifyTemplate(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -2985,7 +3093,8 @@ public final DeidentifyTemplate createDeidentifyTemplate(
/**
* Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying
* content, images, and storage. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3006,7 +3115,7 @@ public final DeidentifyTemplate createDeidentifyTemplate(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -3031,7 +3140,8 @@ public final DeidentifyTemplate createDeidentifyTemplate(
/**
* Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying
* content, images, and storage. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3065,7 +3175,8 @@ public final DeidentifyTemplate createDeidentifyTemplate(
/**
* Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying
* content, images, and storage. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3098,7 +3209,8 @@ public final DeidentifyTemplate createDeidentifyTemplate(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates the DeidentifyTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3142,7 +3254,8 @@ public final DeidentifyTemplate updateDeidentifyTemplate(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates the DeidentifyTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3185,7 +3298,8 @@ public final DeidentifyTemplate updateDeidentifyTemplate(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates the DeidentifyTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3220,7 +3334,8 @@ public final DeidentifyTemplate updateDeidentifyTemplate(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates the DeidentifyTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3255,7 +3370,8 @@ public final DeidentifyTemplate updateDeidentifyTemplate(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a DeidentifyTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3289,7 +3405,8 @@ public final DeidentifyTemplate getDeidentifyTemplate(@Nullable DeidentifyTempla
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a DeidentifyTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3322,7 +3439,8 @@ public final DeidentifyTemplate getDeidentifyTemplate(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a DeidentifyTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3354,7 +3472,8 @@ public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateReque
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a DeidentifyTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3387,7 +3506,8 @@ public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateReque
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists DeidentifyTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3409,7 +3529,7 @@ public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateReque
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -3431,7 +3551,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists DeidentifyTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3453,7 +3574,7 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -3475,7 +3596,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists DeidentifyTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3497,7 +3619,7 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -3519,7 +3641,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists DeidentifyTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3541,7 +3664,7 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -3563,7 +3686,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists DeidentifyTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3585,7 +3709,7 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -3604,7 +3728,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(String
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists DeidentifyTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3641,7 +3766,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists DeidentifyTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3677,7 +3803,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists DeidentifyTemplates. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3720,7 +3847,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a DeidentifyTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3754,7 +3882,8 @@ public final void deleteDeidentifyTemplate(@Nullable DeidentifyTemplateName name
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a DeidentifyTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3787,7 +3916,8 @@ public final void deleteDeidentifyTemplate(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a DeidentifyTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3819,7 +3949,8 @@ public final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest reque
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a DeidentifyTemplate. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn
+ * more.
*
* Sample code:
*
@@ -3853,7 +3984,8 @@ public final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest reque
/**
* Creates a job trigger to run DLP actions such as scanning storage for sensitive information on
* a set schedule. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -3872,7 +4004,7 @@ public final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest reque
*
* @param parent Required. Parent resource name.
* The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -3894,7 +4026,8 @@ public final JobTrigger createJobTrigger(@Nullable LocationName parent, JobTrigg
/**
* Creates a job trigger to run DLP actions such as scanning storage for sensitive information on
* a set schedule. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -3913,7 +4046,7 @@ public final JobTrigger createJobTrigger(@Nullable LocationName parent, JobTrigg
*
* @param parent Required. Parent resource name.
* The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -3935,7 +4068,8 @@ public final JobTrigger createJobTrigger(@Nullable ProjectName parent, JobTrigge
/**
* Creates a job trigger to run DLP actions such as scanning storage for sensitive information on
* a set schedule. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -3954,7 +4088,7 @@ public final JobTrigger createJobTrigger(@Nullable ProjectName parent, JobTrigge
*
* @param parent Required. Parent resource name.
* The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -3973,7 +4107,8 @@ public final JobTrigger createJobTrigger(String parent, JobTrigger jobTrigger) {
/**
* Creates a job trigger to run DLP actions such as scanning storage for sensitive information on
* a set schedule. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4006,7 +4141,8 @@ public final JobTrigger createJobTrigger(CreateJobTriggerRequest request) {
/**
* Creates a job trigger to run DLP actions such as scanning storage for sensitive information on
* a set schedule. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4038,7 +4174,8 @@ public final UnaryCallable Sample code:
*
@@ -4076,7 +4213,8 @@ public final JobTrigger updateJobTrigger(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates a job trigger. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4114,7 +4252,8 @@ public final JobTrigger updateJobTrigger(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates a job trigger. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4146,7 +4285,8 @@ public final JobTrigger updateJobTrigger(UpdateJobTriggerRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates a job trigger. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4308,7 +4448,8 @@ public final HybridInspectResponse hybridInspectJobTrigger(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a job trigger. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4337,7 +4478,8 @@ public final JobTrigger getJobTrigger(@Nullable JobTriggerName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a job trigger. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4365,7 +4507,8 @@ public final JobTrigger getJobTrigger(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a job trigger. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4395,7 +4538,8 @@ public final JobTrigger getJobTrigger(GetJobTriggerRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a job trigger. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4424,7 +4568,8 @@ public final UnaryCallable Sample code:
*
@@ -4444,7 +4589,7 @@ public final UnaryCallable The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -4463,7 +4608,8 @@ public final ListJobTriggersPagedResponse listJobTriggers(@Nullable LocationName
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists job triggers. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4483,7 +4629,7 @@ public final ListJobTriggersPagedResponse listJobTriggers(@Nullable LocationName
*
* @param parent Required. Parent resource name.
* The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -4502,7 +4648,8 @@ public final ListJobTriggersPagedResponse listJobTriggers(@Nullable ProjectName
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists job triggers. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4522,7 +4669,7 @@ public final ListJobTriggersPagedResponse listJobTriggers(@Nullable ProjectName
*
* @param parent Required. Parent resource name.
* The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -4538,7 +4685,8 @@ public final ListJobTriggersPagedResponse listJobTriggers(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists job triggers. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4575,7 +4723,8 @@ public final ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists job triggers. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4613,7 +4762,8 @@ public final ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists job triggers. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4657,7 +4807,8 @@ public final ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a job trigger. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4686,7 +4837,8 @@ public final void deleteJobTrigger(@Nullable JobTriggerName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a job trigger. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4714,7 +4866,8 @@ public final void deleteJobTrigger(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a job trigger. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -4744,7 +4897,8 @@ public final void deleteJobTrigger(DeleteJobTriggerRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a job trigger. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn
+ * more.
*
* Sample code:
*
@@ -5535,8 +5689,9 @@ public final UnaryCallable When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will
* automatically choose what detectors to run. By default this may be all types, but may change
@@ -5559,7 +5714,7 @@ public final UnaryCallable The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -5580,8 +5735,9 @@ public final DlpJob createDlpJob(@Nullable LocationName parent, InspectJobConfig
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new job to inspect storage or calculate risk metrics. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will
* automatically choose what detectors to run. By default this may be all types, but may change
@@ -5604,7 +5760,7 @@ public final DlpJob createDlpJob(@Nullable LocationName parent, InspectJobConfig
*
* @param parent Required. Parent resource name.
* The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -5626,8 +5782,9 @@ public final DlpJob createDlpJob(@Nullable LocationName parent, RiskAnalysisJobC
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new job to inspect storage or calculate risk metrics. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will
* automatically choose what detectors to run. By default this may be all types, but may change
@@ -5650,7 +5807,7 @@ public final DlpJob createDlpJob(@Nullable LocationName parent, RiskAnalysisJobC
*
* @param parent Required. Parent resource name.
* The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -5671,8 +5828,9 @@ public final DlpJob createDlpJob(@Nullable ProjectName parent, InspectJobConfig
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new job to inspect storage or calculate risk metrics. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will
* automatically choose what detectors to run. By default this may be all types, but may change
@@ -5695,7 +5853,7 @@ public final DlpJob createDlpJob(@Nullable ProjectName parent, InspectJobConfig
*
* @param parent Required. Parent resource name.
* The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -5717,8 +5875,9 @@ public final DlpJob createDlpJob(@Nullable ProjectName parent, RiskAnalysisJobCo
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new job to inspect storage or calculate risk metrics. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will
* automatically choose what detectors to run. By default this may be all types, but may change
@@ -5741,7 +5900,7 @@ public final DlpJob createDlpJob(@Nullable ProjectName parent, RiskAnalysisJobCo
*
* @param parent Required. Parent resource name.
* The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -5759,8 +5918,9 @@ public final DlpJob createDlpJob(String parent, InspectJobConfig inspectJob) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new job to inspect storage or calculate risk metrics. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will
* automatically choose what detectors to run. By default this may be all types, but may change
@@ -5783,7 +5943,7 @@ public final DlpJob createDlpJob(String parent, InspectJobConfig inspectJob) {
*
* @param parent Required. Parent resource name.
* The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -5802,8 +5962,9 @@ public final DlpJob createDlpJob(String parent, RiskAnalysisJobConfig riskJob) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new job to inspect storage or calculate risk metrics. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will
* automatically choose what detectors to run. By default this may be all types, but may change
@@ -5838,8 +5999,9 @@ public final DlpJob createDlpJob(CreateDlpJobRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new job to inspect storage or calculate risk metrics. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will
* automatically choose what detectors to run. By default this may be all types, but may change
@@ -5873,8 +6035,9 @@ public final UnaryCallable Sample code:
*
@@ -5894,7 +6057,7 @@ public final UnaryCallable The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -5913,8 +6076,9 @@ public final ListDlpJobsPagedResponse listDlpJobs(@Nullable LocationName parent)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists DlpJobs that match the specified filter in the request. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* Sample code:
*
@@ -5934,7 +6098,7 @@ public final ListDlpJobsPagedResponse listDlpJobs(@Nullable LocationName parent)
*
* @param parent Required. Parent resource name.
* The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -5953,8 +6117,9 @@ public final ListDlpJobsPagedResponse listDlpJobs(@Nullable ProjectName parent)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists DlpJobs that match the specified filter in the request. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* Sample code:
*
@@ -5974,7 +6139,7 @@ public final ListDlpJobsPagedResponse listDlpJobs(@Nullable ProjectName parent)
*
* @param parent Required. Parent resource name.
* The format of this value varies depending on whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -5990,8 +6155,9 @@ public final ListDlpJobsPagedResponse listDlpJobs(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists DlpJobs that match the specified filter in the request. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* Sample code:
*
@@ -6028,8 +6194,9 @@ public final ListDlpJobsPagedResponse listDlpJobs(ListDlpJobsRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists DlpJobs that match the specified filter in the request. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* Sample code:
*
@@ -6066,8 +6233,9 @@ public final ListDlpJobsPagedResponse listDlpJobs(ListDlpJobsRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists DlpJobs that match the specified filter in the request. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* Sample code:
*
@@ -6110,8 +6278,9 @@ public final UnaryCallable Sample code:
*
@@ -6139,8 +6308,9 @@ public final DlpJob getDlpJob(@Nullable DlpJobName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the latest state of a long-running DlpJob. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* Sample code:
*
@@ -6167,8 +6337,9 @@ public final DlpJob getDlpJob(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the latest state of a long-running DlpJob. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* Sample code:
*
@@ -6197,8 +6368,9 @@ public final DlpJob getDlpJob(GetDlpJobRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the latest state of a long-running DlpJob. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* Sample code:
*
@@ -6227,8 +6399,9 @@ public final UnaryCallable Sample code:
*
@@ -6257,8 +6430,9 @@ public final void deleteDlpJob(@Nullable DlpJobName name) {
/**
* Deletes a long-running DlpJob. This method indicates that the client is no longer interested in
* the DlpJob result. The job will be canceled if possible. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* Sample code:
*
@@ -6286,8 +6460,9 @@ public final void deleteDlpJob(String name) {
/**
* Deletes a long-running DlpJob. This method indicates that the client is no longer interested in
* the DlpJob result. The job will be canceled if possible. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* Sample code:
*
@@ -6317,8 +6492,9 @@ public final void deleteDlpJob(DeleteDlpJobRequest request) {
/**
* Deletes a long-running DlpJob. This method indicates that the client is no longer interested in
* the DlpJob result. The job will be canceled if possible. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* Sample code:
*
@@ -6347,8 +6523,9 @@ public final UnaryCallable Sample code:
*
@@ -6378,8 +6555,9 @@ public final void cancelDlpJob(CancelDlpJobRequest request) {
/**
* Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to
* cancel the DlpJob, but success is not guaranteed. See
- * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
- * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-storage and
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn
+ * more.
*
* Sample code:
*
@@ -6407,7 +6585,7 @@ public final UnaryCallable Sample code:
@@ -6428,7 +6606,7 @@ public final UnaryCallable The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -6452,7 +6630,7 @@ public final StoredInfoType createStoredInfoType(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a pre-built stored infoType to be used for inspection. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -6473,7 +6651,7 @@ public final StoredInfoType createStoredInfoType(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -6497,7 +6675,7 @@ public final StoredInfoType createStoredInfoType(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a pre-built stored infoType to be used for inspection. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -6518,7 +6696,7 @@ public final StoredInfoType createStoredInfoType(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -6542,7 +6720,7 @@ public final StoredInfoType createStoredInfoType(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a pre-built stored infoType to be used for inspection. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -6563,7 +6741,7 @@ public final StoredInfoType createStoredInfoType(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -6587,7 +6765,7 @@ public final StoredInfoType createStoredInfoType(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a pre-built stored infoType to be used for inspection. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -6608,7 +6786,7 @@ public final StoredInfoType createStoredInfoType(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}` +
* Organizations scope, location specified: `organizations/{org_id}/locations/{location_id}` +
@@ -6628,7 +6806,7 @@ public final StoredInfoType createStoredInfoType(String parent, StoredInfoTypeCo
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a pre-built stored infoType to be used for inspection. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -6661,7 +6839,7 @@ public final StoredInfoType createStoredInfoType(CreateStoredInfoTypeRequest req
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a pre-built stored infoType to be used for inspection. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -6696,7 +6874,7 @@ public final StoredInfoType createStoredInfoType(CreateStoredInfoTypeRequest req
/**
* Updates the stored infoType by creating a new version. The existing version will continue to be
* used until the new version is ready. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -6740,7 +6918,7 @@ public final StoredInfoType updateStoredInfoType(
/**
* Updates the stored infoType by creating a new version. The existing version will continue to be
* used until the new version is ready. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -6785,7 +6963,7 @@ public final StoredInfoType updateStoredInfoType(
/**
* Updates the stored infoType by creating a new version. The existing version will continue to be
* used until the new version is ready. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -6821,7 +6999,7 @@ public final StoredInfoType updateStoredInfoType(UpdateStoredInfoTypeRequest req
/**
* Updates the stored infoType by creating a new version. The existing version will continue to be
* used until the new version is ready. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -6857,7 +7035,7 @@ public final StoredInfoType updateStoredInfoType(UpdateStoredInfoTypeRequest req
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a stored infoType. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -6892,7 +7070,7 @@ public final StoredInfoType getStoredInfoType(@Nullable StoredInfoTypeName name)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a stored infoType. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -6925,7 +7103,7 @@ public final StoredInfoType getStoredInfoType(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a stored infoType. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -6958,7 +7136,7 @@ public final StoredInfoType getStoredInfoType(GetStoredInfoTypeRequest request)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets a stored infoType. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -6991,7 +7169,7 @@ public final UnaryCallable Sample code:
@@ -7013,7 +7191,7 @@ public final UnaryCallable The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -7032,7 +7210,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(@Nullable Loca
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists stored infoTypes. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -7054,7 +7232,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(@Nullable Loca
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -7074,7 +7252,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists stored infoTypes. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -7096,7 +7274,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -7116,7 +7294,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists stored infoTypes. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -7138,7 +7316,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -7157,7 +7335,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(@Nullable Proj
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists stored infoTypes. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -7179,7 +7357,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(@Nullable Proj
* @param parent Required. Parent resource name.
* The format of this value varies depending on the scope of the request (project or
* organization) and whether you have [specified a processing
- * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
+ * location](https://docs.cloud.google.com/sensitive-data-protection/docs/specifying-location):
* + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` +
* Projects scope, no location specified (defaults to global): `projects/{project_id}`
* The following example `parent` string specifies a parent project with the identifier
@@ -7196,7 +7374,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(String parent)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists stored infoTypes. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -7233,7 +7411,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists stored infoTypes. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -7270,7 +7448,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists stored infoTypes. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -7314,7 +7492,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a stored infoType. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -7349,7 +7527,7 @@ public final void deleteStoredInfoType(@Nullable StoredInfoTypeName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a stored infoType. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -7383,7 +7561,7 @@ public final void deleteStoredInfoType(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a stored infoType. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -7416,7 +7594,7 @@ public final void deleteStoredInfoType(DeleteStoredInfoTypeRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a stored infoType. See
- * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
* more.
*
* Sample code:
@@ -10172,29 +10350,694 @@ public final UnaryCallable Sample code:
+ *
+ * The format of this value varies depending on the scope of the request (project):
+ * + Projects scope: `projects/{project_id}/locations/{location_id}`
+ * @param contentPolicy Required. The content_policy resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ContentPolicy createContentPolicy(
+ @Nullable LocationName parent, ContentPolicy contentPolicy) {
+ CreateContentPolicyRequest request =
+ CreateContentPolicyRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setContentPolicy(contentPolicy)
+ .build();
+ return createContentPolicy(request);
}
- @Override
- public void shutdown() {
- stub.shutdown();
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Create a ContentPolicy.
+ *
+ * Sample code:
+ *
+ * The format of this value varies depending on the scope of the request (project):
+ * + Projects scope: `projects/{project_id}/locations/{location_id}`
+ * @param contentPolicy Required. The content_policy resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ContentPolicy createContentPolicy(String parent, ContentPolicy contentPolicy) {
+ CreateContentPolicyRequest request =
+ CreateContentPolicyRequest.newBuilder()
+ .setParent(parent)
+ .setContentPolicy(contentPolicy)
+ .build();
+ return createContentPolicy(request);
}
- @Override
- public boolean isShutdown() {
- return stub.isShutdown();
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Create a ContentPolicy.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Service Description: Sensitive Data Protection provides access to a powerful sensitive data
* inspection, classification, and de-identification platform that works on text, images, and Google
* Cloud storage repositories. To learn more about concepts and find how-to guides see
- * https://cloud.google.com/sensitive-data-protection/docs/.
+ * https://docs.cloud.google.com/sensitive-data-protection/docs/.
*
* Sample for DlpServiceClient:
*
diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java
index d06b225f056b..0539d29ab93e 100644
--- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java
+++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java
@@ -18,6 +18,7 @@
import static com.google.cloud.dlp.v2.DlpServiceClient.ListColumnDataProfilesPagedResponse;
import static com.google.cloud.dlp.v2.DlpServiceClient.ListConnectionsPagedResponse;
+import static com.google.cloud.dlp.v2.DlpServiceClient.ListContentPoliciesPagedResponse;
import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse;
import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse;
import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse;
@@ -35,7 +36,9 @@
import com.google.privacy.dlp.v2.CancelDlpJobRequest;
import com.google.privacy.dlp.v2.ColumnDataProfile;
import com.google.privacy.dlp.v2.Connection;
+import com.google.privacy.dlp.v2.ContentPolicy;
import com.google.privacy.dlp.v2.CreateConnectionRequest;
+import com.google.privacy.dlp.v2.CreateContentPolicyRequest;
import com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest;
import com.google.privacy.dlp.v2.CreateDiscoveryConfigRequest;
import com.google.privacy.dlp.v2.CreateDlpJobRequest;
@@ -46,6 +49,7 @@
import com.google.privacy.dlp.v2.DeidentifyContentResponse;
import com.google.privacy.dlp.v2.DeidentifyTemplate;
import com.google.privacy.dlp.v2.DeleteConnectionRequest;
+import com.google.privacy.dlp.v2.DeleteContentPolicyRequest;
import com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest;
import com.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest;
import com.google.privacy.dlp.v2.DeleteDlpJobRequest;
@@ -60,6 +64,7 @@
import com.google.privacy.dlp.v2.FinishDlpJobRequest;
import com.google.privacy.dlp.v2.GetColumnDataProfileRequest;
import com.google.privacy.dlp.v2.GetConnectionRequest;
+import com.google.privacy.dlp.v2.GetContentPolicyRequest;
import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest;
import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest;
import com.google.privacy.dlp.v2.GetDlpJobRequest;
@@ -80,6 +85,8 @@
import com.google.privacy.dlp.v2.ListColumnDataProfilesResponse;
import com.google.privacy.dlp.v2.ListConnectionsRequest;
import com.google.privacy.dlp.v2.ListConnectionsResponse;
+import com.google.privacy.dlp.v2.ListContentPoliciesRequest;
+import com.google.privacy.dlp.v2.ListContentPoliciesResponse;
import com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest;
import com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse;
import com.google.privacy.dlp.v2.ListDiscoveryConfigsRequest;
@@ -110,6 +117,7 @@
import com.google.privacy.dlp.v2.StoredInfoType;
import com.google.privacy.dlp.v2.TableDataProfile;
import com.google.privacy.dlp.v2.UpdateConnectionRequest;
+import com.google.privacy.dlp.v2.UpdateContentPolicyRequest;
import com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest;
import com.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest;
import com.google.privacy.dlp.v2.UpdateInspectTemplateRequest;
@@ -438,6 +446,32 @@ public UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * ContentPolicy contentPolicy = ContentPolicy.newBuilder().build();
+ * ContentPolicy response = dlpServiceClient.createContentPolicy(parent, contentPolicy);
+ * }
+ * }
+ *
+ * @param parent Required. Parent resource name.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * ContentPolicy contentPolicy = ContentPolicy.newBuilder().build();
+ * ContentPolicy response = dlpServiceClient.createContentPolicy(parent, contentPolicy);
+ * }
+ * }
+ *
+ * @param parent Required. Parent resource name.
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * CreateContentPolicyRequest request =
+ * CreateContentPolicyRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setContentPolicy(ContentPolicy.newBuilder().build())
+ * .setContentPolicyId("contentPolicyId-1324402298")
+ * .build();
+ * ContentPolicy response = dlpServiceClient.createContentPolicy(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ContentPolicy createContentPolicy(CreateContentPolicyRequest request) {
+ return createContentPolicyCallable().call(request);
}
- @Override
- public boolean isTerminated() {
- return stub.isTerminated();
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Create a ContentPolicy.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * CreateContentPolicyRequest request =
+ * CreateContentPolicyRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setContentPolicy(ContentPolicy.newBuilder().build())
+ * .setContentPolicyId("contentPolicyId-1324402298")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * ContentPolicyName name = ContentPolicyName.of("[PROJECT]", "[LOCATION]", "[CONTENT_POLICY]");
+ * ContentPolicy contentPolicy = ContentPolicy.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * ContentPolicy response =
+ * dlpServiceClient.updateContentPolicy(name, contentPolicy, updateMask);
+ * }
+ * }
+ *
+ * @param name Required. Resource name in the format:
+ * `projects/{project}/locations/{location}/contentPolicies/{content_policy}`.
+ * @param contentPolicy Required. The content_policy with new values for the relevant fields.
+ * @param updateMask Optional. Mask to control which fields get updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ContentPolicy updateContentPolicy(
+ @Nullable ContentPolicyName name, ContentPolicy contentPolicy, FieldMask updateMask) {
+ UpdateContentPolicyRequest request =
+ UpdateContentPolicyRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .setContentPolicy(contentPolicy)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateContentPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update a ContentPolicy.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * String name = ContentPolicyName.of("[PROJECT]", "[LOCATION]", "[CONTENT_POLICY]").toString();
+ * ContentPolicy contentPolicy = ContentPolicy.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * ContentPolicy response =
+ * dlpServiceClient.updateContentPolicy(name, contentPolicy, updateMask);
+ * }
+ * }
+ *
+ * @param name Required. Resource name in the format:
+ * `projects/{project}/locations/{location}/contentPolicies/{content_policy}`.
+ * @param contentPolicy Required. The content_policy with new values for the relevant fields.
+ * @param updateMask Optional. Mask to control which fields get updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ContentPolicy updateContentPolicy(
+ String name, ContentPolicy contentPolicy, FieldMask updateMask) {
+ UpdateContentPolicyRequest request =
+ UpdateContentPolicyRequest.newBuilder()
+ .setName(name)
+ .setContentPolicy(contentPolicy)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateContentPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update a ContentPolicy.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * UpdateContentPolicyRequest request =
+ * UpdateContentPolicyRequest.newBuilder()
+ * .setName(
+ * ContentPolicyName.of("[PROJECT]", "[LOCATION]", "[CONTENT_POLICY]").toString())
+ * .setContentPolicy(ContentPolicy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ContentPolicy response = dlpServiceClient.updateContentPolicy(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ContentPolicy updateContentPolicy(UpdateContentPolicyRequest request) {
+ return updateContentPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update a ContentPolicy.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * UpdateContentPolicyRequest request =
+ * UpdateContentPolicyRequest.newBuilder()
+ * .setName(
+ * ContentPolicyName.of("[PROJECT]", "[LOCATION]", "[CONTENT_POLICY]").toString())
+ * .setContentPolicy(ContentPolicy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * ContentPolicyName name = ContentPolicyName.of("[PROJECT]", "[LOCATION]", "[CONTENT_POLICY]");
+ * ContentPolicy response = dlpServiceClient.getContentPolicy(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name in the format:
+ * `projects/{project}/locations/{location}/contentPolicies/{content_policy}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ContentPolicy getContentPolicy(@Nullable ContentPolicyName name) {
+ GetContentPolicyRequest request =
+ GetContentPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getContentPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a ContentPolicy.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * String name = ContentPolicyName.of("[PROJECT]", "[LOCATION]", "[CONTENT_POLICY]").toString();
+ * ContentPolicy response = dlpServiceClient.getContentPolicy(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name in the format:
+ * `projects/{project}/locations/{location}/contentPolicies/{content_policy}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ContentPolicy getContentPolicy(String name) {
+ GetContentPolicyRequest request = GetContentPolicyRequest.newBuilder().setName(name).build();
+ return getContentPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a ContentPolicy.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * GetContentPolicyRequest request =
+ * GetContentPolicyRequest.newBuilder()
+ * .setName(
+ * ContentPolicyName.of("[PROJECT]", "[LOCATION]", "[CONTENT_POLICY]").toString())
+ * .build();
+ * ContentPolicy response = dlpServiceClient.getContentPolicy(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ContentPolicy getContentPolicy(GetContentPolicyRequest request) {
+ return getContentPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a ContentPolicy.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * GetContentPolicyRequest request =
+ * GetContentPolicyRequest.newBuilder()
+ * .setName(
+ * ContentPolicyName.of("[PROJECT]", "[LOCATION]", "[CONTENT_POLICY]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (ContentPolicy element : dlpServiceClient.listContentPolicies(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the project, for example,
+ * `projects/project-id/locations/asia`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListContentPoliciesPagedResponse listContentPolicies(@Nullable LocationName parent) {
+ ListContentPoliciesRequest request =
+ ListContentPoliciesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listContentPolicies(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists ContentPolicies in a parent.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (ContentPolicy element : dlpServiceClient.listContentPolicies(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Resource name of the project, for example,
+ * `projects/project-id/locations/asia`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListContentPoliciesPagedResponse listContentPolicies(String parent) {
+ ListContentPoliciesRequest request =
+ ListContentPoliciesRequest.newBuilder().setParent(parent).build();
+ return listContentPolicies(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists ContentPolicies in a parent.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * ListContentPoliciesRequest request =
+ * ListContentPoliciesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (ContentPolicy element : dlpServiceClient.listContentPolicies(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListContentPoliciesPagedResponse listContentPolicies(
+ ListContentPoliciesRequest request) {
+ return listContentPoliciesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists ContentPolicies in a parent.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * ListContentPoliciesRequest request =
+ * ListContentPoliciesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * ListContentPoliciesRequest request =
+ * ListContentPoliciesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListContentPoliciesResponse response =
+ * dlpServiceClient.listContentPoliciesCallable().call(request);
+ * for (ContentPolicy element : response.getContentPoliciesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * ContentPolicyName name = ContentPolicyName.of("[PROJECT]", "[LOCATION]", "[CONTENT_POLICY]");
+ * dlpServiceClient.deleteContentPolicy(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name of the ContentPolicy to be deleted, in the format:
+ * `projects/{project}/locations/{location}/contentPolicies/{content_policy}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteContentPolicy(@Nullable ContentPolicyName name) {
+ DeleteContentPolicyRequest request =
+ DeleteContentPolicyRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteContentPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Delete a ContentPolicy.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * String name = ContentPolicyName.of("[PROJECT]", "[LOCATION]", "[CONTENT_POLICY]").toString();
+ * dlpServiceClient.deleteContentPolicy(name);
+ * }
+ * }
+ *
+ * @param name Required. Resource name of the ContentPolicy to be deleted, in the format:
+ * `projects/{project}/locations/{location}/contentPolicies/{content_policy}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteContentPolicy(String name) {
+ DeleteContentPolicyRequest request =
+ DeleteContentPolicyRequest.newBuilder().setName(name).build();
+ deleteContentPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Delete a ContentPolicy.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * DeleteContentPolicyRequest request =
+ * DeleteContentPolicyRequest.newBuilder()
+ * .setName(
+ * ContentPolicyName.of("[PROJECT]", "[LOCATION]", "[CONTENT_POLICY]").toString())
+ * .build();
+ * dlpServiceClient.deleteContentPolicy(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteContentPolicy(DeleteContentPolicyRequest request) {
+ deleteContentPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Delete a ContentPolicy.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+ * DeleteContentPolicyRequest request =
+ * DeleteContentPolicyRequest.newBuilder()
+ * .setName(
+ * ContentPolicyName.of("[PROJECT]", "[LOCATION]", "[CONTENT_POLICY]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable